第 1000 个文件无法在 Window Mobile OS 中创建,无法计算表达式错误

1000th files failed to create in Window Mobile OS with could not evaluate expression error

感谢任何帮助。

我在 Window 移动设备 6.1 OS 上使用手持设备 运行。我使用 .net compact framework 开发了一个 C#.net 应用程序来创建 1000 个具有相同文件名但不同计数器的文件,例如。 30.6.2015.test123.1.txt -> 30.6.2015.test123.1000.txt

                try
                {
                  TextWriter tw = null;
                  DateTime dtmCurrent = DateTime.Now;
                  String path = @"\Mounted Volume\gan3\";
                  for (int i = 1; i < 1500; i++)
                  {
                    tw = new StreamWriter(path + "22.6.2015.test123." + i + ".txt", true);
                    tw.Close();
                  }
                }
                catch(Exception e)
                {
                  Console.WriteLine(err.StackTrace);
                }

创建第 1000 个文件时,程序抛出异常无法计算表达式。从第1到第999创建文件没有问题。

任何人都可以告诉这个错误的原因是什么?是框架本身的错误吗?

Windows 用于掌上电脑的移动设备,Windows 用于智能手机的移动设备,Windows CE 平台注意:

Windows当文件共享相同的短文件名(即八个字符的名称、句点 (.) 和三个字符的扩展名)时,CE 不能在一个目录中存储超过 999 个文件.解决方法是确保短文件名不同。例如,如果文件名为 Longfilename0001.txt 到 Longfilename1000.txt,请将数字放在文件名的开头而不是结尾。