Concerning your app doesn't stop: closing the dx window doesn't mean closing the app. You need a message listener and wait for a closing message (see win32 msg handling)


Follow me on twitter