PDA

View Full Version : [vdf10.1] application/debugger crash, example ws attached



Mark Rutherford
15-Feb-2005, 01:55 AM
I accidentally did this to myself.... its really something that you
would NOT do, but I was oblivious to it since the debugger crashed right
along with it.... so it took me a few minutes to really see what was
going on.

just unzip it, register it.... and push the button o' death. :)

This is probably not desireable behavior in the debugger.
it should at least tell you what you did wrong instead of crash.

so... here is an example of my blunder, keep the laughter down :)

I have not tried it in 11...

Vincent Oorsprong
15-Feb-2005, 04:52 AM
Mark,

I see a perfect trappable case in the debugger. Just put your breakpoint on
the line "get iTest of oTestDialog to iTest" and you can see what is
happening.

What you may not like is that the compiler does not use the GET_ITEST
message identifier when compiling the first iTest in this source code line.
It will not do this since it is perfectly ok to send a message whose ID is
stored in an integer variable. So if you make the mistake to name your
property equal to a variable it is understandable that it goes wrong. The
compiler cannot catch the mistake since iTest is defined as integer variable
and thus the GET line is OK. The fact that it allows an integer declaration
with the same name as a message id might be trappable and we need to see if
this is doable.

--
Kind Regards,
Vincent Oorsprong
Data Access Europe BV
Lansinkesweg 4
7553 AE Hengelo
The Netherlands
Telephone: +31 (0)74 - 255 56 09
Fax: +31 (0)74 - 250 34 66
http://www.dataaccess.nl