StreamWriter error unknown, Urgent help please.

T

Tyno Gendo

Hi

Does anyone know of any reasons, other than FileExists or Out of disk
space, that could cause the compact framework StreamWriter constructor
to raise an IOException?

We have an error occuring whilst creating a StreamWriter in version 2 of
the compact framework.

The StreamWriter is definately passed a valid filepath and filename,
plenty of disk space on the PDA sd card, file permission should not
affect this, however on calling the StreamWriter an IOException is raised.

We have 1,013 files in the directory on the SD Card that we are writing
to, is this likely to cause problems? If I change the last part of the
path to another directory it writes ok, but still doesn't write ok if we
move a large chunk of files from the directory we want to write to.

Or does anyone know of any bugs.

Thanks in advance.
 
G

Guest

File is read only, file is in use and not shared, file is corrupt, out of
memory - there may be others as well, but those are off the top of my head.

What folder is it in? What's the File System of the card (FAT16 or FAT32)?


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
T

Tyno Gendo

File is read only, file is in use and not shared, file is corrupt, out of
memory - there may be others as well, but those are off the top of my head.

What folder is it in? What's the File System of the card (FAT16 or FAT32)?

FAT32. Just a thought... does Windows Mobile generate 8.3 DOS
filenames? If so, this oculd be out problem as filenames are similar,
incremented, so could be trying to generate an 8.3 filename that already
exists if it does?
 
T

Tyno Gendo

Tyno said:
FAT32. Just a thought... does Windows Mobile generate 8.3 DOS
filenames? If so, this oculd be out problem as filenames are similar,
incremented, so could be trying to generate an 8.3 filename that already
exists if it does?

To confirm. Our problem was the 8.3 DOS filenames being generated for
the FAT32 card. Oh how I do wish technology would move on from past
Microsoft limitations :-D
 

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

Top