Hi Jeff Thank you for the support.
I was able to resolve the issue, it seems like for 64-bit it was not able to correctly load *SetNewAndDeleteFromCryptoPP *so I had to add following code to my *.cpp file before calling anything else. #ifdef CRYPTOPP_IMPORTS static PNew s_pNew = NULL; static PDelete s_pDelete = NULL; extern "C" __declspec(dllexport) void __cdecl SetNewAndDeleteFromCryptoPP(PNew pNew, PDelete pDelete, PSetNewHandler pSetNewHandler) { s_pNew = pNew; s_pDelete = pDelete; } void * __cdecl operator new (size_t size) { return s_pNew(size); } void __cdecl operator delete (void * p) { s_pDelete(p); } #endif Strangely it works fine for 32-bit without this lines. I don't fully understand why, but adding line above works for 32-bit and 64-bit. Thank you for your support. On Tuesday, May 2, 2017 at 6:53:02 PM UTC-7, Jeffrey Walton wrote: > > > > On Tuesday, May 2, 2017 at 6:31:12 PM UTC-4, Farukh Sharipov wrote: >> >> I thought to add a little more information about what environment I am >> using. >> >> I am using VS 2015; Win7. >> >> My Linker command like looks as following: >> >> /OUT:"C:\Users\821973\documents\visual studio >> 2015\Projects\CryptoExample7\x64\Debug\CryptoExample7.exe" /MANIFEST >> /NXCOMPAT >> /PDB:"C:\Users\821973\documents\visual studio >> 2015\Projects\CryptoExample7\x64\Debug\CryptoExample7.pdb" /DYNAMICBASE >> "C:\Users\821973\documents\visual >> studio 2015\Projects\CryptoExample7\libs\x64\cryptopp.lib" "kernel32.lib" >> "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" >> "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" >> "odbccp32.lib" /DEBUG /MACHINE:X64 /INCREMENTAL >> /PGD:"C:\Users\821973\documents\visual >> studio 2015\Projects\CryptoExample7\x64\Debug\CryptoExample7.pgd" / >> SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" / >> ManifestFile:"x64\Debug\CryptoExample7.exe.intermediate.manifest" / >> ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"C:\Users\821973\Documents\Visual >> Studio 2015\Projects\CryptoExample7\libs\x64" /TLBID:1 >> >> >> and C++ command line looks as following: >> >> /GS /W3 /Zc:wchar_t /ZI /Gm /Od /Fd"x64\Debug\vc140.pdb" /Zc:inline >> /fp:precise >> /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /errorReport:prompt >> /WX- /Zc:forScope /RTC1 /Gd /MTd /Fa"x64\Debug\" /EHsc /nologo /Fo"x64\ >> Debug\" /Fp"x64\Debug\CryptoExample7.pch" >> >> >> I would appreciate if somebody can help me with 64-bit run time issue. >> > > You should probably visit https://www.cryptopp.com/wiki/Bug_Report. It > helps when more relevant information is provided, like the source file and > line that's causing the problem. > > Jeff > -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. 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 cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.