Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

while(true) causes page fault #97

Open
EdNutting opened this issue Mar 6, 2017 · 0 comments
Open

while(true) causes page fault #97

EdNutting opened this issue Mar 6, 2017 · 0 comments

Comments

@EdNutting
Copy link
Member

while(true) causes the MS Compiler to optimize MSIL in such a way that the FlingOS Drivers Compiler creates invalid code due to insertion of error handling IL ops.

Need to investigate what the IL actually looks like and thus what the Drivers Compiler is doing wrong.

For now, suitable workaround is just to use a non-constant boolean e.g.

static bool Terminating = false;
...
void Demo() 
{
    ...
    while(!Terminating)
    {
        ...
    }
    ...
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant