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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

how exactly are you loading the file?
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.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.