v8->v10 migration : InitializeComponent crash with .Net

TeeChart for ActiveX, COM and ASP
Post Reply
guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

v8->v10 migration : InitializeComponent crash with .Net

Post by guilz2010 » Wed Dec 29, 2010 9:25 am

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 10193 times
v8_v10_migration_bug.png
v8_v10_migration_bug.png (13.11 KiB) Viewed 10142 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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Wed Dec 29, 2010 4:02 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

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

Post by guilz2010 » Wed Dec 29, 2010 4:47 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Thu Dec 30, 2010 8:34 am

Hi Guilz,

Happy new year to you too! :D
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

wory69
Newbie
Newbie
Posts: 2
Joined: Fri Jun 27, 2008 12:00 am

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

Post by wory69 » Tue Jun 05, 2012 4:28 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Wed Jun 06, 2012 8:31 am

Hi Harel,

Thank you for sharing.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply