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

Re: How to share the unique SqlCeConnection object in App by ctacke/>

ctacke/>
Sat May 20 15:22:50 CDT 2006

You can declare it that way. What problem are you actually having?

-Chris


"Peter King" <wangzilue@tom.com> wrote in message
news:uT483OCfGHA.2076@TK2MSFTNGP04.phx.gbl...
> 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
>



Re: How to share the unique SqlCeConnection object in App by Peter

Peter
Sun May 21 01:35:02 CDT 2006

one managed argumentException occur
RuntimeConstructorInfo::Invoke+0x6a

ConstructorInfo::Invoke+0xa
ResourceReader::CreateResource+0x18
...
"<ctacke/>"
> You can declare it that way. What problem are you actually having?
>
> -Chris



Re: How to share the unique SqlCeConnection object in App by ctacke/>

ctacke/>
Sun May 21 06:46:17 CDT 2006

Post some actual code that reproduces the problem.

-Chris


"Peter King" <wangzilue@tom.com> wrote in message
news:unMO1CKfGHA.1208@TK2MSFTNGP02.phx.gbl...
> one managed argumentException occur
> RuntimeConstructorInfo::Invoke+0x6a
>
> ConstructorInfo::Invoke+0xa
> ResourceReader::CreateResource+0x18
> ...
> "<ctacke/>"
>> You can declare it that way. What problem are you actually having?
>>
>> -Chris
>
>