another puzzle but i think its related:

when i allocated the buffer i used
Qt Code:
  1. char* ptr = new char [1000];
To copy to clipboard, switch view to plain text mode 

then,

i pass it to my class like this
Qt Code:
  1. myClass* c = new myClass(ptr);
To copy to clipboard, switch view to plain text mode 

in the destructor of my myClass I did this
Qt Code:
  1. myClass::~myClass()
  2. {
  3. int x = sizeof(m_ptr); //remember m_ptr was declared as char*
  4. delete[] m_ptr;
  5. }
To copy to clipboard, switch view to plain text mode 

int xis equal to four (4) bytes when i stopped (passed) there.

hmmmm....

baray98