Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fixing a corrupted VCX
Message
 
À
29/08/2001 19:43:50
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00550643
Message ID:
00550649
Vues:
17
Hi Nancy,
Thanks for the quick reply.

>Hi, Doru-
>
>You don't include the command you use for NewObject(). Whenever I have this problem, I haven't specified a correct path or the library hasn't been built into the EXE. Could this be the issue?

I did not include the command because it is so specific, but here it is:
this.parent.newobject(this.name+'_hdr', 'skycolheadershape', 'x:\foxv\classes\skyclasses.vcx', '', this)
The command is in the Init method of our grid class (so this is the grid objectand this.parent is the form object), in the same library. It is supposed to add the shape to the form that contains the grid. Being part of the class, I doubt that the path is the issue, because it dos not always fail. Also, when it failed, I suspended and oppened the VCX as a dbf, the records for the class are there, but... can't be found. At that point I can use NEWOBJECT from the command window for any class in the library but the skycolheadershape.

>
>As for the appearing and dispearing I'd suspect you might have the class in memory. I always make sure I have a RELEASE ALL, usually CLEAR ALL after testing and before modifying a class.

Are you saying that having the class in the memory will cause it to dissapear from the library's class list in the project when you expand it?


>
>BTW, you don't mention which version of FoxPro.

It is VFP 6.0 SP4.
Thanks again.

>
>
>>We have a strange case of corruption, we think...
>>Some symptoms:
>>1.
>>-Open a project and expand the class library - one of the newer class SKYCOLHEADERSHAPE is not shown.
>>-Close the project and open the library in the Class browser - the class is there
>>Open the project again, the class shows up!!
>>
>>2.
>>When running the Application System, in certain situations the NEWOBJECT method returns an error: "Class definition SKYCOLHEADERSHAPE cannot be found".
>>
>>If we run in interactive mode and suspend the program, trying to add an object of this class to the _screen from the command window fails with the same error.
>>
>>We can add any other object to the _screen, from classes in the same library using NEWOBJECT, but the SKYCOLHEADERSHAPE.
>>
>>What's specific about this is that it is the only instance that we add an object using NEWOBJECT instead of ADDOBJECT in an attempt to avoid SET CLASSLIB.
>>
>>TIA for any ideeas.
Doru
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform