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
....
 

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

Back
Top