BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mystery filenames in CodeGuard log

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases
View previous topic :: View next topic  
Author Message
Dennis Cote
Guest





PostPosted: Mon Jan 10, 2005 8:02 pm    Post subject: Mystery filenames in CodeGuard log Reply with quote



Hi,

I'm having a problemm with codeguard reporting lots of rsource type mismatch
errors. It is reporting that memory is incorrectly being released with
delete after it was allocated with new[].

The problem is that both the allocation and release are done deep in the
Borland database libraries. The codeguard log file referrs to mysterious
source files that I can't locate, ds.cpp, dsinmem2.cpp, dspickel.cpp etc.

Note, the codeguard log window shows additional details such as the name of
the functions on the call stack. For example, ds.cpp line 1499 is in a
destructor VARList::~VARList(). This was called from
DSBASE::ReadMetaData(DSEXTRACT *, unsigned long).

I'm using C++ Builder Pro 6 with all updates installed.

Does anyone have any idea where these source files are, or why codeguard is
complaining about these allocation and release pairs? I assume (although I
know that can get me in trouble) that Borland would run codeguard againt
their own libraries before releasing them.

Thanks in advance.

Dennis Cote



The codeguard log file follows (repeat errors is turned off to eliminate
duplicate errors):

Error 00043. 0x350010 (Thread 0x0838):
Resource type mismatch: a(n) object was expected.
delete(0x01624A5C)

Call Tree:
0x007EF481(=DXL.exe:0x01:3EE481) ds.cpp#1499
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

The object array (0x01624A5C) [size: 684 bytes] was created with new[]
Call Tree:
0x007EF4B2(=DXL.exe:0x01:3EE4B2) ds.cpp#1506
0x007EF450(=DXL.exe:0x01:3EE450) ds.cpp#1487
0x007F06B9(=DXL.exe:0x01:3EF6B9) ds.cpp#2515
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289

------------------------------------------
Error 00044. 0x350010 (Thread 0x0838):
Resource type mismatch: a(n) object was expected.
delete(0x01625064)

Call Tree:
0x007F6460(=DXL.exe:0x01:3F5460) dsinmem2.cpp#912
0x007F584B(=DXL.exe:0x01:3F484B) dsinmem2.cpp#216
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

The object array (0x01625064) [size: 262 bytes] was created with new[]
Call Tree:
0x007F61B9(=DXL.exe:0x01:3F51B9) dsinmem2.cpp#760
0x007F584B(=DXL.exe:0x01:3F484B) dsinmem2.cpp#216
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

------------------------------------------
Error 00045. 0x350010 (Thread 0x0838):
Resource type mismatch: a(n) object was expected.
delete(0x01624D8C)

Call Tree:
0x007EEE17(=DXL.exe:0x01:3EDE17) ds.cpp#1121
0x007F7DD1(=DXL.exe:0x01:3F6DD1) dsinmem2.cpp#2282
0x007F7D43(=DXL.exe:0x01:3F6D43) dsinmem2.cpp#2238
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

The object array (0x01624D8C) [size: 684 bytes] was created with new[]
Call Tree:
0x007EF229(=DXL.exe:0x01:3EE229) ds.cpp#1386
0x007F59C9(=DXL.exe:0x01:3F49C9) dsinmem2.cpp#307
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212

------------------------------------------
Error 00046. 0x350010 (Thread 0x0838):
Resource type mismatch: a(n) object was expected.
delete(0x0162503C)

Call Tree:
0x007EEE89(=DXL.exe:0x01:3EDE89) ds.cpp#1151
0x007F7DD1(=DXL.exe:0x01:3F6DD1) dsinmem2.cpp#2282
0x007F7D43(=DXL.exe:0x01:3F6D43) dsinmem2.cpp#2238
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

The object array (0x0162503C) [size: 36 bytes] was created with new[]
Call Tree:
0x007F618E(=DXL.exe:0x01:3F518E) dsinmem2.cpp#755
0x007F584B(=DXL.exe:0x01:3F484B) dsinmem2.cpp#216
0x007F7D33(=DXL.exe:0x01:3F6D33) dsinmem2.cpp#2233
0x007F596B(=DXL.exe:0x01:3F496B) dsinmem2.cpp#289
0x007F583A(=DXL.exe:0x01:3F483A) dsinmem2.cpp#212
0x007F5791(=DXL.exe:0x01:3F4791) dsinmem2.cpp#168

------------------------------------------
Error 00047. 0x350010 (Thread 0x0838):
Resource type mismatch: a(n) object was expected.
delete(0x0161F1BC)

Call Tree:
0x008051F6(=DXL.exe:0x01:4041F6) dspickle.cpp#391
0x00805259(=DXL.exe:0x01:404259) dspickle.cpp#413
0x00808650(=DXL.exe:0x01:407650) dspickle.cpp#2917
0x00808563(=DXL.exe:0x01:407563) dspickle.cpp#2853
0x007F5AB1(=DXL.exe:0x01:3F4AB1) dsinmem2.cpp#362
0x007F58CE(=DXL.exe:0x01:3F48CE) dsinmem2.cpp#237

The object array (0x0161F1BC) [size: 10 bytes] was created with new[]
Call Tree:
0x00805012(=DXL.exe:0x01:404012) dspickle.cpp#308
0x00805259(=DXL.exe:0x01:404259) dspickle.cpp#413
0x00808650(=DXL.exe:0x01:407650) dspickle.cpp#2917
0x00808563(=DXL.exe:0x01:407563) dspickle.cpp#2853
0x007F5AB1(=DXL.exe:0x01:3F4AB1) dsinmem2.cpp#362
0x007F58CE(=DXL.exe:0x01:3F48CE) dsinmem2.cpp#237

------------------------------------------


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.