搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

XPCOM registration is failing with gecko 13 on win7

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I have created an firefox extension(.xpi) using gecko 13 sdk. That works perfectly fine on Windows XP but its failing to register itself on Vista and Win7. On Win7 and Vista, I am getting error "Obj is undefined" while executing this line in my js file

Obj = Components.classes[classid].createInstance().

I have tried launching firefox as administrator but that didn't help. Also, when I enabled NSPRLogging then I got this error.


0[f0f140]: nsNativeModuleLoader::Init()

Kindly guide me how I can make this extension work on Vista and Win7.

I have created an firefox extension(.xpi) using gecko 13 sdk. That works perfectly fine on Windows XP but its failing to register itself on Vista and Win7. On Win7 and Vista, I am getting error "Obj is undefined" while executing this line in my js file Obj = Components.classes[classid].createInstance(). I have tried launching firefox as administrator but that didn't help. Also, when I enabled NSPRLogging then I got this error. 0[f0f140]: nsNativeModuleLoader::Init() Kindly guide me how I can make this extension work on Vista and Win7.

所有回覆 (1)

more options

Try to ask advice at the MozillaZine Extension Development forum.

You need to register on the MozillaZine forum site in order to post at that forum.