Page 1 of 1

About the problem of Mark Tip Tool...

Posted: Mon Feb 02, 2004 5:56 am
by 6920875
I use teechart5(5,0,5,0/5,0,6,0).

In this case, you will see the error message.
"Error creating window device context."

1) Insert <teechart5> object into HTML.
2) Create any series(Bar/Line), and fill sample values in JavaScript.
3) Add Mark Tip Tool.
4) Execute this HTML page in 2 times without any action, you can see 2 browsers including <teechart5> object.
5) Float Mark Tip Tool with moving to Series Points in the second browser.
6) Close the second browser.
7) Execute 5) in the first browser.
8) You can see the error message.

This is a significant problem.
Do U have any solution ?

Anyone who have seen this error...

Posted: Tue Feb 03, 2004 1:20 pm
by 6920875
Isn't there the solution ?

Please give me answer of this topic...

Posted: Mon Feb 09, 2004 3:13 am
by 6920875
There are no answer yet...

Posted: Mon Feb 09, 2004 10:18 am
by Pep
Hi,

I cannot reproduce the problem here using the TeeChart Pro v5.06. I've attached the example I've used in the steema.public.attachments newsgroup (with the steps I've done). Could you test if it works for you ?

"Error creating window device context." and Mark

Posted: Wed Feb 25, 2004 8:25 pm
by 9080457
I see this behavior in TeeChart AX v6.04 / VC++

Symptoms are:

- open first window that hosts TeeChart AX component ( Thread 1 )
- open second window that hosts TeeChart AX component ( Thread 2 )
- Move mouse over series points let's say in first window, TeeChart pops up Mark Tips.
- Close first window /This would close Thread 1/
- Move mouse pointer over series' points in second window - "Error creating window device content" message gets poped up.

Or, If I don't move mouse pointer over the series' points, but rather close window, then as soon as I call CoUninitialize() I get access violation error.
--------------------------------------------------------------
It seems like this Mark Tool Tip object is a singleton, and is NOT PROPERLY shared between instances of TeeChart that ARE RUNNING IN SEPARATE THREADS.
It seems to me Mark Tool Tip object gets created (allocates resources) in the context of a thread that creates it first. And when that thread is gone the trouble starts....

please, reply to alex@taquote.com if there is an info on this subject