Rapid clicks on a combo-box column cause a crash. |
Post Reply |
Author | |
yuhong155
Newbie Joined: 14 August 2019 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 14 August 2019 at 1:10pm |
OnCellSelectionChanged() { ... ... CXTPReportColumns* allColumns = ... ... ... for (int i = 0; i < numberOfColumns; i++) { CXTPReportColumn* pColumn = allColumns->GetAt(i); ... ... // for the combo button column case: CXTPReportRecordItemEditOptions* editOptions = pColumn->GetEditOptions(); editOptions->RemoveButtons(); editOptions->m_bAllowEdit = TRUE; editOptions->m_bConstraintEdit = TRUE; editOptions->AddComboButton(TRUE); editOptions->m_bSelectTextOnEdit = FALSE; ... ... } ... ... } The CodeJock version used in our application is 17.0.0. It is not likely for us to update it to a new version. We did some experiments and found out that if the line calling the AddComboButton(TRUE) is removed, then the crash is gone. We tried to put a static bool that remembers if one event handler is currently running so that when another event comes in, it will just do an early return. However, this doesn't fix it. Could someone please shed some light on this? Thank you. Here is the call stack at crash, |
|
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 |