About the problem of Mark Tip Tool...

TeeChart for ActiveX, COM and ASP
Post Reply
shift
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Contact:

About the problem of Mark Tip Tool...

Post by shift » Mon Feb 02, 2004 5:56 am

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 ?

shift
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Anyone who have seen this error...

Post by shift » Tue Feb 03, 2004 1:20 pm

Isn't there the solution ?

shift
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Please give me answer of this topic...

Post by shift » Mon Feb 09, 2004 3:13 am

There are no answer yet...

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 09, 2004 10:18 am

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 ?

Alex K.
Newbie
Newbie
Posts: 1
Joined: Mon Jan 12, 2004 5:00 am
Location: Alexandria, VA, US
Contact:

"Error creating window device context." and Mark

Post by Alex K. » Wed Feb 25, 2004 8:25 pm

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

Post Reply