TeeChart for ActiveX, COM and ASP
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Mon Apr 13, 2015 11:42 am
I am using TeeChart Pro v2013.0.1.4.131120 32bit ActiveX in an MFC application. There are 15 chart windows dynamically created on a dialog running on a UI thread and all of the charts windows get constantly updated by messages from the main thread. I am encountering the following issues:
1. An abnormal message box with "2." written inside constantly pops up once after the chart windows are created and updated.
2. Although at regular interval I am freeing the data for each chart with the following code I find that memory is continuously getting accumulated.
Code: Select all
long sz = pchart_->GetSeriesCount();
for (int i = 0; i <= sz; ++i) {
pchart_->Series(i).Clear();
}
pchart_->RemoveAllSeries();
Can anyone please help/ highlight me regarding what is going wrong here?
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Mon Apr 13, 2015 2:16 pm
Hello,
Could you please arrange a simple example project we can run as-is to reproduce the problems here?
Thanks in advance.
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Tue Apr 14, 2015 4:20 am
Hi,
Before reviewing the code I suggest just build and run the code just once and you get to see the abnormal message box. There is no such message box in the code and I am sure its coming from inside the activex. I suspect that the message box is due to some kind of exception because everytime the message come I find something like this in the output window:
"First-chance exception at 0x7503D3CF (KernelBase.dll) in SampleChart.exe: 0x0EEDFADE (parameters: 0x044686AD, 0x0C9895D0, 0x00000002, 0x00000000, 0x04327D24, 0x06CAD4EC, 0x06CAD4D4)."
Regarding a simpler application I fear that I won't be able to reproduce the issue in that. The one that I have sent resemble our requirements in exact. If this doesn't work at all then let me know. I will try to develop a smaller application for you to review.
Regards
Asit Kumar De
P.S. We developed the application in Visual Studio 2013
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Tue Apr 14, 2015 7:39 am
Hello Asit Kumar De,
I think you missed to attach the application.
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Tue Apr 14, 2015 8:57 am
Hi,
I am sending the attachment in two parts since the total size is freater than 520KB. In the first part there is a compressed file named SampleChart.rar. Decompress it and you will the find the code inside a folder called SampleChart. Within the folder "Samplechart" decompress "helpers.rar" that I am going to send with the second attachment. At this point you should be able to build the project in Visual Studio 2013.
Regards,
Asit Kumar De
-
Attachments
-
- SampleChart.rar
- (125.93 KiB) Downloaded 1562 times
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Tue Apr 14, 2015 8:59 am
Hi,
Sending the helpers.rar. Decompress this rar file inside the folder SampleChart.
Regards,
Asit Kumar De
-
Attachments
-
- helpers.rar
- (505.97 KiB) Downloaded 1628 times
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Tue Apr 14, 2015 1:16 pm
Hello Asit Kumar De,
I built the project in debug mode without errors, I could run it but I can only see an empty form and the application hangs. I see no strange message box though.
Looking at the project, I see files with thousands of lines of code so it would be difficult for us to debug it.
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Thu Apr 16, 2015 5:14 am
Hi,
Please make sure that you are using TeeChart Pro v2013.0.1.4.131120 32bit ActiveX control on Visual Studio 2013. For your reference I am attaching a screen dump of the output.
Please following the following sequence:
SampleChartDlg.cpp Line 105 : theApp.CreateGraphThreads(): This is the entry point for the graph creation.
We are trying to make a simpler project for you to look at but we are not sure if we can reproduce the error in that.
Regards,
Asit Kumar De
-
Attachments
-
- ScreenShot.jpg (265.95 KiB) Viewed 32308 times
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Apr 16, 2015 8:56 am
Hello Asit Kumar De,
star_it wrote:Please make sure that you are using TeeChart Pro v2013.0.1.4.131120 32bit ActiveX control on Visual Studio 2013
I could reproduce the problem now but TeeChart functions calls are in ChartWrapper.cpp and its almost 3 thousand lines of code.
Please note we need a simple example we can easily understand to find what settings are creating an unexpected result asap. And this is even more important in TeeChart ActiveX because it's a wrapper from the VCL version so in most cases it means we have to translate the simple project to Delphi to start debugging TeeChart source code.
http://www.teechart.net/support/viewtop ... =3&t=14735
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Thu Apr 16, 2015 9:07 am
I understand your problem. We are trying to prepare a smaller example to demonstrate the issue. As soon as we finish I will send that to you. Meanwhile please continue your investigation regarding the message box issue. You may find the cause even without the help of the smaller version of the sample code.
Regards,
Asit Kumar De
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Mon Apr 20, 2015 8:36 am
Hi,
Please find the smaller version of the application with the attachments. As earlier please find the 'helpers.rar' with my subsequent reply and decompress the content inside 'SampleChart_0418'.
Regards,
Asit Kumar De
-
Attachments
-
- SampleChart_0418.zip
- (117.99 KiB) Downloaded 1417 times
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Mon Apr 20, 2015 8:40 am
Hi,
Sending the helpers.rar. Decompress this rar file inside the folder SampleChart_0418.
Regards,
Asit Kumar De
-
Attachments
-
- helpers.rar
- (505.97 KiB) Downloaded 1548 times
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Mon Apr 20, 2015 9:21 am
Hello Asit,
I've ran this version of the application, that seems to create 10 windows with 2 charts each, and after a while I got the "2" message box.
However, this is still too big to be easily debugged for us here.
Another alternative you can try is to upgrade your application to use the actual version of TeeChart to see if it changes anything.
If it still reproduces the problem, then I'd insist with the simple example project we can run as-is to reproduce the problem here. This is not your final-big application with some code commented; this is a new application with just a chart on a form and the minimum code to reproduce the problem.
-
star_it
- Newbie
- Posts: 20
- Joined: Fri Apr 10, 2015 12:00 am
Post
by star_it » Tue Apr 21, 2015 4:14 am
Hi,
Please explain what do you mean by "use the actual version of TeeChart". Do you mean the latest version of TeeChart? If so what is that version?
Regards,
Asit Kumar De
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Tue Apr 21, 2015 7:19 am
Hello Asit,
star_it wrote:
Please explain what do you mean by "use the actual version of TeeChart". Do you mean the latest version of TeeChart? If so what is that version?
Yes, the latest. As you mentioned, you are using v2013.0.1.4.131120. The latest version is v2015.0.0.0.