Does anyone have any ideas as to why my application always crashes on calls to "kernel32.GetCurrentThreadId()"? Every time I call GCTID I get: - a call to UnhandledExceptionFilter() - producing an "Unhanded privileged instruction at address 0x40112584" message box (which I've never seen popup, I only know it happens because I'm reading the --debugmsg +relay output.) Any ideas? Quentin.