Error 'Class already exists' when creating windows forms.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top