Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dangling COM Object
Message
From
09/05/2000 16:49:37
 
 
To
09/05/2000 15:24:16
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00367542
Message ID:
00367842
Views:
30
Hi Erik,

>The server should have absolutely no idea that the client closed the browser. Are you setting the referring variable to nothing before the script finishes?

I didn't write the ASP code, but it does something similar to this [I test this in Excel]:

Set oTest = CreateObject("webrep.pdfwriter")
nReportID = Worksheets(1).Range("B3").Value
cWhereClause = Worksheets(1).Range("B4").Value
cUserName = Worksheets(1).Range("B5").Value
cFileName$ = oTest.makepdf(nReportID, cWhereClause, cUserName)
Worksheets(1).Range("B6").Value = cFileName
Set oTest = Nothing

In ASP, it appears that if we close the browser during the call to oTest.makepdf [which can take up to 1 minute to complete], the script terminates and doesn't get to the line Set oTest = Nothing. I've tested this in the office and the code runs fine if we keep the browser open, but leaves the COM object in NT Task Manager if we close the browser prematurely.

I can get the same effect if I run the above macro in Excel and terminate Excel while oTest.makepdf is running [although I appreciate that may not be exactly the same as running it on a Web server.

Best.

Matt.
Previous
Reply
Map
View

Click here to load this message in the networking platform