cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Wait/Delay function?

msteffke
14-Alexandrite

Wait/Delay function?

Is there any type of wait/delay function to Pro Toolkit, or C for that matter?

I am having a situation (and I have in the past) where the dll processing seems to get ahead of the file writing creation routines.  And the dll processing can seemingly get ahead of video card regeneration.  I admit this is rare, but writing a lot to a loop, the program processing is moving forward.   We are talking nanoseconds here but when you are looping and retrieving and exporting, I have had the odd situation where just sometimes exports have been created  when drawing dimension have not snapped to snap lines if a parts size was modified and driven by top-down design.

The old Visual  Basic had do-events, and VB.net still has  Application.DoEvents. for just this reason.   IME sometimes with DLL's you just needed this to let different code strings catch up.

ACCEPTED SOLUTION

Accepted Solutions
TomasLoun
12-Amethyst
(To:msteffke)

No, there is no such a function and there is no need for it. You can use standard C functionality - see for example this: c++ - Sleep for milliseconds - Stack Overflow

View solution in original post

2 REPLIES 2
TomasLoun
12-Amethyst
(To:msteffke)

No, there is no such a function and there is no need for it. You can use standard C functionality - see for example this: c++ - Sleep for milliseconds - Stack Overflow

msteffke
14-Alexandrite
(To:TomasLoun)

Thanks Tomas, looks like just what I needed.   Its worth a try for me to see if this helps my situation.

Announcements


Top Tags