Weird application crashing with madexcept 4 and madexcept 5

delphi package - automated exception handling
Post Reply
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Weird application crashing with madexcept 4 and madexcept 5

Post by gilsoncarmo »

Hello,

I'm using madexcept 5.0 in my application and recently the application started to hang or stop working and I do not know the causes.
The problem does not happen in a specific place, every time it happens in a different place.
I'm not sure if the problem is really related to MADEXCEPT.
Attached is one of the reports I've been able to capture and some bugreports.
I have tried with version 5 and 4 but the problem happens in both.
Any help is welcome at this time.
Bugreports.rar
Some bug reports
(22.67 KiB) Downloaded 298 times
Bugreports.rar
Some bug reports
(22.67 KiB) Downloaded 298 times
Attachments
Windows Events.zip
(6.07 KiB) Downloaded 294 times
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by madshi »

There's no indication that madExcept would be at fault here. Have you tried compiling your program without madExcept to double check?

FWIW, looking at your bug reports, my best guess would be that there's a window which has a NULL window proc, or something weird like that. I don't know if that's even possible. But at least it seems that the message loop directly jumps to code address 0, or something near to that.
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by gilsoncarmo »

My God, this problem is driving me crazy.
So far I have not got any information that will give me any clue.
Your opinion is very important to me. I do not know what else to do.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by madshi »

Well, you're saying "recently the application started to hang or stop working". So the problem is probably caused by something you changed recently? The best approach would probably be to revert to whatever state was still working fine, and then try to find out which change caused the problem.
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by gilsoncarmo »

Thank you for your attention.

I will try to investigate the SVN changes.
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by gilsoncarmo »

Hello,

I'm sorry to insist.
Do you know any other way I can identify the cause of this problem?
I've reviewed, each line of code changed since the last version, but I did not find anything.
The problem only happens on some computers, and I can not play it internally. It looks like something with the windows version, or something.
Another detail, after the error happens, if you close the application and reopen and redo exactly the same operations, the error does not occur.
I know this is not the purpose of the forum, but maybe someone knows a tool that can give me some clue.
Thank you very much for the help.

Attached is a new bugreport...
bugreport.zip
(6.08 KiB) Downloaded 305 times
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by madshi »

Is there any older version of your software which you know for sure does not have this problem?
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by gilsoncarmo »

Yes, the problem started with version 6.1.0 of our software.
Analyzing SVN, I did not find anything that could cause the problem, so I started to think that it could be some external component.
Many times the software simply closes when you switch the window to another screen like SKYPE for example.
Another strange situation is that even with the software out of focus, it throws exceptions when I try to copy text in another window.
Today I saved a bugreport and when I switched the window to copy the file, the application raised an exception when I pressed ctrl + c, even though it was not in the application. It's really really weird.
It even seems crazy.
Samples.zip
Bug reports
(34.99 KiB) Downloaded 311 times
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by madshi »

What happens if you recompile the 6.1.0 sources, but keep all external components at the same version you're using now? Does the problem still occur?
gilsoncarmo
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by gilsoncarmo »

Hello, Madshi.

Thank you very much for your attention.
Today I solved the problem, it was related to the fastreport component. A report file that was loaded at system startup caused all this impact.
In fact I did not get it right, the reason for the problem, but the important thing is that I found the solution.

Thank you immensely for your dedication.

Hugs
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Post by madshi »

Glad to hear you got it solved!
Post Reply