G
Guest
I am running a c# application on WM5 using .NET 2.0 CF with the latest SP.
The code was written in VS 2005. I have tried this on multiple devices and
get the same results.
Upon hitting the following line of codes the application unexpectedly
terminates. The below code snippet is part of a class that is used in
multiple applications without a problem. In fact, the same application runs
perfectly on PPC 2003 device.
SqlCeCommand cmd = Conn.CreateCommand();
cmd.CommandText = SQL;
RowsAffected = cmd.ExecuteNonQuery(); <<< Application Exits HERE
I have tried debugging, but I get "The remote connection to the device has
been lost. Please verify the device connection and restart debugging." when
the application exits. The SQL command I use does not matter and the error
does not happen right away. For example, if I call the same SQL command in a
previous method in may run fine, then it will crash later.
My question is, what is the best way to isolate this error. I have tried
using try/catch/finally blocks, try/finally blocks, no exception handling. I
just can't seem to get enough info on the error to isolate it.
Thanks for any input
The code was written in VS 2005. I have tried this on multiple devices and
get the same results.
Upon hitting the following line of codes the application unexpectedly
terminates. The below code snippet is part of a class that is used in
multiple applications without a problem. In fact, the same application runs
perfectly on PPC 2003 device.
SqlCeCommand cmd = Conn.CreateCommand();
cmd.CommandText = SQL;
RowsAffected = cmd.ExecuteNonQuery(); <<< Application Exits HERE
I have tried debugging, but I get "The remote connection to the device has
been lost. Please verify the device connection and restart debugging." when
the application exits. The SQL command I use does not matter and the error
does not happen right away. For example, if I call the same SQL command in a
previous method in may run fine, then it will crash later.
My question is, what is the best way to isolate this error. I have tried
using try/catch/finally blocks, try/finally blocks, no exception handling. I
just can't seem to get enough info on the error to isolate it.
Thanks for any input