Damage : on client block during Remove.. |
Post Reply |
Author | |
roberto
Newbie Joined: 21 July 2005 Location: Italy Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 21 July 2005 at 9:17am |
Hi all, i've experienced some problems with PropertyGrid, more precisely i get an exception from the debugger when trying to call Remove from a PropertygridItem object... i looked at the samples and the same code has no problem there... is there any precaution i should take before removing items in a propertygrid ? thanks
Edited by roberto |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, roberto Hmm... may be you can sent backtrace log to see? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
roberto
Newbie Joined: 21 July 2005 Location: Italy Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi, Using DCRT libraries and performing some memory checks ( // Turn on the full heap checking , i realized that the problem comes when allocating a propertygriditem :
// ********************* Main Frame CXTPPropertyGridItem* child = new CXTPPropertyGridItem(_T("key"),_T("val")); <-- _CrtCheckMemory ( ) complains here !!
Any idea about what causes this problem? thanx in advance |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
All seems ok... one thing can be problem. try to replace m_PropertyGrid.Create( CRect(0,0,0,0), AfxGetMainWnd(), 0); to m_PropertyGrid.Create( CRect(0,0,0,0), this, 0);
because AfxGetMainWnd() will return NULL in CMainFrame::OnCreate..
May be you can isolate the problem with new sample and attach it here? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
roberto
Newbie Joined: 21 July 2005 Location: Italy Status: Offline Points: 3 |
Post Options
Thanks(0)
|
i realized what the problem was ... on project properties there was a non standard option checked: in c++ / code generation / struct member alignment - there was 1 byte (zp1) instead of Default.. i lost three days around that trivial thing, damn... thank you guys anyway for your suggestions... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |