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

Home » Public Forums » archive » memory leak with HDF5?
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: Memory Leak [message #67381 is a reply to message #44925] Tue, 28 July 2009 11:44 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Good catch guys. This is indeed a bug. You can actually reproduce it
using just a simple string array:

pro cr56738_write
a = bytarr(100000)
openw,lun,'c:/test.dat',/get_lun
writeu,lun,a
free_lun,lun
end

pro cr56738_read
openr,lun,'c:/test.dat',/get_lun
out = replicate(' ', 100000)
readu,lun,out
free_lun,lun
end

cr56738_read & print,(memory())[3]
3005089
cr56738_read & print,(memory())[3]
4005080
cr56738_read & print,(memory())[3]
5005080

This has been logged as CR56738, and will be fixed in the next IDL
release.

As a workaround, you could read the data as bytes, and then convert
the result to a string afterwards.

Cheers,
Chris
ITTVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: More that 2800 Solutions Manuals (Part 3)
Next Topic: streaming into Excel?

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

Current Time: Fri Oct 10 15:01:16 PDT 2025

Total time taken to generate the page: 0.87281 seconds