JS calling COM method

R

rottyguy70

Hello, we have some JS code calling an asynchronous COM method on a PC.
The JS passes in an object with callbacks that are to be made when the
COM method is complete. When the COM method is done and tries to call
back on this object, it receives a COM error translated to "Can't
execute code from a freed script". I thought that by ref'in the
incoming callback object supplied from JS, COM would force the script
to remain resident until it was released? Is this an incorrect
assumption? If so, what is the correct way to approach this?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,231
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top