Print Page | Close Window

[Solved] 13.4: Crash on drag'n'drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16792
Printed Date: 16 November 2024 at 7:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Solved] 13.4: Crash on drag'n'drop
Posted By: znakeeye
Subject: [Solved] 13.4: Crash on drag'n'drop
Date 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 - 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/



Replies:
Posted By: Oleg
Date Posted: 14 June 2010 at 7:39am
Thanks, sending you fixed file in issuetrack to test.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 16 June 2010 at 1:51pm

Problem seems to be gone. Thanks :)



-------------
PokerMemento - http://www.pokermemento.com/



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