Wei - I did find a difference under the Project/Settings/Link/Input settings. My project had several common Windows libraries included (kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib). Removing these allowed the program to begin execution. This doesn't seem to affect the debug version as it works without removing these.
The release version now will start execution, but fails to complete consistently. Running it under the IDE reports a number of errors like this: HEAP[Crypto.exe]: Invalid Address specified to RtlFreeHeap( 00330000, 003543F0 ) I tried running the dlltest included in the FIPS 140 distribution and received the same errors following display of '6. DSA key encode/decode succeeded.' I can provide more info about my run time environment, etc. if needed. I sincerely appreciate your help. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 4:44 PM To: [EMAIL PROTECTED] Subject: Re: VC++ Release vs. Debug (FIPS 140) Does the test application included in the FIPS 140 distribution work in release mode? If so, look at what is different between your application and the test application. If you still can't figure it out, send me what the call stack looks like when the error occurs, and a zip of your source code and project files. On Tue, Jun 29, 2004 at 10:43:15AM -0700, Murata, Rick wrote: > I am new to Crypto++ and wrote a small application that successfully uses > the SHA, AES, X917 and RSA methods under the debug build. However, when I > try and build my application to use the release build of cryptopp.dll, it > compiles and links fine but returns "The application failed to initialize > properly (0xc0000005)" and then "Unhandled exception in Crypto.exe > (NTDLL.DLL): 0XC0000005: Access Violation". I have placed a copy of the > release build dll into the directory with the exe and have directed the > linker to use the cryptopp.lib in the /crypto++/release directory > > > > I read the 'fact-o-matic' and have tried several different settings under > 'Project/Settings/C/C++/Use run time library:' > > > > Here are the last settings I tried: '/nologo /Gz /MD /W3 /GX /O2 /I > "\Crypto++\Include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D > "CRYPTOPP_DLL_ONLY" /Fp"Release/Crypto.pch" /YX /Fo"Release/" /Fd"Release/" > /FD /I /Crypto++/Include" " /c' > > > > Any help/guidance would be greatly appreciated! > > >
