I'm not sure what's happening here:
Fereastra is an instance of fereastra allocated with new.
I don't remember deleting Fereastra. To be a bit more certain I used IsBadReadPtr to see if Fereastra is cleared, but it seams ok.
I want to allocate FereastraIcoana with new.
I end up with FereastraIcoana having the same address as Fereastra.
no warnings, all values for Fereastra are valid and ok while debugging.
//test to see if Fereastra is ok
int i=0; //breakpoint here, not entering
//allocate FereastraIcoana with new
FereastraIcoana=new fereastra(Fereastra->width()-2*bordura_icoana, Fereastra->height()-2*bordura_icoana);
//setting some values
//here is the strange part, test to see if Fereastra (which was allocated sometime earlier) is at the same location as the newly allocated pointer
int i=0; //breakpoint here, enters here
Do you have any ideas? It's the end of the day and I can't get any further with this error
I'm using Microsoft Visual c++ 2008