Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM methods calls are getting blocked

Status
Not open for further replies.

bcbpablo

Programmer
Sep 27, 2007
2
Hi all, new member having a strange issue with BCB5.

I have an application that acquires data from an instrument. A request is put on a command queue and picked up by a processing timer. The data is acquired on this timer thread.

Meanwhile another app is calling a COM method to check the status of the data acquisition. What I am finding however is that the COM call is not being processed until the data acquisition is finished.

During the acquisition there is a wait loop with a call to Application->ProcessMessages and a sleep of 100ms. The entire acquisition takes around 5 seconds.

Is there any way I can force the COM interface to be processed? Something similar to the ProcessMessages command?

Any thoughts appreciated.
-Paul
 
Yes, try using threads.


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Thats my first thought also but this causes calls to other activex objects to go nuts and I suspect will take a fair bit of rearchitecting.

any other ways of giving the com interface some processing time?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top