![]() |
Crash in Report Control in 10.4 |
Post Reply
|
| Author | |||
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Topic: Crash in Report Control in 10.4Posted: 08 January 2007 at 7:29am |
||
|
This worked fine in 10.31, now it crashes in 10.4
Click on a bit of column text in the ReportSample .. all works.
Now, click on the preview text in the report and it crashes.
It is because of (new) changes to OnClick:
Because on a preview item, HitTest produces a NULL for the pColumn:
Therefore:
Causes an access violation.
|
|||
![]() |
|||
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2007 at 7:30am |
||
|
I cant think of a way to work around this ... any ideas??
|
|||
![]() |
|||
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2007 at 8:45am |
||
|
In the end I have overridden OnClick and OnDblClick in my overriden CXTPReportRecordItemPreview class and commented out the line:
pClickArgs->pColumn->InternalAddRef();
So now it works okay without a crash, but I think it would be good to get this fixed in the next release please.
Thanks.
|
|||
![]() |
|||
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2007 at 4:04pm |
||
|
Hi,
This is a known bug. Will be fixed for the nearest release. -- WBR, Serge |
|||
![]() |
|||
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2007 at 6:33am |
||
|
Sorry i hadnt spotted the report, thanks.
|
|||
![]() |
|||
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 |