Jump to content
Software FX Community

Chart Disappearing on WinXP


User (Legacy)
 Share

Recommended Posts

Hi,

We're using ChartFX 98 in our app. When we deploy on XP, there's an

intermittent (random) problem with the Chart disappearing after a period of

time. We really haven't been able to narrow the conditions too much;

although the facts are:

1. We're using C++

2. We're using the ActiveX version of ChartFX.

3. The destructor for the CView containing ChartFX's CWnd has not been

called.

So, the chart just goes invisible, and never comes back. We've only seen

this on an old laptop running XP, not newer PC's thus far. Has anyone seen

anything similar? What caused it? When would a chart just disappear?

Thanks,

Tom

post-2113-1392239800334_thumb.jpg

Link to comment
Share on other sites

Ok, the other issue is we're using threads, and in fact touching the chart

interface from different different threads. Although the technical note

about this says it's only an issue if the PeekMessage loop is in a different

thread than the chart object.

We're not calling PeekMessage explicitly. So, under what conditions might

it be called behind our back? Would anything in the COM+ plumbing do this?

Thanks...

Tom

"Tom H" <tomhiggins77@cs.com> wrote in message

news:cgpaGk4hDHA.3296@WEBSERVER1...

> Hi,

>

> We're using ChartFX 98 in our app. When we deploy on XP, there's an

> intermittent (random) problem with the Chart disappearing after a period

of

> time. We really haven't been able to narrow the conditions too much;

> although the facts are:

>

> 1. We're using C++

> 2. We're using the ActiveX version of ChartFX.

> 3. The destructor for the CView containing ChartFX's CWnd has not been

> called.

>

> So, the chart just goes invisible, and never comes back. We've only seen

> this on an old laptop running XP, not newer PC's thus far. Has anyone

seen

> anything similar? What caused it? When would a chart just disappear?

>

> Thanks,

> Tom

>

>

Link to comment
Share on other sites

Chart FX is indeed an Apartment model component, this means that ONLY the

thread that creates the chart can use it. In other words, all calls to an

specific instance of a chart should go through the SAME thread. This

includes Windows Messages such as Mouse, etc.

Is this is not the case, the behavior would be unpredictable.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Thanks for the info.

We're really only calling

OpenDataEx(COD_VALUES)

ValueEx[][] =

and

CloseDataEx(COD_VALUES)

in the second thread, as well as accessing certain chart properties

read-only. Is this still going to cause trouble?

Tom

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:2Oh2$vciDHA.3556@WEBSERVER1...

> Chart FX is indeed an Apartment model component, this means that ONLY the

> thread that creates the chart can use it. In other words, all calls to an

> specific instance of a chart should go through the SAME thread. This

> includes Windows Messages such as Mouse, etc.

>

> Is this is not the case, the behavior would be unpredictable.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...