Old 6th February 2012, 14:37   #1
Aldasa
Junior Member
 
Join Date: Feb 2012
Posts: 3
plugin [not loaded]

Hi, I created a general plugin using C++/CLI, to output VU data to an Arduino connected to a COM port, Using both managed and unmanaged code.

It runs perfectly on Win7 x64, with .NET framework 4 installed.

The problem is, it wont load on another OS. Ive tried XPsp2 and Vista VMs but I get a [NOT LOADED] message in the plugin list. I have installed the .NET framework 4 client profiles on both systems.

Haven't seen much info about this error. Is there a winamp debug log anywhere, to show where its failing?

Im using the same version of winamp on all computers. Dont know why it works on one, but not the other two systems.
Aldasa is offline  
Old 6th February 2012, 14:48   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
that error appears if Winamp is not able to load the plug-in dll either from a dll dependency issue or a corruption of the plug-in itself.

as you've mentioned using managed and unmanaged code, have you made sure that you're not trying to use the debug version on the other machines (common cause of such failures) or that you've compiled things against the correct platform version i.e. it must all be 32-bit.

-daz
DrO is offline  
Old 6th February 2012, 15:26   #3
Aldasa
Junior Member
 
Join Date: Feb 2012
Posts: 3
Thanks daz,

All the compile options seem fine. Just tested it on my wifes win7 laptop, and it ran fine on it.

It most likely a dependency problem then on the other two systems.
Aldasa is offline  
Old 6th February 2012, 15:35   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
as a starting point you might want to check out the dll dependencies via http://www.dependencywalker.com/ which may / may not give an idea of what is not being found.

-daz
DrO is offline  
Old 6th February 2012, 18:44   #5
Aldasa
Junior Member
 
Join Date: Feb 2012
Posts: 3
Running great now. Forgot to install the Visual C++ Redistributable. Thanks
Aldasa is offline  
Old 6th February 2012, 19:32   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
is always something simple like that

-daz
DrO is offline  
Old 31st August 2022, 22:07   #7
Ingvar
Junior Member
 
Join Date: Aug 2022
Posts: 20
DrO, I have the same problem. When I sent my plugin to another computer, Winamp doesn't load it.

In Visual Studio 2012 I set project configuration to "Release" and compiled my plugin dll.

In Winamp "Preferences" window I see "NOT LOADED" message.

And log file \AppData\Roaming\Winamp\winamp.log contains error:
Quote:
[5.9.0.9999] [error] Error when loading the plugin 'gen_wa_plugin.dll'! Error code : 126!
Error 126 - means that specified module could not be found.

There seems to be a problem with dependencies.

In "C/C++ -> Code Generation" settings I found "Runtime Library" option. Now it has "Multi-threaded DLL (/MD)" value .

Should i change it to "Multi-threaded (/MT)"?

I downloaded some WACUP plugin sources from github and in Release configuration this option is equal to "Multi-threaded DLL (/MD)".
That means that these plugins will have dependencies and Winamp won't load them either. But plugins like waveseek works well. Maybe developers forget to change this option to "/MT" in public projects? I don't understand.

So I want to ask you what project settings should be to compile release version of my plugin to help Winamp to loads it on other PCs?
Ingvar is offline  
Old 1st September 2022, 05:53   #8
NJK
FRISIAN (MOD)
 
NJK's Avatar
 
Join Date: Sep 2003
Location: in a house
Posts: 16,353
Quote:
Originally Posted by Ingvar View Post
DrO, I have the same problem. When I sent my plugin to another computer, Winamp doesn't load it.
Dr0 is no longer with Winamp, doesn't visit this forum anymore so this thread is closed , if you have an issue open a new thread about this topic
NJK is offline  
Closed Thread
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
arduino, c++/cli, managed, not loaded

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