>you are at serious risk of completely corrupting the classlib if you Save from the class designer.
Although I'd still say the position/length or startpos/endpos or the like is coded in the objcode, you are of course right, that one would mess the vcx when editing such a method, eg the class designer would perhaps add the PROCEDURE Init and ENDPORC lines before and after the messed init method code, if you add a line there, messing it up even more.
We are merly trying to show why things mess up. I'd not suggest to simply update the needed objcode informations to fix the messed code, a COMPILE is much simpler and will also really reflect the code changes made, true.
There would be no real benefit in manipulating objcode informations, as that would be overwritten the next time you'd compile the vcx anyway.
And to answer Bhavbhuti once again: Executing / instanciating a class does not trigger a recompile. If the objcode holds valid object code, that is run. As Greg pointed out to delete the methods memo content after COMPILE CLASSLIB leaves the classes within intact and usable (but note compilable!). You can also run a FXP without the PRG with DO prog.fxp or even just DO prog, after prog.prg is deleted.
Bye, Olaf.
Previous
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