Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

com exe loaded by JScript

$
0
0
Hi,
I developed a local server(exe) with dual interface (using c++ ATL).
com is consumed by javascript in IE with "new activexobject".

However,
after calling to new activexobject the object in JS works fine but the reference counting in my c++ code increament several times and become 4.

so the local server is never shutdown till I close the IE browser.

I want to add a "ReleaseObj" function in my COM object so the javascript will be able to call it and release the object.

Is it safe to implemnt in this function a loop that call to release() till refcount is zero? is there another way?

Thanks
zadivad

Viewing all articles
Browse latest Browse all 2703

Trending Articles