Page 1 of 1

Invalid access to memory location

Posted: Thu Mar 27, 2008 10:02 am
by 13047252
Hi

When i add a series to a chart i get the following exception:

Invalid access to memory location: (Exception from HRESULT: 0x800703E6)

Please help.

Posted: Thu Mar 27, 2008 10:17 am
by narcis
Hi mgc,

Which exact TeeChart version are you using and in which development environment? Does this occur at designtime or at runtime?

Thanks in advance.

Posted: Thu Mar 27, 2008 10:34 am
by 13047252
Hi

Thanks for the reply.

My current TeeChart version is 3.2.2831.26851 and the problem occurs runtime.

The machine i have developed the application on has no problem running the application, but when i run the application on my target pc it fails.

Best Regard
mgc

Posted: Thu Mar 27, 2008 10:43 am
by narcis
Hi mgc,

Thanks for the information.

First of all, please notice there's a newer version of TeeChart available as announced here.

Could you please then read this thread to check if the TeeChart design-time license is properly compiled in your application?

If the problem persists could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Thu Mar 27, 2008 11:15 am
by 13047252
Hi

I haven't tried the new TeeChart version, but thanks for the heads up.

I have tried to run the application on my development machine, with an altered text i the DesignKeyV3 entry in the registration database and it still runs.

I uploaded two files via the upload page link, a zip file with the entire visual studio solution and a picture with of the error message.

Hope this can locate the error.

Best Regards
mgc

Posted: Thu Mar 27, 2008 11:32 am
by narcis
Hi mgc,
I have tried to run the application on my development machine, with an altered text i the DesignKeyV3 entry in the registration database and it still runs.
In that case this indicates the designtime license is not properly installed on your machine. On the development machine you could try running TeeRegister tool, available at the client area, and make the licensing tests again.
I uploaded two files via the upload page link, a zip file with the entire visual studio solution and a picture with of the error message.
Thanks for the example project. I don't see any problem with it and should work fine. Alternatively you could try creating series like this:

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                FastLine line = new FastLine(tChart1.Chart);
								//tChart1.Series.Add(line);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }