Print Page | Close Window

Exception with simple ReportControl in Dialog

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=23510
Printed Date: 23 December 2024 at 7:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Exception with simple ReportControl in Dialog
Posted By: TomPP
Subject: Exception with simple ReportControl in Dialog
Date Posted: 29 November 2017 at 9:31am
The following raises an exception in CXTPReportHeader::AccessibleLocation()

Toolkit pro 18.2.0/18.0.1
Visual Studio 15.4.5
Windows 10 pro 1709, Build 16299.64

Steps to reproduce:
Create default MFC SDI App
Add new dialog ressource
Add ReportControl to Dialog (via CustomControl, class XTPReport)
Add code to create the dialog class
Add CXTPReportControl member to dialog class
Init the CXTPReportControl via DDX_Control or subclass
Add menuitem/code to display the dialog

Build and run app in debug mode.
Display the dialog, click somewhere in the report control, close the dialog.
You may have to repeat the dialog open/close cycle a couple of times until
an Exception raises.

Tom



Replies:
Posted By: TomPP
Date Posted: 01 December 2017 at 12:24pm
Hi,

anyone at CJ or in the community can confirm this? A reply would be nice.

Tom


Posted By: BobC
Date Posted: 12 December 2017 at 1:20pm
TomPP:  I followed your steps and have not been able to get the program to crash.
What does the stack trace tell you about the crash? What is the code looking for that isn't there to cause the crash?

I'm running VS2017 15.5.1 on Windows 10 version 1703, build 15036.736 (I'm not updating to Fall Creator's Update until Microsoft fixes the CreateWindowEx bug they introduced -- https://support.microsoft.com/en-us/help/4054150/issues-when-windows-10-fall-creators-update-calls-createwindowex-for-s).



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