Unrecoverable error 9000:
Destructors disabled! Destructor of class: 'ToleAuto' Can´t be executed.
why it ?
Unrecoverable error 9000:
Destructors disabled! Destructor of class: 'ToleAuto' Can´t be executed.
why it ?
And erro show only later close App.
thanks
I recompile now my project using fwh905 and xharbour 1.2.1 more continue show message
of erro when close app.
Someone can help ? thanks
This was the problem in an earlier version of xharbour. I too experienced this.
You may use xharbour build provided with FWH or latest from xhabour site. This problem does not exist now.
ageswaragunupudi,
i´m using last version of xharbour more continue problem.
what you make to solve it ?
thanks
Someone ?
Try to assign nil to it:
oOleAutoObject := nil
Antonio,
Im using class CActiveX and have method Release
what´s i need change ?
METHOD Release() CLASS cActiveX
//-----------------------------------------------------------------------------------------------//
If ::hSink != NIL
OleDisconnectEvents( ::hSink )
::hSink:= NIL
EndIf
If ::hObj != NIL
OleFreeDispatch( ::hObj )
::hObj:= NIL
EndIf
::aEvent:= ::aBlock:= NIL
If ::hWnd != NIL
OleWEDestroy( ::hWnd )
::hWnd := NIL
EndIf
Return NIL
in end line i do it
#include "fivewin.ch"
function main()
public oAct, ownd
define window ownd
oAct:=cActiveX():New(ProgId) // progId referente ao meu activeX
activate window ownd
oAct:release()
Release ALL
SysRefresh()
return nil
more when close app continue message Erro.
Thanks
Antonio Linares wrote:oOleAutoObject := nil
Davide,
Do it in your PRG where you no longer need your used OleAuto object
Antonio Linares wrote:Do it in your PRG where you no longer need your used OleAuto object
DEFINE WINDOW oWnd TITLE cTitle
oActiveX = TActiveX():New( oWnd, "Shell.Explorer" )
oWnd:oClient := oActiveX // To fill the entire window surface
oActiveX:Do( "Navigate2",cUrl,,,cPostData,cType)
ACTIVATE WINDOW oWnd MAXIMIZED VALID (oActiveX:End() , .t.)
// 02.09.09 oActiveX := nil // Doesn't cure the problem
// 02.09.09 oActiveX:End() // Cures the problem, but makes the browser disappear METHOD Destroy() INLINE ActXEnd( ::hActiveX ), ::oOleAuto := nil, Super:Destroy()Antonio,
> METHOD Destroy() INLINE ActXEnd( ::hActiveX ), ::oOleAuto := nil, Super:Destroy()
this unfortunately doesn't work (looks like the program hangs before method Destroy() get fired).
> oActiveX:oOleAuto := nil
This DOES work, but ... (there's always a but) ... I also have a buttonbar on that window that performs some actions on the ActiveX object, and that line (obviously) breaks it.
Any other way to empty that object ONLY when the program receives a WM_CLOSE message ?
Thanks,
Davide
Davide,
> Any other way to empty that object ONLY when the program receives a WM_CLOSE message ?
Call it from the VALID clause of the window. (WM_CLOSE)
Antonio Linares wrote:Call it from the VALID clause of the window. (WM_CLOSE)