Title: Message
 
Objects which reside in the main UI thread should be called from another thread via nsISupports proxies:
 
Hope this helps,
Alan Hohn
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srinivasa Raghavan
Sent: Thursday, April 29, 2004 7:24 AM
To: [EMAIL PROTECTED]
Subject: loading an url to the browser in a separate thread

Hi,

I am loading an URL to the browser in a separate thread .

While launching the url using attached code (nsTestImpl.cpp) i am getting the following error

!!!!! XPConnect wrapper thread use error...
  XPConnect WrappedNative is being accessed on multiple threads but the underlying native xpcom object does not have a nsIClassInfo with the 'THREADSAFE' flag set
  wrapper: [object nsXPCComponents @ 0x833af60]
  JS call stack...
0 [native frame]
1 anonymous(aWebProgress = [xpconnect wrapped nsIWebProgress @ 0x86d4d68], aRequest = [xpconnect wrapped nsIRequest @ 0x88a6a80], aStateFlags = 458753, aStatus
= 0) ["chrome://navigator/content/nsBrowserStatusHandler.js":175]
    nsIWebProgressListener = undefined
    nsIChannel = undefined
    ctype = undefined
    msg = undefined
    channel = undefined
    location = undefined
    kErrorBindingAborted = undefined
    kErrorNetTimeout = undefined
    this = [object Object]
    this.defaultStatus = ""
    this.overLink = ""
    this.jsStatus = ""
    this.jsDefaultStatus = ""
    this.status = ""
    this.securityButton = [object XULElement @ 0x87356d8]
    this.isImage = [object XULElement @ 0x872a2c0]
    this.statusTextField = [object XULElement @ 0x86a3dc8]
    this.stopContext = [object XULElement @ 0x8729cf0]
    this.stopMenu = [object XULElement @ 0x8729828]
    this.stopButton = [object XULElement @ 0x8621200]
    this.statusMeter = [object XULElement @ 0x87317f0]
    this.throbberElement = [object XULElement @ 0x86b0908]
    this.urlBar = [object XULElement @ 0x865b848]
2 [native frame]


Please do help me to solve the problem.

Thanks and Regards
S.Srinivasa Raghavan


Reply via email to