Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition not found
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00411392
Message ID:
00411496
Views:
11
>>>>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.
>

>Nadya,
>
>Make sure that you have the same version of wgcontrols and wg classlib included in both apps.

Sergey,

You're a live saver :) Of course, I didn't recompile the main application!!!!!!
Sometimes we just can not see the obvious...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform