User (Legacy) Posted September 30, 2003 Report Share Posted September 30, 2003 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 More sharing options...
User (Legacy) Posted October 2, 2003 Author Report Share Posted October 2, 2003 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 More sharing options...
Software FX Posted October 3, 2003 Report Share Posted October 3, 2003 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 More sharing options...
User (Legacy) Posted October 3, 2003 Author Report Share Posted October 3, 2003 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 More sharing options...
Software FX Posted October 6, 2003 Report Share Posted October 6, 2003 Yes. If a mouse message, a paint message or any other windows message comes while you are setting any property or method (like ValueEx, OpenDataEx, etc.) this will be a problem. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.