I am running Delphi 2009. When I try to view the form in the form editor, I still get a stack overflow. So I did what someone else would do. I used Delphi to debug myself, or rather, another instance of the IDE.
So, I know where the overflow occurs, I just don't know what to do with it. This form has a custom component that intercepts calls TForm.WindowProcso that it can respond to specific winapi messages. Stack overflow occurs when a component calls a real one WindowProc.
When I break the exception, the call stack is populated with hundreds of calls:
delphicoreide120.@Comppalmgr@TComponentPalettePageItemDelegate@CheckValid
So far, I have not been able to track the actual message sent by WindowProc.
Any help would be appreciated.
Update
I have made some progress. Tracks a message that appears to disable this feature. He is WM_CHILDACTIVATE. When this message is submitted to the form WindowProc, it issues a series of calls inside the IDE, which ends with a stack overflow. Now I just need to find out why.
source
share