But WaitForSingleObject is the same sort of API call as Sleep - it puts the calling thread into a wait state - so if it's OK to call that, I suppose it's OK to call Sleep
At 11:47 06/03/03 -0500, Jacques Paris wrote:
There is a function called ExecuteAndWait that may be doing what you want at www.paris-pc-gis.com/mb_r/mbr_start.htm in the "functions and subs" section
Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com
-----Original Message----- From: Mark Jackson [mailto:[EMAIL PROTECTED] Sent: March 6, 2003 11:06 To: [EMAIL PROTECTED] Subject: MI-L sleep or wait function in mapbasic
I want my MapBasic to sleep or wait for a couple of seconds to allow another Windows program to do something. I've tried a MapInfo Knowledge Base suggestion, but it hogs the processor and slows down the other program. That means I have to allow a very long wait so the other program can finish its work. I've invented an alternative using the Windows API call Sleep, which doesn't hog the processor. I was wondering whether anyone knew whether its OK to call Sleep, before I send the MBX out to my customers...
____________________________________________________________ Mark Jackson Cambridge Environmental Research Consultants Ltd
3 King's Parade, Cambridge, CB2 1SJ
tel: 01223 357773 fax: 01223 357492 web: www.cerc.co.uk email: [EMAIL PROTECTED] ____________________________________________________________
********************************************************************
Cambridge Environmental Research Consultants Ltd. cannot accept any
responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.
This e-mail and any files transmitted with it are private and intended
solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, this e-mail and any accompanying files have been transmitted to you in error. You may not copy, distribute or make any other use of the information contained in them.
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5819
