View Issue Details

IDProjectCategoryView StatusLast Update
0006583Open CASCADEOCCT:Foundation Classespublic2012-01-16 19:11
ReportermsvAssigned Tomsv 
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
OSWindows NT 
Fixed in Version5.2.1 
Summary0006583: malloc/free problem in NCollection_Vector
DescriptionIf on WNT we use release (optimize) mode of OCC but build the user application
in debug mode then the application crashes when it creates/destroys an object
of type NCollection_Vector.

The matter of the problem is that the memory for data in NCollection_BaseVector
is allocated in an inline function, but it is freed in member function that is
not inline. It leads to that malloc is called inside user application (using
msvcrtd.dll) while corresponding free is called inside TKernel.dll (using
msvcrt.dll). So, the used versions of malloc and free are not compatible since
they are from different DLLs.

The proposed solution is to provide an inline function that is to be called to
free the memory, so as to have malloc and free called from the same DLL.
Additional information
and documentation updates
Documentation remark, added by MSV 2004-10-01 13:16:47:

New features:
not required
Improvements:
not required
Changes:
not required
Modified entities:
no public interfaces were changed
TagsNo tags attached.
Test case number

Attached Files

  • OCC6583_patch.tgz (5,567 bytes)
  • OCC6583_patch_v2.tgz (7,075 bytes)

Activities

2004-09-07 09:00

 

OCC6583_patch.tgz (5,567 bytes)

2004-09-09 13:26

 

OCC6583_patch_v2.tgz (7,075 bytes)

Issue History

Date Modified Username Field Change
2004-09-09 15:37 bugmaster CC => mkv
2004-09-09 15:37 bugmaster Assigned To bugmaster => msv
2004-09-09 15:37 bugmaster Status new => assigned
2004-09-14 10:37 mkv CC => aki
2004-09-17 14:56 bugmaster Status assigned => tested
2004-09-20 09:14 bugmaster Status tested => verified
2004-11-01 12:37 bugmaster Status verified => closed
2004-11-01 12:37 bugmaster Resolution @0@ => fixed
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2012-01-16 19:11 atp Description Updated
2012-01-16 19:11 atp Additional Information Updated