Solved

Code Guard problem

Posted on 1997-03-08
1
304 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

792 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