Solved

Code Guard problem

Posted on 1997-03-08
1
296 Views
Last Modified: 2013-12-04
I use Code Guard VERSION BC5!!! to debug my 16-bit windows app. and I get a strange
error in the log file:

It says that one of my DLL's did not free the local memory (very small
amount, like 81 bytes) allocated with malloc. It happens even if I don't
call any of the functions in the DLL. All I do is just load the program
and quit it, even though the DLL is loaded automatically (I included the
.lib file in the project), i am shure i am not using any functions from
it, and still I get this message.

I tried searching the "call tree", but the call to malloc appears to
originate from the static run-time library and is not connected with ant
part of the code I have written myself. Also, another error that I get
is that one of the modules is not freed (LoadLibrary is called one time
more then FreeLibrary). This is also very strange since I do not load
any DLL's explicitly, only through .lib files, and the program
terminates normally.

Any help would be greatly appreciated!
Grigory Kalinovsky (gkalin@ibm.net)
0
Comment
Question by:gkalin
1 Comment
 
LVL 1

Accepted Solution

by:
winmeister earned 100 total points
ID: 1298977
Which version of CG are you using?
I had the same problem with BC 4.5, and it was a CG bug. Your program is OK,
don't worry.

The warning message disappeared when I upgraded to BC 5.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now