Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Problem coding a Netscape plugin, help me

Problem coding a Netscape plugin, help me
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2001
Location: Paris
Status: Offline
Reply With Quote
Jun 22, 2001, 05:55 AM
 
Hi,
I am writing a plugin with Netscape SDK running on IE5 on Mac OS 9.
I started to code and compile my DLLs on CodeWarrior5 and everything was
working fine using IE5. I don t use Carbon yet, just InterfaceLib.
I installed CodeWarrior 6 and I just changed my projects to use the new
libraries of CW6. My plugin does not work anymore.

While loading the plugin, IE5 tells me theses errors messages:
"An error occured while loading the plugin"
and then
"The attemps to load "Accessing URL: file:///Filename" failed "

No Carbon is used.
Using breakpoints, the debugger does not even stop at the main()
function in the file "npmac.cpp" No Initialiasition of my plugin either.

My plugin is declared in the list of plugins of IE5.

Do have any ideas of what the problem could be.

Eric

ps: I still have CW5 installed. Could it be a problem?

     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Sep 15, 2001, 01:19 AM
 
Hi Eric,

Sadly, I (like many other folks) don't always have as much time as I'd like to keep track of this Forum. By now, I guess you've already resolved the problem?

If not, I can perhaps offer some general tips (although I must confess that I have zero hands-on experience with coding Netscape plug-ins)... For instance, if the standard 'main()' or 'NPP_Initialize()' routines didn't even get called, then there might have been a low-level CFM problem with your shared library (plug-in). As you suggested, this could be due to the CW Pro 6 IDE somehow pulling in older CW Pro 5 stuff. All kinds of strange problems can arise from mismatched header-files (Mac OS Universal Interfaces or Netscape API headers) and/or system stub-libraries such as InterfaceLib. On the other hand, the problem could simply be that some crucial linker options were inadvertently mangled when the project was imported into CW Pro 6. You could try comparing the project's preference panels in CW Pro 5 and CW Pro 6 to see if there are any differences.

Let us know how things turned out.

Regards,

--Paul
     
Fresh-Faced Recruit
Join Date: Jun 2001
Location: Paris
Status: Offline
Reply With Quote
Sep 17, 2001, 03:35 AM
 
Hi Paul,

I did find what was wrong, I was simply linking to one DLL without having it in my directory. So Netscape did not like it and told me that something was wrong, very helpful error message I should say )
Anyway, thanx for your help.

Regards

Eric
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2