Recent

Author Topic: What is the differents between Windows and Linux threads?  (Read 2365 times)

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
What is the differents between Windows and Linux threads?
« on: June 09, 2017, 02:10:13 pm »
Hello Lazarus team,

I am trying to thread based multi pascal script usage in windows and linux.

I prepared a project in windows and I can run it normally.

But when I run that codes in Linux I am getting a lot of syncronize problems.

Also I try to change some global/local varaibles reading method but I couldn't success as windows os.

What should I look details?

I am attaching both projects.

cappe

  • Full Member
  • ***
  • Posts: 191
Re: What is the differents between Windows and Linux threads?
« Reply #1 on: June 09, 2017, 03:54:34 pm »
Try
LclIntf.SendMessage(Form1.Handle,
                      WM_SET_CAPTION,
                      Int64(Form1.FindComponent(aName)),
                      Integer(buf));

The first example works well both in linux and windows by me
« Last Edit: June 09, 2017, 04:25:37 pm by cappe »

 

TinyPortal © 2005-2018