-
Notifications
You must be signed in to change notification settings - Fork 509
File I/O is not working #2147
Comments
It compiles, but at runtime it prints:
This is because System.Threading.Overlapped.dll wasn't present in the inputs to the compiler. This is in the same bucket as e.g. #2110 and is caused by various cherry picked framework assemblies that don't match or are incomplete. There's work scheduled to fix this. CppCodegen is hitting various problems related to lazy P/invokes and the missing handling of RVA static fields. I filed a separate issue #2149 on it. |
Without cpp codegen it works fine for me, thanks! With cpp:
|
@Fabi Thanks for giving it a try! I have create a new issue for the CppCodeGen bug. |
Getting pathes from the Directory classes are fine, however creating or reading files let the native app crash.
I tried simple code like
File.Create("bob.txt");
or
var fs = new FileStream("bob.txt", FileMode.Append);
Using RyuJIT compiler it prints me "Unhandled Exception: System.IO.FileNotFoundException: IO_FileNotFound_FileName
IO_FileName_Name"
and using the cpp one I'm not even able to build in debug mode.
The text was updated successfully, but these errors were encountered: