comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » testing IDL_IDLBridge status
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
testing IDL_IDLBridge status [message #92242] Thu, 05 November 2015 02:49 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
hi,

I have a question about how to query the status of an IDL bridge, in order to know when to destroy the bridge process.

My IDL application is written as an object, and it is started by creating an "application" object. After creation, it might carry out CPU-intensive tasks like processing a stack of 10^6 images, for example.

I want to be able to run multiple instances of my application which can operate in parallel, and the only way to do this is to create each instance on a separate IDL process, i.e. a separate IDL Bridge object.

I want to automatically clean up these bridge objects when the application closes. When the user closes one instance of the application, they are essentially just destroying the application object.

One way to test when I should destroy the bridge object is to periodically query the bridge to see if the object reference to the application is still valid. However, if the application is busy (i.e. processing data) my query of the bridge (by executing 'test=obj_valid(application_object)') will hang.

The "status" property of the bridge doesn't seem to help here. Even if the application object is busy and the bridge won't respond to a GetVar command, the "status" property of the bridge still reports 0 (IDLE).

How can I test when to destroy the bridge? What I want is a main-level process that is periodically checking the state of the application objects on the various bridges that have been created. If the application object has been closed, then destroy the bridge. Right now I can find no way of querying the bridges without getting into a situation where my main-level process will get stuck if the application is busy.

any ideas?
thanks
Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dates conversions
Next Topic: memory leak in volume()

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:19:46 PDT 2025

Total time taken to generate the page: 0.00394 seconds