Print Page | Close Window

Crash on clicking field with combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23966
Printed Date: 29 April 2024 at 12:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash on clicking field with combobox
Posted By: ericchubb
Subject: Crash on clicking field with combobox
Date 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




Replies:
Posted By: agontarenko
Date 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


Posted By: agontarenko
Date 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 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net