Delphi EStackoverflow Exception Troubleshooting Tips

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.

+3
source share
2 answers

Ugh! This turned out to be part of a package of third-party components that I recently installed, and was not completely related to where the exception occurred. I tried viewing an empty form in a new project with the same results.

Something went wrong with both compiling and installing the package. When restoring / reinstalling an exception, the exception was thrown.

0

, EStackOverflow (.. MapFault ErrorHandler SysUtils) EStackOverflow ?

: , .

, , ( Delphi ), WindowProc.

Delphi; : Delphi , Delphi .

: large screen side , :

  • , Delphi .
  • Delphi, .

-

+3

Source: https://habr.com/ru/post/1760810/


All Articles