Re: 0x8000FFFF error when calling a Javascript function from C++.
- From: Andrew Yao <andrewyao@xxxxxxxxx>
- Date: Thu, 20 Oct 2005 13:25:36 -0700
Igor Tandetnik wrote:
"Andrew Yao" <andrewyao@xxxxxxxxx> wrote in message news:n3I5f.2$RC4.38@xxxxxxxxxxxxxxxxxx
Does anyone know what could cause this? This ActiveX uses the
Asynchronous Pluggable Protocol from Igor Tandetnik, so this particular
call could be executing from a different thread to the main IE browser
thread.
Can't do that. Once initialized on a particular apartment, a script engine must be called on the same apartment. In your case it means you can only call the script on the main UI thread. Use Switch / Continue to switch to the main thread if you have to.
Thanks so much Igor.
Your comments are always dead-on. I called the script by sending a message to the main UI thread and it works.
I am not quite sure how to use Switch/Continue however. Is there an example that I could take a look at?
In my case, The Controller App, the WebBrowser control and where APP generates Request/Response are all in separate threads.
thanks again... You are super..
Andrew
.
- Follow-Ups:
- Re: 0x8000FFFF error when calling a Javascript function from C++.
- From: Igor Tandetnik
- Re: 0x8000FFFF error when calling a Javascript function from C++.
- References:
- 0x8000FFFF error when calling a Javascript function from C++.
- From: Andrew Yao
- Re: 0x8000FFFF error when calling a Javascript function from C++.
- From: Igor Tandetnik
- 0x8000FFFF error when calling a Javascript function from C++.
- Prev by Date: Re: 0x8000FFFF error when calling a Javascript function from C++.
- Next by Date: Re: 0x8000FFFF error when calling a Javascript function from C++.
- Previous by thread: Re: 0x8000FFFF error when calling a Javascript function from C++.
- Next by thread: Re: 0x8000FFFF error when calling a Javascript function from C++.
- Index(es):
Relevant Pages
|
|