How to share the unique SqlCeConnection object in App

  • Thread starter Thread starter Peter King
  • Start date Start date
P

Peter King

Hello,
Why can't I declare the SqlCeConnection object as the following,
class Form1
{
public SqlCeConnection objConn;
...
public void Connect()
{
//open the objconn...
}
}

Thanks,
Peter
 
one managed argumentException occur
RuntimeConstructorInfo::Invoke+0x6a

ConstructorInfo::Invoke+0xa
ResourceReader::CreateResource+0x18
....
 
Back
Top