>From the Microsoft Platform SDK documentation concerning LoadLibrary:
"Note that two DLLs that have the same base file name and extension but
are found in different directories are not considered to be the same
DLL."

Loading two DLL's with the same name shouldn't be a problem.  Try
loading the custom dll first.  You may have a problem with the custom
dll itself, at least that's what the ERROR_NOACCESS points to.

> -----Original Message-----
> From: Lindsay Mathieson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 10, 2003 6:03 PM
> To: Sergey Startsev; SQLite
> Subject: Re: [sqlite] LoadLibrary, ERROR_NOACCESS
> 
> 
> Sergey Startsev wrote:
> 
> >Hello!
> >
> >  I am trying to load two copies of sqlite.dll at one time.  One - 
> > version 2.8.4, two - version 2.8.6
> >
> >  handle1:= loadlibrary('c:\2.8.4\sqlite.dll');
> >  // this loaded OK
> >
> >  handle2:= loadlibrary('c:\custom\sqlite.dll');
> >  // this return error
> >  ERROR_NOACCESS (Invalid access to memory location)
> >  
> >  Why I can't load two copies of sqlite.dll?
> >  
> >
> Because *windows* will not let you load the two copies of a 
> dll with the 
> same name - can't be done. Try renaming the dll, preferably with its 
> version, e.g.
> 
>   handle1:= loadlibrary('c:\2.8.4\sqlite_2.8.4.dll');
>   // this loaded OK
> 
>   handle2:= loadlibrary('c:\custom\sqlite_custom.dll');
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to