[Lazarus] calling basicEventCreate in Linux
Inoussa OUEDRAOGO
inoussa12 at gmail.com
Sat Aug 9 00:14:52 CEST 2008
2008/8/8 Boian Mitov <mitov at mitov.com>:
> Hi Marco,
>
> Is there a setting I have to make in order for this to work? Or do I need to
> write a bit of code in the project?
> Please help!
> Any suggestion?
>
> With best regards,
> Boian Mitov
>
> --------------------------------------------------------------------
> Mitov Software
> http://www.mitov.com
> --------------------------------------------------------------------
>
>
> ----- Original Message -----
> From: "Marco van de Voort" <marcov at stack.nl>
> To: "General mailing list" <lazarus at lazarus.freepascal.org>
> Sent: Friday, August 08, 2008 3:02 AM
> Subject: Re: [Lazarus] calling basicEventCreate in Linux
>
>
>> On Wed, Aug 06, 2008 at 07:15:44PM -0700, Boian Mitov wrote:
>>> I am calling basicEventCreate in a project. In Windows it works fine in
>>> Linux it throws exception. Is it expected?
>>
>> If you don't use cthreads, it is expected yes :-)
To use "cthreads", just include it as the very first unit of your
program, susch as
<code>
program sample;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
....;
begin
...
end.
</code>
Hope this help.
--
Inoussa O.
More information about the Lazarus
mailing list