dreijer wrote:
Crypto++ was not able to obtain new and delete function pointers.
First-chance exception at 0x7c812a5b in Cryptopp Test.exe: Microsoft
C++ exception: int at memory location 0x0012f190..

Here is the section titled "DLL Memory Management" from Readme.txt:

Because it's possible for the Crypto++ DLL to delete objects allocated
by the calling application, they must use the same C++ memory heap.
Three
methods are provided to achieve this.
1.  The calling application can tell Crypto++ what heap to use. This
method
   is required when the calling application uses a non-standard heap.
2.  Crypto++ can tell the calling application what heap to use. This
method
   is required when the calling application uses a statically linked
C++ Run
   Time Library. (Method 1 does not work in this case because the
Crypto++ DLL
   is initialized before the calling application's heap is
initialized.)
3.  Crypto++ can automatically use the heap provided by the calling
application's
   dynamically linked C++ Run Time Library. The calling application
must
   make sure that the dynamically linked C++ Run Time Library is
initialized
   before Crypto++ is loaded. (At this time it is not clear if it is
possible
   to control the order in which DLLs are initialized on Windows 9x
machines,
   so it might be best to avoid using this method.)

When Crypto++ attaches to a new process, it searches all modules loaded

into the process space for exported functions
"GetNewAndDeleteForCryptoPP"
and "SetNewAndDeleteFromCryptoPP". If one of these functions is found,
Crypto++ uses methods 1 or 2, respectively, by calling the function.
Otherwise, method 3 is used.

(end quote)

It looks like method 3 failed. You can either try to figure out why, or
use one of the other methods. Look at dlltest.cpp for sample code of
method 2. Or just use the static library.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Crypto++ 
Users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cryptopp-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to