Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Error Loading DLL

Date2008-05-18 16:03
FromMichael Gogins
SubjectRe: [Cs-dev] Error Loading DLL
I have examined the two DLLs with nm and found substantial differences in runtime support functions. VL'sx DLL uses setjump-longjump ("sjlj") type exception handling, my DLLs use Dwarf2 ("dw") style exception handling. 

This may be the cause of the problem.

Also, the "Atom" functions are defined in the VL DLL. 

There are other differences.

All the opcode functions in the two DLLs, on a hasty look, are the same.

My best guess at this time is the exception handling code is the reason DLLs built by VL's version of GCC are not compatible with binaries built with my version of GCC. This should not matter because these DLLs are loaded at run time -- correct? But it seems to anyway.

I still do not see why my DLLs should not work with the 5.08 binaries, but I did upgrade GCC again after building 5.08, so that is probably it.

If this is an urgent issue for you, I can build the installer and FTP it to a site where you can download. Still no guarantees of course. Otherwise, we should have a 5.09 version in a month or so.

Another option is for me to switch to the setjump-longjump version of the current MinGW compiler.

Regards,
Mike

-----Original Message-----
>From: jean-pierre lemoine 
>Sent: May 18, 2008 8:16 AM
>To: Michael Gogins 
>Subject: Re: Error Loading DLL
>
>I dont' build from sources, I am just using either the 5.08 installer,
>or some DLL from a build that Victor sent to me.
>You must be right about optimisation, but the "Atom" functions are
>present in the Victor DLL. I attach the dll thus you can look at it.
>
>I can't use 5.07 because of bugs, and pan2, but I will appreciate a
>new 5.08 installer.
>
>I have a lot a erratic errors this morning and some directly with
>csound.exe, It seems that the new GCC compiler is not so clean. Did
>you manage to build csound with Visual C++?
>
>Many thanks for your help, and the time you spend on this problem
>
>Regards;
>jp
>
>On Sun, May 18, 2008 at 1:44 PM, Michael Gogins  wrote:
>> My pitch.dll is built with pitch.c, pitch0.c, and spectra.c. It is built with debugging information but is otherwise identical to the release version (optimized, etc.). The optimization may be why nm does not show the cos() function in the code, although it is there in the source code -- it may be inlined or intrinsic or something.
>>
>> There are no function calls with "Atom" in the function name anywhere in the Csound code. nm does not show "Atom" in any Csound DLL.
>>
>> This leads me to suspect that your pitch.dll contains non-Csound sources.
>>
>> At the same time, I did have similar dll loading errors when I was first trying to build Csound with the new GCC compiler. And that leads me to suspect that some of these errors are present in the 5.08 installer.
>>
>> Is your version of Csound built from sources or does it come from the 5.08 installer?
>>
>> You could try with 5.07, or I can make you a new installer.
>>
>> Regards,
>> Mike
>>
>> -----Original Message-----
>>>From: jean-pierre lemoine 
>>>Sent: May 18, 2008 4:29 AM
>>>To: Michael Gogins 
>>>Subject: Error Loading DLL
>>>
>>>The weird thing continues.
>>>This time I had the "error loading DLL" with pmidi.dll, and this case
>>>also when using csound.exe from a command prompt.
>>>I have uninstalled csound and re-install it (from the SourceForge
>>>installer), the error was again there. I copied the pmidi.dll from
>>>Victor's build, and the error went away.
>>>I have checked the dependency, and also checked that there is only one
>>>copy of mvscrt.dll in my machine.
>>>
>>>Regards
>>>jp
>>
>>
>>
>>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net