Error terminating application.

TeeChart for ActiveX, COM and ASP
Post Reply
ssjun
Newbie
Newbie
Posts: 4
Joined: Wed Feb 28, 2018 12:00 am

Error terminating application.

Post by ssjun » Wed Mar 21, 2018 5:18 am

Hello,

We have a VC++ MFC application and we are using TeeChart ActiveX control 2018(20180209 Release).
The following error occurs during the upgrade from "Teechart8" to "Teechart2018".
This error does not occur in "teechart8".

OS : Windows 7 or Greater
Development Environment : VS 2013 Update 4

<Crash Scenario>
========================================================================================================
In the OnCreate() function

m_TeeChart.Create(NULL, "", WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, CRect(0,0,0,0), this, IDC_TCHART, NULL));
m_TeeChart.SetVisible(true);


After that, I start the application with m_TeeChart.SetVisible (FASLE) as hidden, and when it closed, the following Crashes occurs.
If even a single window containing chart is open, crash is not observed.
========================================================================================================

<Event Log>
========================================================================================
Faulting application name: InfomaxMain.exe, version: 1.0.0.1, time stamp: 0x5a935c57
Faulting module name: teechart2018.ocx, version: 2018.0.2.9, time stamp: 0x5a7dcfb0
Exception code: 0xc0000005
Fault offset: 0x0000621b
Faulting process id: 0x478
Faulting application start time: 0x01d3c0bd2c8f36f4
Faulting application path: C:\Infomax\bin\InfomaxMain.exe
Faulting module path: c:\infomax\bin\teechart2018.ocx
Report Id: 9255a78c-9376-40dd-ac8e-b48cbe55bc96
Faulting package full name:
Faulting package-relative application ID:
========================================================================================

<Reference>
This board is similar to the "Crash On Unload" issue.
http://www.teechart.net/support/viewtop ... =1&t=16402

Yeray
Site Admin
Site Admin
Posts: 8497
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error terminating application.

Post by Yeray » Fri Mar 23, 2018 11:28 am

Hello,

Can you please arrange a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

ssjun
Newbie
Newbie
Posts: 4
Joined: Wed Feb 28, 2018 12:00 am

Re: Error terminating application.

Post by ssjun » Mon Mar 26, 2018 5:29 am

Hi Yeray,
Thanks for reply!

We can remotely connect the PC that crashed at the end.
Developing a sample project takes a lot of time.
We request remote support and remote support via Teamview.

please let us know suitable date/time for remote session.
Thanks for the understanding!

Yeray
Site Admin
Site Admin
Posts: 8497
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error terminating application.

Post by Yeray » Mon Mar 26, 2018 9:30 am

Hello,

Have you tried to do this to see if it works also for you?
If a condition for the error to appear is to have no charts loaded (after showing a chart), a workaround could consist on having a dummy chart always loaded, hidden behind a panel for example.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

ssjun
Newbie
Newbie
Posts: 4
Joined: Wed Feb 28, 2018 12:00 am

Re: Error terminating application.

Post by ssjun » Tue Mar 27, 2018 5:53 am

Hi Yeray,
Thanks for reply!

I do not understand what you proposed.
If you have sample code to help you understand, please attach it.

And please answer whether remote support is not possible.

Yeray
Site Admin
Site Admin
Posts: 8497
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error terminating application.

Post by Yeray » Wed Mar 28, 2018 11:29 am

Hello,
ssjun wrote:I do not understand what you proposed.
If you have sample code to help you understand, please attach it.
I'm not a VC++ expert but I'm trying to prepare a simple example project with a dummy chart hidden by a panel.
ssjun wrote:And please answer whether remote support is not possible.
We'll do it if necessary (note this is an option for Pro Support customers).
However, connecting to a machine and seeing an application to crash won't help us to debug the problem.
A simple example project would do it, which sends me to a couple of posts above:
ssjun wrote:Developing a sample project takes a lot of time.
Why? It doesn't mean to simplify a big project, but starting a new one with the minimum code to reproduce a problem.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 8497
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error terminating application.

Post by Yeray » Wed Mar 28, 2018 12:04 pm

Hello,
Yeray wrote:I'm not a VC++ expert but I'm trying to prepare a simple example project with a dummy chart hidden by a panel.
Here it is the project, made with VC++ 6:
MFCActiveXTest.zip
(1.01 MiB) Downloaded 54 times
Note this is just to understand the concept of having a permanent hidden chart in the main dialog and another chart in another dialog opened & closed on demand.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply