-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File.Exists() causes CPU Exception #3028
Comments
Try instead of initializing the fs immediately set it to null first and then in beforerun set it to a new instance |
Since it probaly needs to do some more initialization in OnBoot which is called before BeforeRun but if you just init it immediately then its probaly not gonna work. @JeffTheK |
Just tried doing it the way you told me, I still get the same error |
In the first code i copied the initialization code from the docs, so i thought it would work |
Also Directory.Exists works fine, but File.Exists does not |
from memory there is a bug in the exception handler where it will some times kill the system i think it was something to do with stack corruption |
Weird, I'm using old devkit and it's works... |
it works most of the time |
Area of Cosmos - What area of Cosmos are we dealing with?
FileSystem
Expected Behaviour - What do you think that should happen?
File.Exists should return a bool
Actual Behaviour - What unexpectedly happens?
I get Cosmos CPU Exception, invalid opcode
Reproduction - How did you get this error to appear?
Use System.IO.File.Exists()
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Latest dev kit, running using vmware on linux
Here's my code:
here's a screenshot of the error
The text was updated successfully, but these errors were encountered: