|
From: Christian W. <Chr...@vo...> - 2003-07-24 12:03:56
|
Hi List,
ich want to write a component to share data (PVOID) between threads.
I have a class defined like the following:
class CDataExchange
{
Public:
stuff....
private:
PVOID pDataArray[1000];
};
in the AddData member I look the number of entrys and reallocate memmory for
that pointer
realloc(pDataArry[n], nDataLength);
that works (i hope)...
but if i try do delete the class, it will throw an exception.
In the destructor I do delete [] pDataArray; , with LocalFree() it is the
same.
Does anybody has any hint for me ????
Thanks in advance
Christian
|