Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Code::Blocks SDK documentation
stahta01:
--- Quote from: ollydbg on November 29, 2013, 12:48:32 am ---
--- Quote from: comsytec on November 28, 2013, 06:19:20 pm ---...Also I made C::B build linked with MSVCRTD.DLL to make it able tracing the heap allocation under Windows.
--- End quote ---
How do you do that? Do you use MSVC compiler?
--- End quote ---
FYI: The MinGW GCC Compiler normally uses the MS Runtime DLL without the D in it. I know there are ways to build MinGW to use different versions of the MS Runtime DLL (6/7/8/etc do not remember the default version number); no reason one will not permit using the debug variation.
Tim S.
ollydbg:
Thank Tim.
As far as I know, the debug version of msvcrt.dll is only shipped with MSVC, am I right?
EDIT: see this link, winapi - Where is msvcrtd.dll? - Stack Overflow, it is not distributed.
comsytec:
I don't remember but when you install couple of programs during life-time of your computer sometimes appearing files which I don't know where they came from. So the MSVCRTD.DLL was included in this way. First was the idea that I need it. Next step the MinGW runtime nor GCC does not support its linking. Changed the MinGW run-time and also made different spec file for GCC. If you start using MSVCRTD.DLL you cannot mix memory allocations without D. It corrupts the heap and then you get some kind of assertion message from run-time library. But despite of these things it is very useful. There was an idea at first time to share it but it possible only through MinGW integration. I'm not sure if it can work consistently by only copying some file to your MinGW install. But I don't understand why there in FSF don't add the MSVCRTD.DLL linking by default when you are using -g switch on the command line. If you want I can make compressed package (e.g. ZIP or similar) and share it through my website without MSVCRTD.DLL. I don't know if it is legal to share it.
Among other things I made this: (see attached file)
To make easily to switch between build configurations. Somewhere in this forum I mention about it but don't got any positive response for such change of compiler plugin.
MortenMacFly:
--- Quote from: comsytec on November 29, 2013, 04:45:47 pm ---To make easily to switch between build configurations. Somewhere in this forum I mention about it but don't got any positive response for such change of compiler plugin.
--- End quote ---
Did you post a patch on SF.net? (Hopefully its not only for 10.05.)
ollydbg:
Some links: Using msvcrt debug version (msvcrtd) (with a msvcrtd.a attached in one reply.)
But I still don't know how to use it in current(newer) version of MinGW. @Comsytec: can you show us the details?
I would like to see the whether there are some memory leaks in our CB code by linking to msvcrtd.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version