com exe loaded by JScript

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

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?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!