C#, getting CallbackOnCollectedDelegate error

Discussions about image processing and document imaging.
Post Reply
krebsgshannon
Posts: 11
Joined: Thu May 31, 2007 9:36 pm

C#, getting CallbackOnCollectedDelegate error

Post by krebsgshannon » Thu May 31, 2007 9:42 pm

Hello,

Here is the problem I am getting:

Using C# 2005
.Net Framework 2.0

I have an MDI parent form that open a child form that has the axgdViewer object set to fill said form. Whenever I call the dispose() method whether automatically when the form closes or whenever I call axgdViewer1.Dispose(); I get:
A callback was made on a garbage collected delegate of type 'System.Windows.Forms!System.Windows.Forms.NativeMethods+WndProc::Invoke'. This may cause application crashes, corruption and data loss.
How do I clear the state of the object so I can cleanly perform disposal of the form and the control?

Thanks!

If you need a copy of the source that is doing this I can provide that. There's nothing currently on it that is priviledged or internal information or anything that can be construed as intellectual property proprietary to my company.

krebsgshannon
Posts: 11
Joined: Thu May 31, 2007 9:36 pm

Post by krebsgshannon » Thu May 31, 2007 10:12 pm

D'oh!

I installed the new version, dated today, and all is well :) :shock: :D

Thanks for fixing the problem!

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Thu May 31, 2007 10:14 pm

:D

Yes it was a known problem.

It is solved since the 3.5 edition.

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests