Old 8th October 2008, 08:16   #1
bruder_s
Junior Member
 
Join Date: Sep 2001
Posts: 34
Debugging question

Hi,

I've made some changes to my plugin and now it won't load anymore (without any error message). It still works on my development machine, but not anymore on another machine.
I've installed on another machine and there's the same.

I've tried both showing a MessageBox and writing a file to c:\ as first thing in the init()-function, but neither of it seems to be executed (but worked on the development machine).

Is there some way to find out what exactly is happening here and/or why the plugin won't load?

Regards, Christian

PS: I don't know exactly what may have caused this since I don't regularly update on the other machine, but I guess it could have something to do with added png support (libpng & zlib). I also got a virus warning on 'zlib.dll' when I started trying around with libpng, but the warning pointed to the dll in Winamp's directory (I also found out that others seemed to have this problem as well).
bruder_s is offline   Reply With Quote
Old 8th October 2008, 09:55   #2
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
1. What are you using in developing it?

2. Develop a .exe file and execute on the other machines or upload the plugin here to test.

It sounds like you dont have the dependency modules on the other computers.
griffins_Grader is offline   Reply With Quote
Old 8th October 2008, 10:04   #3
bruder_s
Junior Member
 
Join Date: Sep 2001
Posts: 34
Yes, I think so, too.

I've just installed Visual C++ Express Edition on the test machine and now it works.

But I don't have a clue what was missing before or how I can find out.

I'm using another library and when I accidentally linked it dynamically, it was complaining that the DLL was missing (linked statically now).
Now, there's no feedback on what's going on / is missing...

I've uploaded the current plugin to 'wa-nowplaying.sourceforge.net' (nowplaying2.exe). There's also ml_nowplaying2.dll, which still runs on the test machine.
bruder_s is offline   Reply With Quote
Old 8th October 2008, 10:23   #4
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
Determining which DLLs to redistribute
for any dynamic linking, the module must be present on the target machine.
griffins_Grader is offline   Reply With Quote
Old 8th October 2008, 10:28   #5
bruder_s
Junior Member
 
Join Date: Sep 2001
Posts: 34
OK, I'll take a look later (currently at work)...

I'm only using zlib, libpng and intel jpeg library and boost's regex stuff which are all linked statically.
Since I guess none of them come with Visual c++ express, I think it's maybe some ms dll missing on the test machine.

Thank you so far...
bruder_s is offline   Reply With Quote
Old 9th October 2008, 19:52   #6
bruder_s
Junior Member
 
Join Date: Sep 2001
Posts: 34
Finally resolved the problem.

DependencyWalker and this was helpful.
Since I figured out the plugin runs fine without the new CRT Dlls, I removed them completely and now everything runs fine without additional DLLs.

Thanks for the help
bruder_s is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump