Page 1 of 1

Proveleged instruction Execption!! what does it mean????

Posted: Tue Oct 11, 2005 6:29 am
by cool_tester
Hello all,

I just got this error and would like to know what exactly it means and how to solve it.

Code: Select all

current module    : C:\Program Files\Borland\Delphi5\Projects\Dll Calling EXE Procedures\Project2.dll
module date/time  : 2005-10-11 02:24
madExcept version : 2.7g
exception class   : EPrivilege
exception message : Privileged instruction.

main thread ($2610):
00ef32ba ???                              
00ea0ee8 Project2.dll    StdCtrls    2937 TButton.CNCommand
00eb2b99 Project2.dll    Controls    4227 TControl.WndProc
Thanks.

Posted: Tue Oct 11, 2005 6:49 am
by madshi
This is an exception which occurs when a thread is trying to execute a CPU instruction which only is allowed in driver land (e.g. interrupt handling in the NT family).

Usually when you run into such an exception in your Delphi application, that means that your thread jumped to wild/random memory. Hard to say why, though, unfortunately...

Posted: Wed Oct 12, 2005 10:14 am
by cool_tester
Makes sense thanks. i tracked the issue...