Help - Search - Members - Calendar
Full Version: Component doesn't load on some computers
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
nameczanin
Well, hi.

My problem is a little mystery. Why would have my plugin "crash" on some computers? Well, one of my pals says it's working. The other three people say it doesn't and they see following message in foobar's console:
QUOTE
Failed to load DLL: foo_dock.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


I just don't have any idea about that. I'll also add that I use Visual Studio 2008 Express. Also I don't any additional library (only source files). foobar2000 0.9.6.2 and the latest SDK (0.9.5).

I was thinking about msvc DLLs but that shouldn't be problem. As i can remember, foobar installs it on the system and also one of these three people has MS VC2k8 too and it fails for him.

What's wrong? Some compilation options?


Thanks in advance.
Yirkha
QUOTE (nameczanin @ Feb 17 2009, 23:03) *
I was thinking about msvc DLLs but that shouldn't be problem. As i can remember, foobar installs it on the system and also one of these three people has MS VC2k8 too and it fails for him.
fb2k doesn't install any MSVC runtime, it links with the CRT statically.

There are more than one revision of the MSVC++ 2008 runtime - the original one and SP1 (and maybe even more). You can see the manifest yourself and compare the IDs with what those people really have in assembly repository.

Finally, you should just build it statically and see if it's really the cause or not, no need to solve mysterious problems by guessing. Also if you plan to ever release the component to somewhat broader audience, installation of MSVC runtime only creates unnecessary support questions and bothers unexperienced users.
nameczanin
Thank you for reply.

I installed clean Windows XP and tried to run my component. Obviously there was an error. I found that error disappeared after that I have changed the "Runtime library" setting from Multi-threaded DLL to Multi-threaded. It seems to work now on these 2 computers from before. Thanks again for giving me a clue.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.