Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not Release the EXE!
Message
From
17/05/2002 12:57:32
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Can not Release the EXE!
Miscellaneous
Thread ID:
00658311
Message ID:
00658311
Views:
39
Hi,

I Created a simple EXE using the following code (for demonstrating the problem)

*: MAIN.PRG
Define Class TESTME As Custom
Procedure Process
Wait Window "Testing Exe"
Return
Endproc
Enddefine
* End


After compiling this into Test.EXE, I issued the following commands at the command Prompt.
oRun = NewObject("TESTME","TEST.EXE")
oRun.PROCESS() && shows "Testing Exe" here
oRun=.null.
RELEASE oRun

Now the Problem is, even after I release the 'oRun' object, I can not Delete 'TEST.EXE'. The message says, there has been a sharing violation, the source file may be in use. But once I Issue, Clear All command, I can Delete.

Do you know what could be holding up a reference here that keeps the exe still open?

TIA
Solutions: when you want it, as you want it!
Next
Reply
Map
View

Click here to load this message in the networking platform