Jump to content
Software FX Community

ChartFX 6.2 crashing when in TabView (using MSVC 6.0)


User (Legacy)

Recommended Posts

Let me describe the crashing issue:

There seems to be a thread that the chart kicks off when a chart is created.

This thread crashes at random times after the chart is destroyed if the

chart was embedded in a Tab within a TabView. This only happens if that Tab

was never formally activated. If the TabView comes up with the Tab

containing the chart as the active Tab, all is well. Or, as long as that

Tab is clicked on and made active before being destroyed...all is well.

Also, the thread seems to live on even after the Chart is destroyed, but I

guess this might be normal.

Therefore, the workaround is that I must let the Tab View come up with the

chart tab in front, then switch to the front tab of choice (not the chart

tab) just as the TabView is coming up. Note that I cannot just switch

through the active tabs and set each one active during initialization. The

Chart Tab must be active and allowed to completely initialize and display

itself as the front tab before switching away from it.

It seems like there is some sort of initialization issue that occurs when

the Chart is embedded in a Tab. Is this a known problem and is there

another way to get rid of the crash? My workaround causes a bit of a flash

as the TabView is being created and displayed for the first time, as I

switch the active tabs.

Link to comment
Share on other sites

Let me describe the crashing issue:

There seems to be a thread that the chart kicks off when a chart is created.

This thread crashes at random times after the chart is destroyed if the

chart was embedded in a Tab within a TabView. This only happens if that Tab

was never formally activated. If the TabView comes up with the Tab

containing the chart as the active Tab, all is well. Or, as long as that

Tab is clicked on and made active before being destroyed...all is well.

Also, the thread seems to live on even after the Chart is destroyed, but I

guess this might be normal.

Therefore, the workaround is that I must let the Tab View come up with the

chart tab in front, then switch to the front tab of choice (not the chart

tab) just as the TabView is coming up. Note that I cannot just switch

through the active tabs and set each one active during initialization. The

Chart Tab must be active and allowed to completely initialize and display

itself as the front tab before switching away from it.

It seems like there is some sort of initialization issue that occurs when

the Chart is embedded in a Tab. Is this a known problem and is there

another way to get rid of the crash? My workaround causes a bit of a flash

as the TabView is being created and displayed for the first time, as I

switch the active tabs.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...