Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a copy of the existing class
Message
 
 
To
10/03/2005 13:38:35
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00994181
Message ID:
00994579
Views:
10
Hi Jason,

I finally found the root of the problem which cost me ~5 hours. The builder uses MMVisCollect project to set libraries. I was working on the different project BatchProcess.pjx which is supposed to use different set of libraries. So, I added my library to BatchProcess project and never added it to MMVisCollect. That's why my classlibrary was not in memory and I got all these errors which I almost beat my head of.

My colleague suggested to add my library to MMVisCollect project and just remember to remove it before building the exe. For me it sounds like a PITA. But if setx program takes project name as a parameter, it will solve my problem and I don't have to add my library to the project it doesn't belong to.

Thanks again.

>Nadya,
>
>After running SetX for our project, SET("Classlib") returns a string 15,418 characters long (and we add to this total almost weekly), so I doubt it's an inherent MM problem.
>
>Which object is the builder trying to instantiate when you get this error?
>
>Also, which version of MM are you using?
>
>I seem to remember that setx takes a parameter of the project name, or you can just set the default directory.
>
>We have a stub program that sets up the debug/working environment (runs startmm, sets our default directory, changes the title bar to something amusing) among other things. Maybe that would help in your case?
>
>Hope that helps,
>---J
>
>>I traced the problem in the builder. It's an error 1733 when it tries to instantiate a class using CREATEOBJECT command. The classlib is supposed to be in the memory, but it is not. I checked SET('classlib'), it's a very very long string:
>>
>>However, a second ago I tried SET CLASSLIB TO
>>=setx()
>>set classlib to aBatchProcessBiz.vcx additive and then createobject, it seems to work. I think, we may hit some limit...
>>
>>The length of the SET('classlib') is 5450. I'm not sure how setx() works, I need to check its code. I want to work with different project right now, but it seems like it is taking libraries from MMVisCollect project rahter than from BatchProcess project.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform