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

Home » Public Forums » archive » Re: Asynchronous IDL_IDLBridge causing memory leak
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: Asynchronous IDL_IDLBridge causing memory leak [message #72348 is a reply to message #72331] Fri, 27 August 2010 11:39 Go to previous messageGo to previous message
Seth Johnson is currently offline  Seth Johnson
Messages: 4
Registered: August 2010
Junior Member
Sorry, I realized there was a mistake in the second example, it should
be:

oBridge=OBJARR(5)
FOR chain=0,4 DO BEGIN oBridge[chain]=Obj_New('IDL_IDLBridge')

FOR i=0,999 DO BEGIN
   FOR chain=0,4 do BEGIN
a=bindgen(1E4,1E3)
     oBridge[chain]->SetVar,'a',a
     oBridge[chain]->Execute,'a=a+a',/NOWAIT
   ENDFOR

   FOR chain=0,4 DO WHILE oBridge[chain]->Status() NE 0 DO wait,0.0001
ENDFOR
OBJ_DESTROY,oBridge

I do not destroy the objects until the very end as there are
parameters and routines that need to be loaded into each IDL_IDLBridge
for various computations in addition to parameters that change with
every iteration. Destroying and recreating would be a rather large
boon to processing time while the initial problem caused by
asynchronous operation still remains.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is it possible to generate an error when it is tried to multiply matrix with different dimensions?
Next Topic: Re: Speeding up data crunching using IDL_IDLBridge with asychronous execution

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

Current Time: Wed Oct 08 17:28:08 PDT 2025

Total time taken to generate the page: 0.00437 seconds