DllImport problem


hi,

 

i'm using p/invoke call couple of blas routines, , strangest thing happening. yesterday wrote code call unmanaged function called dgemm, using dll downloaded web.

code snippet

[dllimport("blas_win32.dll")]

//[dllimport("libacml.dll")]

unsafe private static extern int dgemm_(string transa, string transb, int* m, int* n, int* k, double* alpha,

double[] a, int* lda, double[] b, int* ldb, double* beta, double[] c, int* ldc);

 

then downloaded faster version of library specially targeted amd processors. tried code , worked fine. able run code using both dllimports (blas_win32 , libacml) , evaluate execution speeds , results. put dll files in same folder project (\bin\debug) , there.

 

today tried run code before start programming , surpprised find dllnotfoundexception message the specified procedure not found hresult: 0x8007007f

 

i can't think of changing lastnight, i'm frustrated this.

 

i tryed lot of things make work, copying file system32, project , call original function there, used dependency walker find dependencies, reinsatalled amd package, etc. ran apps remember runing yesterday, thinking this maight load in memory, nothing worked.

 

the dependency walker shows dependency of file on cygwin1.dll, don't have file, , never did.

 

does know may causing problem?

 

thanks in advance,

santiago.

 

if dependencywalker says has dependency on cygwin1.dll , can't , crashing dllnotfoundexception, might want take word it.  use dw's profile command sure.


.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'