Przemysław Czerpak wrote:

For sure it's called. I've checked it with your example.

You are correct, it is called.

In my HWGUI example with similar functionality, the destructor is not called. Is this because the code blocks in the menu produce the same problematic references?

function main()
    local oHTTP
    local oMainWindow

    INIT WINDOW oMainWindow MAIN TITLE "Hello ActiveX"  ;
            AT 200, 0 SIZE 420, 300
    MENU OF oMainWindow
        MENU TITLE "&File"
MENUITEM "HTTP" ACTION { || oHTTP := HActiveX():New( WIN_N2P( oMainWindow:handle ), "www.google.com", 0, 0, 300, 300 ) }
            SEPARATOR
            MENUITEM "E&xit" ACTION { || EndWindow() }
        ENDMENU
    ENDMENU
    ACTIVATE WINDOW oMainWindow
return nil

Regards
Alex
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to