Hi All,

Iam using "placement new" in my application and I have a custom allocator as well.

The problem is a memory leak which I reduced considerably,but still I have some..I would like to fix that as well.
Under Windows There is no memory Leak what so ever.


In the custom allocator which is described below:
[1]I had to add the commented portion Under Linux to make it compile.Why is it so?

[2]Iam using Kaldera gcc compiler version 3.1.1.I read in a place that if you are using placement new & if the compiler doesnt support the placement delete ,we will have a memory Leak.

Does the version 3.1.1 support that. ?

The custom allocator-

//static T_BUFFERTYPE rb(1);- uNDER Linux needed

template<class T, class B>
class BufferAllocatorublic allocator<T>

{
public:

BufferAllocator(B& buffer):m_buffer(buffer){}
// BufferAllocator():m_buffer(rb){} *********For Linux
//Other functions are there which iam not including.

protected:

B& m_buffer;

};


Thanks.....