Posted by: Tomasini Paolo
Attached a sample code with a very strange and dangerous bug (tested
on CTD 3.1-PTF4 and CTD 2005).
1. Put a breakpoint on SAM_User message handler in cFTableClass.Col_1.
2. Run application and when breakpoint is reached try to access to
variable m_sVariable from "Expressions" debug window...
3. You obtain a compile error ==> the variable is no really accessible
(why?, THIS IS A FIRST BUG) but CTD doesn't log an error or stop
application (try to step over). This cause an internal memory
overwrite of other CTD variables (I've discovered and proved that
after days of debug)!!! This is a second VERY DANGEROUS BUG.....
Try another situation:
Move the declaration of column Col_1 from class cFTableClass to Object
cFFormClass.Table.
Repeat the test.
Now the variable is correctly accessible: This is the expected
behavior in the first case too.
I've posted this message to Gupta log-a-bug service too...
Can somebody try to reproduce the bug on CTD 2005.1?
Any suggestion or workaround without rewriting the class hierarchy?
Regards,
Paolo Tomasini