On 26/12/2012 22:47, Andrej Mitrovic wrote:
On 12/26/12, Walter Bright <[email protected]> wrote:
The operating system calls WNDPROC directly. That means that you (the user)
need to set up / tear down the D runtime yourself

But we already do this in WinMain, which is called first:
<snip>

But on top of what Walter has said:

- Is it even guaranteed that the WNDPROC will be called only in the program's own call stack?

- Just looking at how SendMessage works across threads, can we rely on it to properly notify the calling thread that the message has been processed if the WNDPROC throws?

- Chances are you'll want to avoid just letting exceptions abort the entire program.

Stewart.

Reply via email to