When I try to call up a DialogBox from a thread, it crashes
and give me this error message: Projectxxx raised exception class EOSError with message 'System Error, Code: 5. Access is denied'. Process stopped. Use Step or Run to continue.
Same thing when I try to call up a form using ShowModal (well DialogBox is practically a pre-defined Form). I'm using Delphi 6 and been stuck with this problem for a while.
Remember, this error only occur when I'm trying to call up the DialogBox from separate thread.