Chen Kinnrot
Chen Kinnrot

Reputation: 21015

threading and ie7 add ons

i have a ie7 add on, i'm adding html elements to the page being browsed.

ie throws operation aborted, and dont nevigate to the page, anyone knows what to do?

i work asynchronously with the html elements adding

Upvotes: 0

Views: 67

Answers (2)

Chen Kinnrot
Chen Kinnrot

Reputation: 21015

The best way to make sure you work with the main thread of your web browser helper is to do all of your async work in background worker.

the second option is to create a syncronization context and allways perform dom changes from the sync context

Upvotes: 0

i_am_jorf
i_am_jorf

Reputation: 54600

The IE DOM objects are all STA object. Which means you can only use them on the thread they were created on, which is the Tab UI thread.

If you need to use them from a background thread, you must marshal the object from one apartment to the other. This is accomplished fairly easily using the Global Interface Table.

Upvotes: 1

Related Questions