Subj : Re: malloc() To : borland.public.cpp.borlandcpp From : Gerhard Wolfstieg Date : Wed Jun 23 2004 06:47 pm Jan Vernimmen am Mittwoch, 23. Juni 2004 15:14: > The only reference I can find to CodeGuard is in the menu > Tool|CodeGuard Config; and that does no do anything. First you have to install CodeGuard from your BC5.x-CD separately. After this there must be an online help. All settings for debugging you can do from the project window: * in project options dialog (where you can find compiler options) you now have an entry for CodeGuard where you can enable global an stack data access etc. * in TargetExpert dialog (where you can choose between static and dynamic linking) you then can activate/deactivate CodeGuard for your project. Don't forget to recompile (possibly with hundrets of warnings which doesn't matter / turn of duplicate symbols warning) -- and you will be shown run time errors e.g. the lines of source code where something how happened, where the memory envolved were allocated (line 123 of x.cpp for arrayname were 8 bits allocated and in line 321 of y.c the code tryed to write in 10 bytes offset of arrayname <-- something like this) and many really useful details as not freed memory and and and -- always with line numbers of source code Gerhard PS: I just see in the little user's guide that you can do things like monitor function return values (like all return values of all functions of -1 (for Failure)) .