Board index » cppbuilder » CodeGuard Functions Called Nowhere

CodeGuard Functions Called Nowhere


2008-06-21 02:52:30 AM
cppbuilder59
Where are functions called from that are listed in the "Functions called" section of the CodeGuard log file (.cgl) but that are not in ones source? For instance: realloc (1 times), new (19 times). The code calls malloc() and calloc() but never realloc().
 
 

Re:CodeGuard Functions Called Nowhere

I ran CodeGuard on a [command line] program with main() containing just return 0. The following must be the minimum set of functions called by the C run-time library initialization.
Functions called:
delete (10 times)
realloc (1 times)
memcpy (1 times)
free (22 times)
new (19 times)
calloc (10 times)
malloc (11 times)
Resource types used:
object (19 allocs, 19 max)
memory block (22 allocs, 12 max)
 

Re:CodeGuard Functions Called Nowhere

When you enable CodeGuard, it arranges to add its library to the project.
The CodeGuard library contains wrappers for the functions in the runtime
library. Each of those wrapper functions then knows the details of each
program call to a runtime library function that it monitors.
. Ed
Quote
dwb wrote in message
news: XXXX@XXXXX.COM ...

Where are functions called from that are listed in the "Functions called"
section of the CodeGuard log file (.cgl) but that are not in ones source?
For instance: realloc (1 times), new (19 times). The code calls malloc()
and calloc() but never realloc().
 

{smallsort}