Page 1 of 1

Weird application crashing with madexcept 4 and madexcept 5

Posted: Mon Feb 18, 2019 1:18 pm
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

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Mon Feb 18, 2019 1:30 pm
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.

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Mon Feb 18, 2019 3:35 pm
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.

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Mon Feb 18, 2019 3:42 pm
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.

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Mon Feb 18, 2019 5:27 pm
by gilsoncarmo
Thank you for your attention.

I will try to investigate the SVN changes.

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Tue Feb 19, 2019 6:13 pm
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

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Tue Feb 19, 2019 6:17 pm
by madshi
Is there any older version of your software which you know for sure does not have this problem?

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Wed Feb 20, 2019 8:55 pm
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

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Wed Feb 20, 2019 9:27 pm
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?

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Sat Feb 23, 2019 10:27 pm
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

Re: Weird application crashing with madexcept 4 and madexcep

Posted: Mon Feb 25, 2019 9:17 am
by madshi
Glad to hear you got it solved!