Plugin loaded but not getting initialized.

Posted on 2008-11-06
Last Modified: 2013-12-07
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.
Question by:Cool-Guy
    LVL 3

    Expert Comment

    how exactly are you loading the file?

    Author Comment

    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.

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now