I
ITALstudio s.r.l.
Hy,
In my application I create instances of windows forms into different
AppDomain.
If I repeat 5 times the following sequence:
- Creating AppDomain;
- Creating instance of windows form into AppDomain;
- Closing the form;
- Unloading AppDomain;
I get this error:
Type: System.ComponentModel.Win32Exception
Messagge: Class already exists
Component: System.Windows.Forms
Class: System.Windows.Forms.NativeWindow+WindowClass
Method: RegisterClass
Has anyone experience with this error or have suggestions on the cause?
Thanks in advance.
Luigi Lucchi
Italstudio s.r.l.
In my application I create instances of windows forms into different
AppDomain.
If I repeat 5 times the following sequence:
- Creating AppDomain;
- Creating instance of windows form into AppDomain;
- Closing the form;
- Unloading AppDomain;
I get this error:
Type: System.ComponentModel.Win32Exception
Messagge: Class already exists
Component: System.Windows.Forms
Class: System.Windows.Forms.NativeWindow+WindowClass
Method: RegisterClass
Has anyone experience with this error or have suggestions on the cause?
Thanks in advance.
Luigi Lucchi
Italstudio s.r.l.