[fpc-pascal] what is the possible cause of EPrivilege Privileged instruction ?

Dennis Poon dennis at avidsoft.com.hk
Wed Oct 26 18:42:58 CEST 2016



Snorkl e wrote:
>
> Your not using teventobject in your threads are you?
> There is a bug in the RTL which could cause weird issues with threads 
> if you are using teventobject.create.
>
>
I don't use TEventObject (because I don't know how to use it).
I have my internal task queue that my worker thread loop through the 
task queue.
The exception was raised within one of the many tasks in the task queue.

Dennis
> On Oct 26, 2016 10:58 AM, "Dennis" <dec12 at avidsoft.com.hk 
> <mailto:dec12 at avidsoft.com.hk>> wrote:
>
>     I have a multi threaded program which executes a list of tasks in
>     real time.
>     It is difficult to debug with a debugger on this program (since
>     debugging will pause the execution which will be messy for this
>     application).
>
>     So, I log the exceptions to a log file and I found this exception:
>     EPrivilege    Privileged instruction
>
>     What could possibly raise this exception?
>
>     My program is win 32 from Lazarus 1.7  FPC 3.1.1
>     and running on Win 7 64 bit.
>
>     thanks in advance.
>
>     Dennis
>     _______________________________________________
>     fpc-pascal maillist  - fpc-pascal at lists.freepascal.org
>     <mailto:fpc-pascal at lists.freepascal.org>
>     http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>     <http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal>
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list