Console Event Handling

Today I was looking around fro a way to intercept exit events for a c# console application. I found out there is no 'simple' way to do it, you have to import a win3d API function as explained HERE.

I need to do this for my Edanarion server application. Server should be shut down gracefully through a console command, but it should also take care of shutdowns through console window closing.

Comments

Popular posts from this blog

Flickering 2D transform elements in Chrome: a simple fix

glVertexAttribPointer and double precision buffers

Parallel Beam Tracing and Visualization of 200 Million Sonar Points