Miguel,

Such change will cause that *any* class with destructor whcih uses  
OLE will GPF.

We need to find the real reason why your code GPF when unloading OLE.  
If all OLE resources are released as they should, then no GPF should  
occur when unloading OLE.

Ron

On Apr 14, 2008, at 8:07 AM, Miguel Angel Marchuet wrote:

>
> We have a TActiveX class based on ATL with NON DESTRUCTOR method
>
> METHOD Destroy() CLASS TActiveX
>
>    UnLinkChild( ::hWnd )
>    ShutDownConnectionPoint( ::hSink )
>
> RETURN Super:Destroy()
>
> With the change proposed by Jose Gimenez, now runs without GPF.
>
> If I put it :
>
>    #if defined(HB_OS_WIN_32)
>       if( s_bUnInitOle )
>       {
>          OleUninitialize();
>       }
>    #endif
>
> after :
>
>    hb_clsReleaseAll();
>
> then crashes altogether
>
>
> Best regards,
> Miguel Angel Marchuet
>
>
> Ron Pinkas escribió:
>> Jose,
>> But Some classes may have DESTRUCTORs that still need OLE.
>> Ron
>> On Apr 14, 2008, at 6:13 AM, Jose F. Gimenez wrote:
>>> Ron,
>>>
>>>> What about just AFTER releasing STATICs, before hb_errExit()?
>>> IMO, OLE connections should be totally closed before releasing  
>>> any  variable or memory block, but after exit and registered  
>>> procedures  execute, to allow them to call any OLE component.  
>>> That's why I  suggested that point.
>>>
>>>
>>> Regards,
>>>
>>> Jose F. Gimenez
>>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference  
>> Don't miss this year's exciting event. There's still time to save  
>> $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk; 
>> 198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> xHarbour-developers mailing list
>> xHarbour-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to