Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition not found
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00411392
Message ID:
00411479
Vues:
9
>>Hi Ko,
>>
>>Something's weird happens here. Then I try application standalone, it works fine with createobject syntax. (I added in Filter method check, if classlibrary is not in set('classlib')). But if I try this application from our main application module (Job Control), it gives me this Error message. The main application currently uses Timer, so I think it's Timer+CreateObject (or NewObject) combination of things. Recently I suggested get rid of timer and use Property_assign method instead. Hopefully, my colleague will implement this idea soon and I'll test again. I really can not understand, why it works fine with application alone, and doesn't work from our main module :(
>

>Don't know what is exactly going on here.
>But when you start a application from within another one, and both uses vcx'es, be sure to use
set classlib to .... additive
.

I checked in couple of places, and each time I see
set classlib to wgcontrols, wg additive
So, this is not the case.

The strange thing is, after I'm getting the error 'Class definition is not found', I hit F12 (brings Debugger) and in debugger I see the object code (weird symbols), not the real method code. What's going on???

In wg.vcx we also have wgSearch class. The only difference between wgSearch and SetFilter classes, that the first uses only base VFP classes, and the second uses wgcontrols classes (e.g. from another classlibs). Both classlibs in the memory, both in the path. Application works fine standalone, NewObject syntax and CreateObject syntax also work fine. I really have no idea, what can I do.
I don't want to go back to the original code, e.g. do form instead of CreateObject().

Could you please advise? Could it be a VFP bug?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform