We are facing some issue with crypto dll and would really appreciate if we could get any help on this. We are using cryptopp version 5.6.1.0.
We have 2 separate java programs, both use the system.load()function to load a Cryptowrapper dll (it’s a CPP program which acts as a JNI -Java Native Interface). This Cryptowrapper inturn calls encrypt/decrypt functions in Crypto.dll. For one of the Java program it works without any issue. The password gets encrypted properly. But the other Java program when it invokes the JNI Cryptowrapper dll which further tries to load the crypto.dll. The crypto.dll loading fails; did a GetLastError()and got the system error code as 183. myCrypto = LoadLibrary (cryptoPath); here cryptoPath points to the full path to crypto.dll (including the crypto dll). Tried using both Loadlibrary() and LoadlibraryEx(), still it didn’t work. myCrypto =LoadLibraryEx(cryptoPath, NULL, LOAD_IGNORE_CODE_AUTHZ_LEVEL); What is confusing is - the same JNI being refered by two Java program in similar way - in one case the JNI successfully loads the crypto dll while in another case it gives err 183. Details about environment – Win XP/ MS Visual studio 2010 runtime environment. This issue is Not recreated on all the test machines. However, on multiple machines where it does gets recreated, I am able to replicate it consistently. Thanks in advance.. -- View this message in context: http://old.nabble.com/LoadLibrary-failed-with-error-183-while-loading-crypto-dll-from-another-C%2B%2B-program-tp35302052p35302052.html Sent from the Crypto++ Users mailing list archive at Nabble.com. -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
