bplu4t2f
bplu4t2f
> That is exactly what that handle is. It is event that will be set to signaled when Present won't block. Just want to add a little more detail in...
You break out of the loop on a successful (!) wait, and then you don't wait again until the Present call as far as I can tell. If the WaitForSingleObject...
It isn't that simple. It's not just a boolean WaitEvent like ManualResetEvent or AutoResetEvent. I don't know exactly how it works, or whether it's really a semaphore internally, but it...
Just out of personal interest I decided to check the object type of the "Frame Latency Waitable Object" using the undocumented NT kernel function described here: http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Type%20independed/NtQueryObject.html (note: The OBJECT_TYPE_INFORMATION...
The current version is calling CreateProcessA instead of CreateProcessW. It works when using the W version correctly (as usual).
Requires conversion of all the arguments via MultiByteToWideChar of course. Just in case anybody is wondering, you never want to call the A versions of WinAPIs nowadays, for if you...
@mmozeiko That's actually sort of neat, found some more info here: https://docs.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page
This is because the StreamWriter instance is not being flushed when io.write is called. Call io.flush() to flush stdout. The messages will be displayed. It is possible to fix this...
Be aware that Moonsharp currently re-initializes the core modules every time a new Script is instanciated. If you do Script.RunString("io.write('lua io.write'); io.flush()"); rather than Script.RunString("io.write('lua io.write')"); Script.RunString("io.flush()"); you should see...
OK that worked on my machine, so it could be an issue with your particular setup of stdout. Can you try running var stream = Console.OpenStandardOutput(); var writer = new...