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/
|