• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 554
  • Last Modified:

Plugin loaded but not getting initialized.

Hi, I have developed a plugin using NPAPI methods. I copied all the necessary DLLs to plugins folder. I am able to successfully load the plugin. When I enter about:plugins, my plugin gets listed. But when I try to open the file for which I developed the plugin, NP_Initialize is not getting called. If you are aware of possible causes / solutions, please post it.
0
Cool-Guy
Asked:
Cool-Guy
  • 2
1 Solution
 
romanmCommented:
how exactly are you loading the file?
0
 
Cool-GuyAuthor Commented:
i have created a html with embed tag using which I try to open the file. If I just run the sample NPAPI plugin available at mozilla, it calls the initialize method without any problems When I integrated that NPAPI with some of my implementations, it doesn't even enter the initialize method. But the plugin seems to load perfectlly.
0
 
Cool-GuyAuthor Commented:
After a day's long effort, I found out the reason to be the declaration of a global class object in my file. Making it a part of another class solved this problem. I am not sure about the reasons behind it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now