com exe loaded by JScript - Programmers Heaven

Howdy, Stranger!

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

Categories

com exe loaded by JScript

zadivadzadivad Posts: 2Member
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
Sign In or Register to comment.