madExceptPatch and line numbers for standart delphi units

delphi package - automated exception handling
Post Reply
ray
Posts: 12
Joined: Thu Nov 03, 2005 7:10 pm

madExceptPatch and line numbers for standart delphi units

Post by ray »

Hi all,

If I compile app in IDE (D7) with madExcept, then in bugreport I see line number for std units (Forms, Classes, DB ...), but when use madExceptPatch.exe - there is no this information in bugreport.
Can I get this info when patching is from command line?
exception message : Access violation at address 00000000. Read of address 00000000.

main thread ($ec8):
00000000 +000 ???
004f85b3 +023 HelpDesk.exe Forms TCustomForm.CloseModal
004f886e +18e HelpDesk.exe Forms TCustomForm.ShowModal
00895156 +5f2 HelpDesk.exe fmOfferingCall 107 +50 TfrmOfferingCall.Execute
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

In order to get line numbers for std units you need to compile the project with "debug DCUs" turned on. But honestly, I don't know how to activate this option when using the command line compiler. That's a question Borland would need to answer. Probably you should ask this question on the Borland newsgroups.
ray
Posts: 12
Joined: Thu Nov 03, 2005 7:10 pm

Post by ray »

ok, thx
ray
Posts: 12
Joined: Thu Nov 03, 2005 7:10 pm

Post by ray »

made it by myself :)

I compile my program from command line too, so I just set correct pathes to "Debug" dir (I have to copy there *.res, *.dfm from "Lib").

Then in bugreport all line numbers for std units showed correctly.
Post Reply