so the CrashRpt looks interesting but can I use it?How does it work?Dosent look like as could I use it with MASM to implement in my soruce code or?
Is there maybe a tool like a packer/protector GUI where I can load my exe file into to add those crashrpt etc?
I see 3 options:
1) Use Windows features to create dump file automatically (https://www.meziantou.net/tip-automatically-create-a-crash-dump-file-on-error.htm and https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps)
2) Generate minidump yourself: https://stackoverflow.com/a/1547251. But that's kinda hard if you can't catch the exception for some reason.
3) Use a 3rd party library to catch exception and create minidump for you. For example: http://crashrpt.sourceforge.net/docs/html/index.html
I again a problem with a exception I can not find.This time its a little more strange.Normaly I have added a exception logger in my app to log any exception when it happens to text file but this time it dosent create any file with exception datas!=?Thats strange.
Now I tried checking out Windows app protocol to see whether a exception was logged by Windows itself from my app and Windows did!But infos I got from Windows do not help very much to find the location in my app where it did happen.Look....
Name der fehlerhaften Anwendung: bones.exe
Name des fehlerhaften Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000
....AccessViolation at 0x776e1cfc.Problem is that the address is not always same = ASLR and also there is no module name logged!How to find out where what happend?
So in the app log of WIndows I can also find another Error infos from others...!
Error: 0xc0000409 in kernelbase.dll from my debugger / OllyDBG 1 / each time if I just start it.Hhmm!
Question: Are there any other tools I can use / run extra to log exceptions with more details so that I can better find the close location where it happens?
ok, so if that is not possible to do (as you can see on the animation above) then I would trying the other thing.....catching EN_SETFOCUS and select all in edit control if the edit control gets the focus.Problem here seems that its not working when using the mouse itself and to click on the edit control = nothing gets selected.Just when using the tab key to switch from control to control it gets selected.So how to get all selected if I click inside of the edit control for the first time to set the focus?