C++ Debug/Release mode

I finally had enough. I’ve had it with people mixing debug and release C runtime libraries in the same process. I’ve decided what I need is a hook into Window (at a minimum via Windows Explorer) that catches the double click or Run… for a new process, possibly checks a predefined list to see if its a development EXE, and then runs the equivalent of Depends.exe to walk all DLL’s in the process to check for any mixing of debug and release C runtimes. I’d also do a check for boost Python DLL’s as well, since you can’t obviously run the debug and release in the same process (BOOST_PYTHON-VC71-MT-1_33.DLL)

~ by mdavey on March 30, 2006.

One Response to “C++ Debug/Release mode”

  1. Why not just write a tool that does the dll walking and reporting and run that as part of the build rather than every time the exe runs. If the tool fails (ie if you have mixed libs) then the build fails…

    Or have it as part of the packaging requirement before an exe goes into production?

    I’d personally have it as part of the build…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: