Page 1 of 1

v8->v10 migration : InitializeComponent crash with .Net

Posted: Wed Dec 29, 2010 9:25 am
by 16657923
Hi,

We try to migrate our .Net solution (Teechart v8) with the new Teechart v2010 component.
We have used Project upgrade utility to upgrade our project. Migration was done successfully but now, the project does'nt work (no compilation error, references ok (Teechart 2010)) but it crash in InitializeComponent method.
LoaderLock.png
LoaderLock.png (16.51 KiB) Viewed 10204 times
v8_v10_migration_bug.png
v8_v10_migration_bug.png (13.11 KiB) Viewed 10153 times
We can't send you source code because project is huge and uses WebService references.

Why does our project works fine with v8 and not with v2010 ? How can we solve it ?

Regards,

Guilz

Re: v8->v10 migration : InitializeComponent crash with .Net

Posted: Wed Dec 29, 2010 4:02 pm
by yeray
Hi Guilz,

There was a customer who had the same problem some time ago.
Googling a little bit we found that the Loaderlock exceptions can be deactivated as explained here: Go to Debug\Exceptions and deactive the "Thrown" checkbox at "Managed Debugging Assistants\LoaderLock"
At the same time, the customer told us that the problem was solved by changing the platform target in Build of Project properties from Any CPU to x86.

If you still have problems with it, please don't hesitate to let us know.

Re: v8->v10 migration : InitializeComponent crash with .Net

Posted: Wed Dec 29, 2010 4:47 pm
by 16657923
Thank you Yeray - Unchecking "Managed Debugging Assistants\LoaderLock" solve this issue. It is not necessary to change the platform target for me.

Happy new year to you :wink:

Guilz

Re: v8->v10 migration : InitializeComponent crash with .Net

Posted: Thu Dec 30, 2010 8:34 am
by yeray
Hi Guilz,

Happy new year to you too! :D

Re: v8->v10 migration : InitializeComponent crash with .Net

Posted: Tue Jun 05, 2012 4:28 pm
by 15049514
I also experienced the same issue when the form closed (form object was deleted).
in order to overcome it i used the following code

Code: Select all

private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
     axTChart1.Dispose();
     axTChart1 = null;
}
where axTChart1 is the chart object.
I don't think that turning this alert off is a good way to go...

I'm using VS2010 with teechart2010.dll

Harel M.

Re: v8->v10 migration : InitializeComponent crash with .Net

Posted: Wed Jun 06, 2012 8:31 am
by yeray
Hi Harel,

Thank you for sharing.