COM/DCOM

Moderators: None (Apply to moderate this forum)
Number of threads: 177
Number of posts: 250

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
com exe loaded by JScript Posted by zadivad on 7 Sept 2012 at 2:41 PM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.