Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Crash on clicking field with combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash on clicking field with combobox

 Post Reply Post Reply
Author
Message
ericchubb View Drop Down
Groupie
Groupie


Joined: 31 May 2010
Location: Ireland
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericchubb Quote  Post ReplyReply Direct Link To This Post Topic: Crash on clicking field with combobox
    Posted: 25 March 2020 at 4:07pm
Hi,

I have a simple report control and i want a couple of the columns to use combo boxes.

I've initialised the column with the combobox as so:

pColumn->GetEditOptions()->AddConstraint(_T("SHOW"), 0);
 pColumn->GetEditOptions()->AddConstraint(_T("HIDE"), 0);
pColumn->GetEditOptions()->m_bConstraintEdit = TRUE;
pColumn->GetEditOptions()->m_bAllowEdit = TRUE;
CXTPReportInplaceButton * pButton = pColumn->GetEditOptions()->AddComboButton();
pColumn->SetEditable(TRUE);
pColumn->SetAutoSize(TRUE);

When actually adding records, i do it like so:

CXTPReportRecordItem* pItem = AddItem(new CKeywordsSettingsListRecordItem(_T("")));
pItem->HasCheckbox(TRUE);
pItem->SetChecked(bEnabled);
AddItem(new CXTPReportRecordItemText); //this is the column with the combobox
AddItem(new CKeywordsSettingsListRecordItem(szExpression,false));
AddItem(new CKeywordsSettingsListRecordItem(szAttributeName,false));
AddItem(new CKeywordsSettingsListRecordItem(szAttributeValue,false));
AddItem(new CKeywordsSettingsListRecordItem(szID,false));
AddItem(new CKeywordsSettingsListRecordItem(szComment,false));
pItem = AddItem(new CKeywordsSettingsListRecordItem(szExt,true));
 
However, when i go to click on the field with the combo box, it crashes


The crash seems to take place in CXTPReportPaintManager::DrawInplaceButton and there is a NULL pointer called m_pCombo

I've no idea what the problem could be. Any help would be much appreciated!

Thanks

Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 260
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2020 at 8:06am
Hello,

Unfortunately it is not clear what exactly is going wrong. Can you please provide more detailed information.
If it cannot be re-produced in any of our sample applications provided
I would appreciate you sending a sample application so that we could debug it.

Regards,
Artem Gontarenko
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 260
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2020 at 3:26am
Hello,

I am going to close this issue for now since I have not heard back from you. Please let me know if we need to re-open this issue at a later date.
(0001213)

Regards,
Artem Gontarenko 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.