Discussion:
[Portaudio] clr20r3 dllnotfoundexception
Bernt Rønningsbakk
18 years ago
Permalink
Hello David,

I've followed your fine instruction for compiling with VS 2005 (hit and
hope) and it seems to have worked fine. I am beginning to get a good c#
binder up and running.

It works on the development machine. But when I bring a USB stick with an
.exe + portaudio.dll to any of the other computers this error is raised on
startup. All machines run XP SP2. I am not registering the portaudio dll. It
is located next to the exe file.

I get a clr20r3 error P9: system.dllnotfoundexception when I try to run a c#
program that calls portaudio.dll. Browsing the www for clr20r3 brings up all
kinds of related errors, but none with a relevant solution.

Running from the USB stick on the development machine, I get the same error
if I rename portaudio.dll. So there are strong indications that
portaudio.dll is not found, rejected or something similar on the other
machines.

I've made a new windows application that holds the binder and makes one call
to portaudio, and the same thing happens there.

If you have a portautio_x86.dll that you know works on various machines I'd
love to try it out to see if I have a compilation problem here or there's
something with my binder makeup.


Best regards / vennlig hilsen

Bernt
David Viens
18 years ago
Permalink
Hi

Sounds like C++ runtime components are missing on the target machine.
portaudio_x86.dll is linked with /MTD (Multithreaded DLL C/C++ runtime).

Under VC6 it aint a "problem" since msvcrt.dll and msvcp60.dll are installed
on every windows installation since Win98SE, but when compiling with VC2005
you will require another set of runtime dlls.

The redist for 32 bit VC2005 SP1 is available here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
And the non sp1 version:
http://www.microsoft.com/downloads/details.aspx?FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

If you dont want to install those redistributables, you can set VC2005's project
to link with "Multithreaded" only. But this is untested!

Cheers
...
--
David Viens, Plogue Art et Technologie Inc.
Montreal. http://www.plogue.com
James Austin
18 years ago
Permalink
Keep in mind these links don't contain the debug versions of these DLL's, so make sure you do a release build to see if this fixes your problem.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://music.columbia.edu/pipermail/portaudio/attachments/20071101/58f02801/attachment.htm
Loading...