Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [Solved] 13.4: Crash on drag'n'drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: [Solved] 13.4: Crash on drag'n'drop
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2010 at 7:39am
Thanks, sending you fixed file in issuetrack to test.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 1:51pm

Problem seems to be gone. Thanks :)

PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.