2014-01-02 18:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/hvm.c
* clear STATIC variables before releasing thread specific data.
It should resolve potential problems with code using TSD to activate
cleanup procedure and later cannot correctly execute pointer item
destructors, i.e. OLE subsystem.
This commit is contained in:
@@ -1158,14 +1158,14 @@ int hb_vmQuit( void )
|
||||
hb_vmDebuggerExit( HB_TRUE );
|
||||
#endif
|
||||
|
||||
/* release thread specific data */
|
||||
hb_stackDestroyTSD();
|
||||
|
||||
/* stop executing PCODE (HVM reenter request) */
|
||||
s_fHVMActive = HB_FALSE;
|
||||
|
||||
hb_vmStaticsClear();
|
||||
|
||||
/* release thread specific data */
|
||||
hb_stackDestroyTSD();
|
||||
|
||||
hb_errExit();
|
||||
hb_clsReleaseAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user