Problem with TaskPane initialization - possible race condition?

D

Darryn Lavery

Re-posting from

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=371520&SiteID=1

Hello

I am currently developing an InfoPath form which uses a custom task pane.
There is a good deal of interaction between the form code and the task pane's
JS code. The form code is mostly implemented as an external library
downloaded from a web server and instantited via
Activator.CreateInstanceFrom() in the OnLoad event. The HTML body element's
onload event on the other hand is used to inform the library that the task
pane's intialization has finished. I ran into the following problem.
Sometimes (often) the task pane initialization code fails informing the
callee reference is null. It seems to me this is a race event caused by the
MSHTML in the task pane running on a seperate thread. Is there any simple way
to go around this?

Piotr Jelonkiewicz
 

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

Top