[solved] ResetContent and heap corruption |
Post Reply |
Author | ||
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(0)
Posted: 13 February 2018 at 9:08pm |
|
RE: Xtreme Toolkit Pro version 18.2.0 running on Windows 10 Pro, Visual Studio 2017, version 15.5.6 I have found that after 3-4 account value updates, one of the other report controls crashes with a heap corruption error when calling ResetContent(). I have not been able yet to track down what's going wrong, so I thought I would put this out there and ask for help. It is not likely a threading issue because all of the action occurs in the UI thread. Here is what the call stack looks like from the ResetContent call: |
||
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(1)
|
|
I had set this problem aside for awhile, but came back to it today, and figured out what was wrong.
I subclass CXTPReportRecord in places, and in two calls to CXTPReportControl::AddRecord(), I was using new() with the base class instead of my derived class. That is, I was doing this:
but should have been doing this:
I was doing it correctly in most other places, but I guess my brain stalled when writing the broken code. |
||
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 |