C sharp - error:Current thread must be set to single thread

 
Vista:

error:Current thread must be set to single thread

Publicado por Maria (5 intervenciones) el 26/10/2006 11:34:51
Hola,

Alguien podria decirme por que y como puede solucionarse el siguiente error:

Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.

El error se produce cuando ando en uno de los datagrids de otro de los formularios. El programa esta echo en el visual studio 2005 en C# por si os sirve la informacion.

No se como quitarlo. Alguna idea? Muchisimas gracias por adelantado.
Maria
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder