Does anyone know if the class AutoSeededRandomPool is thread-safe, that is, if I have a single global instance of this class, can multiple threads call GenerateBlock() without getting in each others' way?

On a related issue, I seem to be getting some small memory leaks reported by Visual Studio 6.0 when using AutoSeededRandomPool:

Detected memory leaks!
Dumping objects ->
{99} normal block at 0x00D51030, 64 bytes long.
Data: < 7 M Z# o> 91 9D BC 90 D0 37 B1 86 14 4D F8 5A 23 81 6F C4
{98} normal block at 0x00D52E70, 384 bytes long.
Data: < 7 M Z# o> 91 9D BC 90 D0 37 B1 86 14 4D F8 5A 23 81 6F C4
{97} normal block at 0x00D510A0, 44 bytes long.
Data:
I get a set of these for each AutoSeededRandomPool object that I create. (I'm allocating these objects on the heap.) That's why I want to use only one so that I leak only one time.

My version of Crypto++ is 5.2.1.

Dan Sanderson
Living Software, Inc.

_______________________________________________________________
Get the FREE email that has everyone talking at http://www.mail2world.com

 

Reply via email to