strange behaviour with LoadLibrary

Philippe GIACINTI giac@dalim.de
Thu Jul 10 03:11:00 GMT 1997


Hi,

I have two dlls: dll2 which defines symbol "sym2", and dll1 which defines
symbol "sym1" and uses symbol "sym2" from dll2. dll1 is linked with import lib
of dll2.
Then I have two kind of main :

	1) a main which uses "sym1" and is linked with import lib of dll1
	result:
		- dll2 is loaded and entry point is called
		- dll1 is loaded and entry point is called
		- main call "sym1" which call "sym2" ==> OK

	2) a main which opens dll1 with LoadLibrary, get symbol "sym1" and then
call the function.
	result:
		- the first LoadLibrary gives a Win32 error
#998(ERROR_NOACCESS)
		- try LoadLibrary again, now it works but the entry point of
		dll1 is not called
		- when "sym1" is called I got an exception ( I can't know where
		because the first Win32 error stop debugging in gdb ...

I'm using b18 with Sergey's itimer patch on a NT4.0 Pentium Pro 200 box
( you can find sources and makefile attached to this mail )

Any help will be welcome.
Best regards.


-- 

 ==========================================================================
|                         Philippe GIACINTI                                |
|                                                                          |
| DALiM GmbH R&D                                email:  giac@dalim.de      |
| Daimler Strasse 2,                            tel:    +49.7851.9196-28   |
| D-77694 Kehl-Sundheim Germany                 fax:    +49.7851.73576	   |
|                                                                          |
 ==========================================================================


More information about the Cygwin mailing list