lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** [Mingw-users] .NET interface with DLL: 0x800703E6
- Date: Thu, 26 Jun 2008 00:44:56 +0100
- From: "Jay L. T. Cornwall" <jay@xxxxxxxxxxxxxxx>
- Subject: ***BOGO*** [Mingw-users] .NET interface with DLL: 0x800703E6
Hi,
I am trying to link FFmpeg (with P/Invoke) built with mingw on a Windows
Server 2003 machine for use in Vista 64-bit. For the most part it works
flawlessly. However, I have a problem suspiciously similar to this:
http://lists-archives.org/mingw-users/10173-dll-net-invalid-access-to-memory-location.html
Sometimes the DLL will fail to load when the first call is made and will
give the following error. This is greatly aggravated by loading the DLL
later in the application, leading me to suspect a relocation problem.
Unhandled Exception: System.DllNotFoundException: Unable to load DLL
'avformat-52.dll': Invalid access to memory location. (Exception from
HRESULT: 0x800703E6)
The resolution in that thread was to not use dllwrap. However to my
knowledge FFmpeg is not using that. Its link line (minus irrelevant
flags and objects) is:
gcc -shared -Wl,--output-def,avformat-52.def
-Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base -Wl,-
-add-stdcall-alias -Wl,--warn-common -Wl,-Bsymbolic -o avformat-52.dll
My mingw system is using GCC 4.3 and a toolset as up-to-date as I could
find. My own simple DLL does not exhibit this problem unless I ask GCC
to link it to avformat-52.dll, so that it gets autoloaded. Any ideas?
(Another theory I found on the web is that this mau be caused by DEP. I
don't think DEP is enabled for general applications in Vista 64-bit
unless a special boot flag is provided. In any case, adding a DEP
exception for the C# executable made no difference.)
--
Jay L. T. Cornwall
http://www.jcornwall.me.uk/
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users