Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP!!! Error Instantiating a class on page in pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00059573
Message ID:
00059600
Views:
33
>>>>>Hi
>>>>>
>>>>> I have a program that used to work. I have a pageframe with
>>>>>several pages and on each page I have created a class containing
>>>>>the controls. When the page is activated for the first time I
>>>>>create an object from the class containing the controls. I do this
>>>>>in order to speed up form loading. Anyway the other pages work fine.
>>>>>In fact when I run this from my development environment it works
>>>>>fine. However when I create the EXE file and put it in my distribution
>>>>>directory I get an error instantiating this object from this one
>>>>>page only!!!! Any ideas?
>>>>>
>>>>>Gary
>>>>
>>>>Do any of the controls that you are trying to instanciate live in different .vcxs? It sounds like a path/library problem to me. Double check the location of your class libraries and make sure they are included and in the same directories as your other libraries, or include their directories in the path. Probabl the reason it used to work is that the library got moved or the path changed somewhere else in the program.
>>>>
>>>>I have a gripe about the way we are forced to do all of this even though the project file knows where the libraries are (if they are included in the project).
>>>
>>>
>>>Erik
>>>
>>> Yes the path is ok. I have controls right next to it in
>>>the same library that work fine. It appears to have something
>>>to do with the Sheridan Calendar Widget Combo Control. It
>>>works in other instantiations from the same class, however.
>>>I hate when these kind of bugs show up. They drive me nuts!!!!
>>>Any more ideas???? HELP!
>>>
>>>Gary
>>
>>What does the error message say?
>
>
>Erik
>
> I get an 'Object class is invalid for this container' if I try to
>rename the class in the project file. And an error# 1736 when I try
>to instantiate the object in the program.
>
>Gary


Well, well well. Now I have traced this ridiculous problem to this.
If I remove the control source of one field it works. The field does
exist in the same table as others on this page and I can even substitute
another field from the table and the whole thing works. I have no
clue....

Go figure...

Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform