[Solved] 13.4: Crash on drag'n'drop |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 05 June 2010 at 10:07pm |
Windows 7 -x64
XTP 13.4 (Fixed in patched version. Thanks!)
Prepare for the funniest bug you will ever see in ToolkitPro! Visual Studio 2010 is able to crash any CXTPReportControl-powered application, if you move your mouse in a certain way. It's hilarious!
Tools needed to reproduce crash bug:
VS = Visual Studio 2010.
R1 = Debugging instance of modified ReportSample.
R2 = Modified ReportSample.
Modify ReportSample in the following way:
ReportSampleView.cpp(315): wndReport.EnableDragDrop(_T("ReportSampleView"), xtpReportAllowDragCopy);
Start debugging R1 (F5), and start R2 (doesn't need to be debugged). Make sure all three applications are visible and accessible on the screen. Now, drag (don't drop) an item from R1 to VS until the cursor turns into a plus-sign. Keep dragging the item to R2 and drop it! Boom!
The ASSERT seems unharmful, but R1 is a ticking bomb. If it doesn't crash immediately, it probably crashes in AfxWinTerm() upon termination. Often it produces an access violation in a second or so:
I think this is the same crash bug I've been hunting in the past (see http://forum.codejock.com/forum_posts.asp?TID=14552 ), so perhaps this one is also present in v13.x. I've seen the exact same behavior when dragging/dropping inside my own application, so don't be fooled that you need VS 2010 floating in the background to get it to happen. It's just my bullet-proof way of reproducing it :)
My guess is that you're missing an AddRef() somewhere...
Hope you can fix this very soon!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thanks, sending you fixed file in issuetrack to test.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Problem seems to be gone. Thanks :) |
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |