Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Corrupt class libraries
Message
From
30/08/2000 16:47:07
 
 
To
30/08/2000 16:25:57
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00411002
Message ID:
00411021
Views:
11
>I am new to VFP having previously used FPW for many years. I have three different class libraries I am trying to add to a VFP 6 project. When I try to add these particular libraries VFP 6 dies. I next tried to use the class browser to see if I could examine them outside of a project. When I use the class browser to look at the libraries I get the following fatal error as soon as I open one
>
>Fatal error: Exception code=C0000005
>Called from - classbrowser1.refreshclassicon line 0 {c:\program
>files\microsoft visual studio\vfp98\vfp6.exe}
>Called from - classbrowser1.refreshclasslist line 0 {c:\program
>files\microsoft visual studio\vfp98\vfp6.exe}
>Called from - brwrefreshbrowser line 0 {c:\program files\microsoft visual
>studio\vfp98\vfp6.exe}
>Called from - classbrowser1.refreshbrowser line 0 {c:\program
>files\microsoft visual studio\vfp98\vfp6.exe}
>Called from - brwopenfile line 0 {c:\program files\microsoft visual
>studio\vfp98\vfp6.exe}
>Called from - classbrowser1.openfile line 0 {c:\program files\microsoft
>visual studio\vfp98\vfp6.exe}
>Called from - classbrowser1.cmdopen.click line 0 {c:\program
>files\microsoft visual studio\vfp98\vfp6.exe}
>
>These libraries were created by someone else under VFP 5 and the VCX, VCT and VCA files were given to me. It appears that the VCX and VCT files make up a table that contains the various class information and that the VCA files were generated from the VCX/VCT files using the SCCTEXT program.
>
>What are my options for trying to re-create valid VCX/VCT files? I am
>contacting the provider of the files but I want to see what I can do from here as well. Can I do something with the VCX file by opening it as a table? It opens without errors but I don't know what to do with it from there.
>

The first thing to do is to try to clean and recompile the class libraries under VFP6. You may have problems with the The VCX and VCT are the class library; the VCA is used to store the class library under VSS in an 'ASCII-fied' form. The VCA is used by VSS to create the VCX and VCT when they're pulled out of VSS.

Try the following:

USE ClassLib.VCX EXCLUSIVE
PACK
USE
COMPILE CLASSLIB ClassLib.VCX

Now use the Class Browser.

Make sure that you have at least Visual Studio SP3 applied to your VFP6 system; it fixed lots of C...5 errors.

>Is there a way that I could re-create the VCX/VCT files from the VCA file? It looks like the SCCTEXT program does not convert from a text VCA file to a VCX file.
>

Extract the files directly from VSS to a different folder.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform