Stack trace in D12 + DPI scaling

delphi package - automated exception handling
Post Reply
wordweb
Posts: 2
Joined: Sat Feb 10, 2024 11:06 am

Stack trace in D12 + DPI scaling

Post by wordweb »

I tried MadExcept today with my win32 D12.1 program, calling GetCrashStackTrace from my worker thread's Execute() except block. I simulated an access violation somewhere I know, but the strack trace is obviously wrong and useless (the thread does not use any net access)

Code: Select all

00f2b325 ccw.exe      System.Net.HttpClient.Win TWinHTTPRequest.AddHeader
00f36a8c ccw.exe      System.Net.HttpClient     THTTPClient.CheckDownloadResume
00f36557 ccw.exe      System.Net.HttpClient     THTTPClient.BeginDelete
00f3aa56 ccw.exe      System.Net.HttpClient     THTTPClient.Put
0055323d ccw.exe      Vcl.Graphics              TIcon.SetHandle
0040c7f4 ccw.exe      System                    BeginThread
76037ba7 KERNEL32.DLL                           BaseThreadInitThunk
D12 does give the correct trace
Last edited by wordweb on Mon Feb 12, 2024 9:10 am, edited 1 time in total.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Stack trace in D12

Post by madshi »

Have you activated madExcept for your project? You need to do that in the Delphi project -> madExcept Settings dialog.
wordweb
Posts: 2
Joined: Sat Feb 10, 2024 11:06 am

Re: Stack trace in D12

Post by wordweb »

Yes. However, I did get it to work by manually setting the Map File settings for the project to Detailed (previously it was off for the debug config I was using, only on for release).

The reporting dialog seems unusable in general though, as it doesn't pick up the right dpi scaling - on my 4K laptop screen, in my System-DPI-aware delphi app with scaling 240%, all the reporting windows are unreadably small. (The send function opens Outlook as expected, but makes the prompts to enter name and email address redundant as much easier to change in outlook if needed)
Post Reply