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
Re: testing IDL_IDLBridge status [message #92254 is a reply to message #92252] Thu, 05 November 2015 09:00 Go to previous messageGo to previous message
Dominic[2] is currently offline  Dominic[2]
Messages: 3
Registered: October 2014
Junior Member
On Thursday, November 5, 2015 at 10:16:17 AM UTC-5, superchromix wrote:
> Even better: if I use the EXECUTE function with EXIT, it still doesn't work.
>
> cmdstr = 'EXIT, STATUS=0'
> result = EXECUTE(cmdstr)
>
> the EXECUTE statement has no effect on IDL when executed from within the cleanup procedure of my application.
>
> ???

Hi Mark,

One solution is to check the status in your callback function. The callback function will also have a reference to your bridge object as its third argument :

PRO BridgeCallbackName, Status, Error, Objref [, Userdata]

Depending upon the status value, you can destroy the object from within the callback. For example, for a successful completion (status=2), enter the following line before returning from your callback function:

if status eq 2 then obj_destroy,Objref

Dominic
[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 11:37:06 PDT 2025

Total time taken to generate the page: 0.00399 seconds