Strange network behaviour - madExceptPatch, Delphi On Rails

delphi package - automated exception handling

Strange network behaviour - madExceptPatch, Delphi On Rails

Postby ChristianS » Fri Mar 09, 2012 3:59 pm

We've got a complex application here that uses madExcept and Delphi On Rails (http://code.google.com/p/delphionrails/). The application acts as a webserver, serving HTML/JS content to clients and starting a websocket connection for data exchange. It shows reproducable connection errors (webserver not responding to clients at all) that occur only when madExceptPatch is applied to the application (after command line compilation) and we can reproduce the same behaviour while debugging from the IDE when enabling/disabling madExcept.

As we had to insert {$R-}/{$R+} statements to the Delphi On Rails code to fix some IDE exceptions, I suspect there's something going wrong there (I created an issue on their site, too - see http://code.google.com/p/delphionrails/issues/detail?id=7). Anyway, it's strange that not applying madExceptPatch/disabling madExcept solves the connection issues.

Disabling the freeze check in madExcept settings didn't change the behaviour and we don't send bug report e-mails, only create bugreport.txt files - so madExcept shouldn't interfer with network traffic.

So, my question would be: Do you have any idea if madExceptPatch is doing something that could explain this?
ChristianS
 
Posts: 11
Joined: Tue Mar 20, 2007 10:50 am

Re: Strange network behaviour - madExceptPatch, Delphi On Ra

Postby madshi » Fri Mar 09, 2012 4:23 pm

I don't think madExceptPatch is responsible, but I'm mostly guessing here.

Try calling PauseMadExcept(true) in your initialization. Does that "fix" the problem? If so, that would prove that it's not madExceptPatch, but the madExcept runtime that somehow catalyses this problem.
madshi
Site Admin
 
Posts: 7926
Joined: Sun Mar 21, 2004 5:25 pm

Re: Strange network behaviour - madExceptPatch, Delphi On Ra

Postby ChristianS » Wed Mar 14, 2012 4:55 pm

Strangely, calling PauseMadExcept(true) didn't change the behaviour.

But we now tried to rollback the Delphi On Rails updates to a prior state - after this, everything worked as it should, so we can now change the DOR code piece by piece and stop when errors occur again. There definitely was an error in DOR (very likely some invalid memory access) and the behaviour was only a very strange side effect of it.

Thanks for your help!
ChristianS
 
Posts: 11
Joined: Tue Mar 20, 2007 10:50 am

Re: Strange network behaviour - madExceptPatch, Delphi On Ra

Postby madshi » Wed Mar 14, 2012 5:15 pm

So madExcept appears to be innocent? If so, I'm glad to hear that.
madshi
Site Admin
 
Posts: 7926
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 2 guests

cron