On Wed, Jan 5, 2011 at 8:04 PM, mike <mgu...@knology.net> wrote: > > Not sure what you mean. Actually, I was just refreshing the thread. ;-) > > See previous post and example code, ...."If I p/Invoke to a single native > dll, all is fine. However if that dll depends on a secondary native dll, I > get an "unhandled exception: System.DLLNotFoundException". Again, this > scenario works fine under .NET, fails under 2.8 (under win mono) > > The issue seems to be related to p/Invoking a dynamic link library which > depends on a second native dll. >
Have you checked your LD_LIBRARY_PATH environment variable ? In order to find a native library in the current folder, the LD_LIBRARY_PATH must contain . or the full path to your application's folder. This vary from windows which is searching in the application's base folder first (see Remarks in http://msdn.microsoft.com/en-us/library/ms684175(v=vs.85).aspx) _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list