Page 1 of 1

Access violation using 7.0.1.2

Posted: Wed Nov 01, 2006 10:22 am
by 9524745
Hi there,

I just updated from ActiveX TChart 7.0.0.3 to 7.0.1.2 and I’m unable to perform the following statement:

Code: Select all

m_pChart->Series(lSerie)->asArea->UseYOrigin = true;
IAreaSeries::PutUseYOrigin is causing an access violation.

I did some research and tried using

Code: Select all

aSeries[lSerie]
but still the same access violation. I’m using Visual Studio .NET 2003.

Here’s some code:

Code: Select all

m_pChart->AddSeries(scArea);
m_pChart->Series[lSerie]->asArea->Stairs = true;
m_pChart->Series(lSerie)->asArea->UseYOrigin = true;
m_pChart->Series(lSerie)->XValues->DateTime = true;
m_pChart->Series(lSerie)->VerticalAxisCustom = m_Axis2;

unable to change IAreaSeries-properties

Posted: Wed Nov 01, 2006 1:39 pm
by 9524745
The problem seems to be that I'm unable to change properties of IAreaSeries like UseYOrigin and AreaPen.

asArea->Stairs = true works perfectly because Stairs is derived from ICustomSeries.

Why am I unable to change IAreaSeries properties? I couldn't find my answer in the releasenotes.

Posted: Thu Nov 02, 2006 10:57 am
by narcis
Hi Bob,

Have you tried using:

Code: Select all

	m_pChart->Series(lSerie)->GetasArea()->SetUseYOrigin(true);

Posted: Thu Nov 02, 2006 1:16 pm
by 9524745
Hi Narcis,

I haven’t tried that one before.

This morning I uninstalled 7.0.1.2 and installed 7.0.0.8 and came to the conclusion that my application works fine with that one. Than I read your reply so I uninstalled 7.0.0.8 and reinstalled 7.0.1.2 and suddenly everything works fine :shock:!

I ask myself what’s the chance of the happening in the future because I still don’t know exactly what went wrong.

For the next couple of days I’ll be busy testing my application using 7.0.0.8. After that maybe I’ll post some questions or comments.

For now on, tanx!