You and Stephen Russell made the same suggestion and I tried it. It works beautifully!
I'll have to rewrite my error catching routine, but this is the way to go. Thank you both! Rafael El 14/06/2010 11:40, Alan Bourke escribió: > I would do this: > > Try > > * -- Scan the cursor. > > Catch To loException > > * -- Do whatever you need to handle the logging etc. > > Finally > > Thisform.loExcel = .null. > > EndTry > > So no matter what happens the Excel object will be released. You could > also just make the Excel instance visible before your app quits, so at > least the user can see it. > > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

