Click to See Complete Forum and Search --> : Switch To - Retry Message


May 19th, 1999, 08:07 AM
I have written a real-time data acquisition application which makes calls to a calculation OLE automation server. I connect to this server as follows:


// connect to ole automation server
VERIFY(CalcApp.CreateDispatch("CalcApp.Document") == TRUE);




Unfortunately, this calculation program is a CPU hog and at various times can take up to 90% of the CPU for up to 10 seconds or so in the worst case. While waiting for the calculations to complete, if the CPU is tied up for too long (>5 secs or so) on this program, a "Switch To, Retry" dialog comes up saying the program is busy or not responding or something to that effect. Does anyone know of a way to prevent this message from coming up? I know what your saying...speed up the CPU hog, but it's kind of out of my control and I need to come up with another solution. If you have any ideas, I'd appreciate it.