How to debug Windows dll from Delphi

171 Views Asked by At

CodeGear™ Delphi® 2007 for Win32® R2 Version 11.0.2902.10471

Working on an application written in Delphi Pascal that calls a DLL (also Delphi) that changes a panel in the GUI. Occasionally during the change from view 1 to view 2, or visa versa, an access violation gets thrown from User32.dll.

However, it rarely, if ever, breaks in the debugger on the AV. Furthermore, I would like to be able to get a stack trace of why User32.dll is throwing. To do so I would need to load Windows symbols and somehow get Delphi to catch the AV so I can trace what and why.

How can I force Delphi to catch the error and then get a stack trace with windows symbols????

How do I get the windows symbols???

0

There are 0 best solutions below