Page 1 of 1

enable madExcept in release mode only

PostPosted: Mon Apr 09, 2018 11:20 am
by kjpx
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)

Re: enable madExcept in release mode only

PostPosted: Mon Apr 09, 2018 11:39 am
by madshi
Why do you want it disabled in debug mode?

Re: enable madExcept in release mode only

PostPosted: Fri May 04, 2018 8:26 am
by Han312
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.

Re: enable madExcept in release mode only

PostPosted: Mon May 07, 2018 3:10 pm
by madshi
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?

Re: enable madExcept in release mode only

PostPosted: Wed May 09, 2018 7:06 am
by Han312