* * *

Author Topic: TEvent.Create returns "Failed to create OS basic event"  (Read 271 times)

jlopez

  • Newbie
  • Posts: 1
TEvent.Create returns "Failed to create OS basic event"
« on: March 18, 2017, 06:42:53 pm »
I am trying to learn about mORMot framework. I compiled without problems the sample "04 - HTTP Client-Server". Running the client i receive an access violation error. Debugging this program detect a error on this instruction:
fProcessEvent := TEvent.Create(nil,false,false,'');
After that, to check this, I create a simple programa with one button and this instruction:
TestEvent := TEvent.Create(nil,false,false,'');
I receive a message "Failed to create OS basic event"
I installed fpc + lazarus from trunk using fpcupdeluxe, running on linux 64 bits.
There is something wrong with my system or is a bug with this library?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5429
Re: TEvent.Create returns "Failed to create OS basic event"
« Reply #1 on: March 18, 2017, 06:57:32 pm »
Make sure your thread manager is configured, iow add unit cthreads as the first unit in your .lpr.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus