FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
christine
#1
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
Signaler
0
0
Raimund Schuldhaus
#2
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
Signaler
0
0
christine
#3
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
Signaler
0
0
Raimund Schuldhaus
#4
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
Signaler
0
0
Sven DB
#5
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
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte