TIMEOUT

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TIMEOUT

#11 Post by rdonnay »

I think that your Checklog() function is sending events to the main dialog window.

If any events are occurring, then the window will not time out.

There is code in Checklog() that changes colors on the screen and the title bar.
This may be creating some events.

You can determine if this is the problem by putting the following in the first line of the _dlgHandler() function:

wtf DC_AppEventDefine(nEvent)

This will send event information out to a debug window.
If you do not move the mouse or use the keyboard you should not see any events.

I suspect that you are getting xbeP_Paint events.

Show me the code in your _DlgHandler() function.
The eXpress train is coming - and it has more cars.

eckard
Posts: 16
Joined: Sun Jun 21, 2015 12:24 am

Re: TIMEOUT

#12 Post by eckard »

Hallo Roger,
as I wrote, the TIMEOUT-Order only works when I deactivate the following line before it:

oLog:Start('CheckLog') with two slashes //

I enclosed the function CheckLog() two messages before.
Can you see why this blocks the executing of the line with the TIMEOUT-Order?

Best regards
Eckard

eckard
Posts: 16
Joined: Sun Jun 21, 2015 12:24 am

Re: TIMEOUT

#13 Post by eckard »

Sorry Roger, I did not see your message from Okt 10.

Here is the Code, Michael used:

STATIC FUNCTION _DlgHandler ( nEvent, mp1, mp2, oXbp, oDialog, GetList )
IF nEvent = xbeP_Keyboard
IF mp1 = 27 // ESC
Ende()
return DCGUI_IGNORE
ENDIF
ENDIF

IF nEvent = xbeP_Close
Ende()
return DCGUI_IGNORE
ENDIF

return DCGUI_NONE

eckard
Posts: 16
Joined: Sun Jun 21, 2015 12:24 am

Re: TIMEOUT

#14 Post by eckard »

Hallo
I inserted the debug-code as you wrote me.
Even when I do nothing the lines in the debug-window are running.
I enclose a JPG with a print.
Perhaps there is the mistake
Attachments
Xbase++ Spooled Print Job_Page_1.jpg
Xbase++ Spooled Print Job_Page_1.jpg (589.14 KiB) Viewed 11766 times

eckard
Posts: 16
Joined: Sun Jun 21, 2015 12:24 am

Re: TIMEOUT

#15 Post by eckard »

Hallo,
Michael integrated two sleep() sequences in the CheckLog() function.
sleep(50) and sleep(10)

When I use instead the (50) a (500) it works but the TIMEOUT where I gave in 5 seconds needs 30 seconds. What can I do to have the exact 5 seconds or 600 etc.??

Eckard

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TIMEOUT

#16 Post by rdonnay »

I don't think we are going to solve this problem by a lot of postings in this forum.

I suggest that you call me on Skype.
Do you have Skype?
You will also need TeamViewer. It is free.

Try calling after 9:00 am MDT. That should be about 6 pm your time.
The eXpress train is coming - and it has more cars.

eckard
Posts: 16
Joined: Sun Jun 21, 2015 12:24 am

Re: TIMEOUT

#17 Post by eckard »

rdonnay wrote:I don't think we are going to solve this problem by a lot of postings in this forum.

I suggest that you call me on Skype.
Do you have Skype?
You will also need TeamViewer. It is free.

Try calling after 9:00 am MDT. That should be about 6 pm your time.
Hallo, is it possible today? How can I call you via Skype?

Eckard

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TIMEOUT

#18 Post by rdonnay »

It's too late to call today.

You need to add my Skype name to your contacts: roger.donnay

Then you can click on the green phone to call me.

It is better that you call me tomorrow (Thursday).

You can also call me by telephone if you wish to pay for the call.
The eXpress train is coming - and it has more cars.

Post Reply