Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Exception with simple ReportControl in Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception with simple ReportControl in Dialog

 Post Reply Post Reply
Author
Message
TomPP View Drop Down
Groupie
Groupie


Joined: 17 November 2014
Location: Germany
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomPP Quote  Post ReplyReply Direct Link To This Post Topic: Exception with simple ReportControl in Dialog
    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
Back to Top
TomPP View Drop Down
Groupie
Groupie


Joined: 17 November 2014
Location: Germany
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomPP Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2017 at 12:24pm
Hi,

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

Tom
Back to Top
BobC View Drop Down
Groupie
Groupie


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobC Quote  Post ReplyReply Direct Link To This Post 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).
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.