Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > JS calling COM method

Thread Tools

JS calling COM method
Posts: n/a
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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a method(reference) to an other method and calling themethod. Erik Java 11 03-29-2008 07:26 AM
Help again with calling method from FormView_Inserting method sck10 ASP .Net 0 03-15-2007 01:56 PM
calling a method with 'throws IOException' from another method in the same class Java 1 01-28-2007 06:30 AM
Calling a method of the calling object ... why-em-jay Perl Misc 3 09-15-2005 07:53 PM
Problems with JNI: calling a Java method from native method. Jabel D. Morales - VMan of Mana Java 1 08-01-2003 12:18 PM