> Where does the exception occur? (Actually, I already know the exception > occurs in RaiseLastOSError, so more precisely, what does the call stack > look like when that error occurs? Turn on "debug DCUs" if you haven't > already. Tools like MadExcept or JclDebug can help generate a call stack > even when the IDE can't.)
I found that there is a delay in one of my components doing logging and that the app is trying to log to screen while terminating. > > Vahan is confusing "access denied" with "access violation." Your program > is trying to use something it doesn't have access to, such as writing a > read-only file, or updating a privileged registry key. You can get the > error either by requesting more privileges than you're entitled to when > you open the object, or by using more privileges than you initially > requested. Sometimes the request is implicit; you ask for deletion > rights to a file when you call DeleteFile, and if you don't have those > rights, then the error code is Error_Access_Denied. I haven't found a fix for it yet, but I do have a workaround. Instead of doing a normal Application.Terminate, I used a procedure which kills the process instead, (it's not nice, but for the meantime it'll have to stick until I can find the bug) Cheers Louis ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

