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

Home » Public Forums » archive » Re: IDL doesn't close files.
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: IDL doesn't close files. [message #38984 is a reply to message #38980] Fri, 16 April 2004 02:15 Go to previous messageGo to previous message
justspam03 is currently offline  justspam03
Messages: 36
Registered: October 2003
Member
Hi,

I had a similar problem when using the XMLparser, say:

catch, error_status
if( error_status ne 0 ) then begin
catch, /cancel
help, /last_message
close, /all, /force
return, 0
end

xmlparser = obj_new('SUBCLASS_TO_IDLffXMLSAX')
xmlparser->parsefile, 'somefile'
obj_destroy, xmlparser
return, 1

How can I close the file when the XML parser fails?
The code suggested above does not work under Win2000 - the
file is still blocked afterwards (which is pretty bad,
because I'd like to create valid default file in this case).

Any suggestions?
Cheers
Oliver
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transparent polygons
Next Topic: need to develop interactive plot routine

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

Current Time: Fri Oct 10 09:07:13 PDT 2025

Total time taken to generate the page: 0.48171 seconds