Print Page | Close Window

[SOLVED]Does ReportControl and Chart can coexist?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18944
Printed Date: 02 May 2024 at 10:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]Does ReportControl and Chart can coexist?
Posted By: ocoralan
Subject: [SOLVED]Does ReportControl and Chart can coexist?
Date Posted: 13 September 2011 at 5:21am
Hi, I found that in the stdafx.h file of all examples, the following line is included, I can not confirm that whether the ReportControl can coexist with Chart or not.

#define _XTP_EXCLUDE_REPORTCONTROL

Anybody can tell me? In my project, there are report control and chart, but when open the chart dialog(3D pie), the program crashed and I found it crashed in the line 221 of XTPChartControl.cpp (function OnPaint).

if (!m_pDrawThread)
{
    m_pDrawThread = (CXTPChartDrawThread*)AfxBeginThread(RUNTIME_CLASS(CXTPChartDrawThread),
                            THREAD_PRIORITY_LOWEST, 0, CREATE_SUSPENDED, NULL);
    m_pDrawThread->m_pControl = this;      ---> m_pDrawThread is NULL
    m_pDrawThread->ResumeThread();
}




Replies:
Posted By: ocoralan
Date Posted: 16 September 2011 at 2:28am
It's my program fault, I had adjusted the stack allocations to 16MB, so when I open the 3D chart dialog, the program crashes, I adjust the stack to 6MB, It's OK.



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