Scenario..
1. Open a project
2. Open an existing class or form
Which uses the class already available in the project.
Now close the form or whatever opened.
3. Try to open the associated .VCX as if it is table
USE myVcx.VCX from Command window or in PRG code
a. File already in Use error comes up.
b. Try to select the area where it is open. I am unable
to identify the work area. CLOSE TABLES ALL, SET CLASSLIB
TO, RELEASE ... etc etc .. nothing provides an answer.
c. At this stage close the project and reopen it. Again
try to open the VCX.. no success. Somewhere the
associated thing is lingering.
d. From the command window CLEAR ALL gives a success. But
I cannot use 'CLEAR ALL', since the code is run from a
custom toolbar object which I have developed to help me
in custom development. I use 'Application.Projects'
objects collection to manipulate for my requirements. And
I need to open the project components as tables at times.
CLEAR ALL from command window will also clear the toolbar
object and I have to reinstate the toolbar again. SO I
achieve what I want by doing CLEAR ALL and starting the
toolbar everytime.
But it may be something silly I am missing and I want to
sort this out.
Thank you very much for anyone trying it out or providing
me the hint straightaway.
I believe, VFP is holding it in its internal session, but I am unable to access it. This is more like a bug and I want a workaround.

ramani
(Subramanian.G)
1. Open a project
2. Open an existing class or form
Which uses the class already available in the project.
Now close the form or whatever opened.
3. Try to open the associated .VCX as if it is table
USE myVcx.VCX from Command window or in PRG code
a. File already in Use error comes up.
b. Try to select the area where it is open. I am unable
to identify the work area. CLOSE TABLES ALL, SET CLASSLIB
TO, RELEASE ... etc etc .. nothing provides an answer.
c. At this stage close the project and reopen it. Again
try to open the VCX.. no success. Somewhere the
associated thing is lingering.
d. From the command window CLEAR ALL gives a success. But
I cannot use 'CLEAR ALL', since the code is run from a
custom toolbar object which I have developed to help me
in custom development. I use 'Application.Projects'
objects collection to manipulate for my requirements. And
I need to open the project components as tables at times.
CLEAR ALL from command window will also clear the toolbar
object and I have to reinstate the toolbar again. SO I
achieve what I want by doing CLEAR ALL and starting the
toolbar everytime.
But it may be something silly I am missing and I want to
sort this out.
Thank you very much for anyone trying it out or providing
me the hint straightaway.
I believe, VFP is holding it in its internal session, but I am unable to access it. This is more like a bug and I want a workaround.
ramani
(Subramanian.G)