Solved

Code Guard problem

Posted on 1997-03-08
1
293 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

10 Experts available now in Live!

Get 1:1 Help Now