View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006583 | Open CASCADE | OCCT:Foundation Classes | public | 2004-09-07 10:59 | 2012-01-16 19:11 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
OS | Windows NT | ||||
Fixed in Version | 5.2.1 | ||||
Summary | 0006583: malloc/free problem in NCollection_Vector | ||||
Description | If 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 | ||||
Tags | No tags attached. | ||||
Test case number | |||||
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 |
|
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 |
|
Description Updated | |
2012-01-16 19:11 |
|
Additional Information Updated |