MantisBT - Open CASCADE
View Issue Details
0030238Open CASCADE[OCCT] OCCT:Configurationpublic2018-10-14 13:052021-09-09 23:18
kgv 
kgv 
normalminor 
newopen 
WindowsVC++ 201564 bit
[OCCT] 7.3.0 
[OCCT] 7.7.0 
0030238: Configuration - NCollection_Array1<OSD_Timer> crashes on destruction when using msvc
The simple code snippet does not work as expected when compiled using msvc:
  NCollection_Array1<OSD_Timer> aTimers (1, 2);


See also the following bug report:
https://developercommunity.visualstudio.com/content/problem/346875/delete-calls-scalar-deleting-destructor-instead-of.html [^]
No tags attached.
related to 0030937feedback Vico Liang Community Coding - TNaming_NamedShape destructor should not be inlined 
zip vc14_delete_crash.zip (4,612) 2018-10-14 13:05
https://tracker.dev.opencascade.org/
Issue History
2018-10-14 13:05kgvNew Issue
2018-10-14 13:05kgvAssigned To => kgv
2018-10-14 13:05kgvFile Added: vc14_delete_crash.zip
2018-10-14 13:12kgvNote Added: 0079929
2019-07-19 17:21apnTarget Version7.4.0 => 7.5.0
2019-09-04 11:13kgvRelationship addedrelated to 0030937
2020-08-28 16:31kgvTarget Version7.5.0 => 7.6.0*
2021-09-09 23:18kgvTarget Version7.6.0* => 7.7.0

Notes
(0079929)
kgv   
2018-10-14 13:12   
Following MS expert comment, to workaround this issue the implicitly generated desctrutor of sub-class (~OSD_Timer) should be explicitly exported from DLL.