PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → wd8 : start timer in tread
wd8 : start timer in tread
Débuté par christine, 10 jan. 2006 13:40 - 4 réponses
Posté le 10 janvier 2006 - 13:40
is it possible to start a time in a thread in Windev8
ThreadMode(threadCriticalSection)
ThreadExecute("Test"+datesys()+timesys()+random(3),threadNormal,"StartTimer")
And in the "start timer" procedure i have..
TimerSys("DISP_TIME", 100, 1)
But he doesn 't execute it
Posté le 10 janvier 2006 - 15:21
Hello Christine,
why do you want to have timers together with threads? I use always a ThreadWaitSignal or an EventWait in this case.
Regards
Raimund

is it possible to start a time in a thread in Windev8
ThreadMode(threadCriticalSection)
ThreadExecute("Test"+datesys()+timesys()+random(3),threadNormal,"StartTimer")
And in the "start timer" procedure i have..
TimerSys("DISP_TIME", 100, 1)
But he doesn 't execute it
Posté le 11 janvier 2006 - 10:16
Hello Raimund,
I want to print pdf files which are build in the same program. I want to put the "PrintPDf" procedure in a treat so the build of the pdf's can continue.
And the "PrintPDf" has a timer to check every 10 secunds to see if there are pdf's to print.
Ohterwise i takes to long : build the 600 pdf files and then print them afterwards.
Hello Christine,
why do you want to have timers together with threads? I use always a ThreadWaitSignal or an EventWait in this case.
Regards
Raimund
Posté le 12 janvier 2006 - 18:20
Hello Christine,
PROCEDURE PrintPDF()
ThreadSendSignal(threadMain)
WHILE TRUE
IF ThreadWaitSignal(1000) THEN
BREAK
END
// Check and print code
END
HTH
Raimund
Hello Raimund,
I want to print pdf files which are build in the same program. I want to put the "PrintPDf" procedure in a treat so the build of the pdf's can continue.
And the "PrintPDf" has a timer to check every 10 secunds to see if there are pdf's to print.
Ohterwise i takes to long : build the 600 pdf files and then print them afterwards.
Hello Christine,
why do you want to have timers together with threads? I use always a ThreadWaitSignal or an EventWait in this case.
Regards
Raimund



http://www.invitec.com
Posté le 01 décembre 2006 - 09:16
Hey Raimund,
This was EXACT the solution that I was looking for ...
Thanks a lot !!!!
Greetz from Belgium
Hello Christine,
PROCEDURE PrintPDF()
ThreadSendSignal(threadMain)
WHILE TRUE
IF ThreadWaitSignal(1000) THEN
BREAK
END
// Check and print code
END
HTH
Raimund
Hello Raimund,
I want to print pdf files which are build in the same program. I want to put the "PrintPDf" procedure in a treat so the build of the pdf's can continue.
And the "PrintPDf" has a timer to check every 10 secunds to see if there are pdf's to print.
Ohterwise i takes to long : build the 600 pdf files and then print them afterwards.
Hello Christine,
why do you want to have timers together with threads? I use always a ThreadWaitSignal or an EventWait in this case.
Regards
Raimund