[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/support dynlib.c,1.11,1.12
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/support dynlib.c,1.11,1.12 |
Date: |
Mon, 28 Jul 2003 03:58:31 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv31458/support
Modified Files:
dynlib.c
Log Message:
Use DllNotFoundException and EntryPointNotFoundException instead
of MissingMethodException during PInvoke operations.
Index: dynlib.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/dynlib.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** dynlib.c 24 Jun 2003 05:10:42 -0000 1.11
--- dynlib.c 28 Jul 2003 07:58:25 -0000 1.12
***************
*** 34,37 ****
--- 34,42 ----
#endif
+ /*
+ * Define this for additional debug messages.
+ */
+ /*#define IL_DYNLIB_DEBUG 1*/
+
#ifdef __cplusplus
extern "C" {
***************
*** 78,82 ****
--- 83,89 ----
msg = ""; break;
}
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: could not load dynamic library%s\n", name,
msg);
+ #endif
return 0;
}
***************
*** 157,161 ****
--- 164,170 ----
ILFree(newName);
}
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: could not find the specified symbol\n", symbol);
+ #endif
return 0;
}
***************
*** 190,195 ****
--- 199,206 ----
if(libHandle == 0)
{
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: could not load dynamic library\n",
(newName ? newName : name));
+ #endif
if(newName)
{
***************
*** 216,220 ****
--- 227,233 ----
if(procAddr == 0)
{
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: could not resolve symbol", symbol);
+ #endif
return 0;
}
***************
*** 262,268 ****
--- 275,283 ----
/* Report the error */
+ #ifdef IL_DYNLIB_DEBUG
error = dlerror();
fprintf(stderr, "%s: %s\n", name,
(error ? error : "could not load dynamic
library"));
+ #endif
return 0;
}
***************
*** 303,307 ****
--- 318,324 ----
ILFree(newName);
}
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: %s\n", symbol, error);
+ #endif
return 0;
}
***************
*** 312,316 ****
--- 329,335 ----
{
#ifndef REDUCED_STDIO
+ #ifdef IL_DYNLIB_DEBUG
fprintf(stderr, "%s: dynamic libraries are not available\n", name);
+ #endif
#endif
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/support dynlib.c,1.11,1.12,
Rhys Weatherley <address@hidden> <=