enable madExcept in release mode only

delphi package - automated exception handling

enable madExcept in release mode only

Postby kjpx » Mon Apr 09, 2018 11:20 am

Hi,

is it possible to enable madexcept automatically when I compile my project in release mode?
Up to now I have to enable/disable it manually on build a new setup.



(madExcept 4.0.18)
kjpx
 
Posts: 1
Joined: Mon Apr 09, 2018 11:09 am

Re: enable madExcept in release mode only

Postby madshi » Mon Apr 09, 2018 11:39 am

Why do you want it disabled in debug mode?
madshi
Site Admin
 
Posts: 9757
Joined: Sun Mar 21, 2004 5:25 pm

Re: enable madExcept in release mode only

Postby Han312 » Fri May 04, 2018 8:26 am

I also disable it by default (since it takes a lot of time on my i7 1st generation computer).
First of all when having the option 'report ressource leaks' enabled.
And I can open only some projects at the same time since I reach the 2 Gb memory limit very fast.

So I disabled it by default and patch it only in the Post-Build-Events (for the release):

"c:\Program Files (x86)\madCollection\madExcept\Tools\madExceptPatch.exe" "$(OutputPath)" "w:\\My_PostBuildRelease.mes"

The advantage is that
a) I can use different MES files for different configurations
and
b) different developers or computer can use the same madexcept settings for a release.
Han312
 
Posts: 33
Joined: Mon Mar 14, 2016 3:49 pm

Re: enable madExcept in release mode only

Postby madshi » Mon May 07, 2018 3:10 pm

Yes, leak reporting makes everything slower and consumes a lot of RAM. So it absolutely makes sense to only enable leak reporting selectively, when you need it. But without leak reporting (and "instantly crash on buffer overrun") madExcept should not really slow your program down at all, so why disabling madExcept completely in either debug or release mode?
madshi
Site Admin
 
Posts: 9757
Joined: Sun Mar 21, 2004 5:25 pm

Re: enable madExcept in release mode only

Postby Han312 » Wed May 09, 2018 7:06 am

Han312
 
Posts: 33
Joined: Mon Mar 14, 2016 3:49 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests

cron