OpenNETCF Desktop Communication Error

Feb 22, 2012 at 3:55 PM
Edited Feb 22, 2012 at 3:56 PM

I  tried reusing old code that worked in the past. I connect to the device and I transfer to the PC. Works well on first pass. However if the user wants to re-transfer the file he is getting an error if the file resides on the PC from a previous transfer.

Here is the code that I use to copy the file:

MyRapi.CopyFileFromDevice(strPCCopyDestination, strDevCopySource, True)

This works on first transfer. Doesn't after that.

The error reported is:

OverFlow Exception was unhandled.

Arithmetic operation resulted in an overflow.

Thinking that my OpenNetCF was out of date I checked and it was, so I downloaded the Jan 2012 version and built my own OpenNETCF Desktop Communication DLL. The end result is I am still getting the same overflow error.

I thought that the boolean part of the copy, when set True, would overwrite any copy on the destination folder.

What is going on? Do I have to write a separate utility outside of OpenNETCF to handle duplicate files now?

Thanks

MadApe

Feb 22, 2012 at 5:48 PM

Ignore this please. I shut down Visual Studio and restarted and now it works. A gremlin in the system has been exorcised.