General information
Category:
The Mere Mortals Framework
Title:
Adding method to subclass of KBizObj issue
Environment versions
Network:
Windows 2000 Server
Hello MM developers!
Have rather unusual problem with subclass of KBizObj.
We are using MM for a few years now and since the very beginning we have subclassed practically all major MM classes(KBizOBJ, CForms etc) to be able to modify those by adding our own methods and properties. For example, KBizObj was subclassed to MKBizOBj. ALL our business objects are subclasses of MKBizObj thus inheriting everything from KBizObj and MKBizObj. Sorry for so many details, just want to describe the situation.
Everything worked great. Lately, we have added two methods to MKBizObj(these are very first methods added to MKBizObj) and we are calling them from within our application in one of the applications BizObj's DE OpenTables method.
Now the problem: application crashed with the error " Property GetHostFormName" is not found, where GetHostFormName() is a method on MKBizObj.
After compiling application library and running the app again, the error DIDN’T appear again but as soon as FoxPro session got closed and re-open again ,the error appears unless app library got compiled again. If FoxPro session keeps open, the error never repeats itself.
I tried calling the same method from different app’s BizObj - didn't help. I tried recompile all BizObj, including MKBizOBj, I tried to pack KBizObj .vcx. nothing seems to work. Since after compiling the error disappears, it useless to say that app BizObj is subclasses from MKBizOBj and not directly from KBizOBj.
Then I added the same method(GetHostFormName()) to the based MM KBizObj - no error EVER occurred.
In conclusion, I know that it doesn't make any sense but it seems that you can't add a method to the class that subclassed from KBizObj???
Any idea? Anything at all?
Igor
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only