Hi All,
Yesterday I returned to a project that I had working on Tuesday.
When executing, the form displays, when I hit the OK button, I get an immediate AV.
For reasons I will not bore you with, in the situation I am using this code, I have no debug. (and when I have debug, no AV).
My only debug tool is Show message , and no matter where I put the show message, it did not execute, just got the AV.
I thought the .dfm was damaged (because this is usually the cause when I see something like this), so I went back into the repo and restored it, but still the AV.
I made a change to the Form to force the .dfm to change. (I had to try anything)
I then started getting my Show messages - I could then put show messages until I located the bug, which was not in the form.
Why was Delphi doing this?
There was definitely a bug, but it was not in the form. I think if I had Debug, in this case it would not have helped.
How could I have found this problem in something less then the 3 hours I burned?
(or should I just be happy that I eventually found an obscure bug that might have shown itself at a more inconvenient time).
regards
Brian