Re: [fpc-pascal] WinCE multithreading

2011-09-17 Thread Fabio Luis Girardi
Patch for FPC-RTL: http://bugs.freepascal.org/view.php?id=20280 The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] WinCE multithreading

2011-09-17 Thread Fabio Luis Girardi
Hi! I submitted two patches that solves multi threading issues on WinCE (one on Lazarus LCL, other on FPC RTL) http://bugs.freepascal.org/view.php?id=18756 After the patches, all examples works as expected. The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/pro

Re: [fpc-pascal] WinCE multithreading

2011-09-15 Thread Fabio Luis Girardi
Hi! I made some changes for WinCE and want test. How I rebuild only the RTL on windows? I'm using WinXP, Lazarus 0.9.30.1 with fpc 2.4.4 + cross-arm downloaded from daily snapshots. The best regards, Fabio ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] WinCE multithreading

2011-09-15 Thread Fabio Luis Girardi
Yes, I don't use this. I access the LCL methods via TThread.Synchronize, On my mind, I'm doing this right... Correct me if I'm wrong. The bug related tells that TThread.Synchronize don't work as expected in WinCE as in others OS's. It has two examples that don't work as expected on WinCE, both wit

Re: [fpc-pascal] WinCE multithreading

2011-09-15 Thread Felipe Monteiro de Carvalho
On Mon, Sep 12, 2011 at 8:08 PM, Fabio Luis Girardi wrote: > I'm porting a multi-thread project to WinCE. Everything works fine, > except when I put a Label (or any window control) on any form and link > it with the data coming from any thread. My question is: What's the > current state of the Win

Re: [fpc-pascal] WinCE multithreading

2011-09-15 Thread Fabio Luis Girardi
Yes, the current FPC has this feature. Maybe the problem with WinCE with multithreading is this: http://bugs.freepascal.org/view.php?id=18756 and not the use or not of Unaligned keyword. Added with some outdated documentation on Wiki, this cause a little of confusion in the mind of who starts wi

Re: [fpc-pascal] WinCE multithreading

2011-09-14 Thread Felipe Monteiro de Carvalho
But is the unaligned still required? I remember that unaligned access was sure crash in WinCE many years ago, but I vaguely remember someone mentioned that FPC had improved it's support for the compiler figuring out on it's own when something is unaligned. While doing Android development for exampl

Re: [fpc-pascal] WinCE multithreading

2011-09-14 Thread Jonas Maebe
On 14 Sep 2011, at 19:16, Fabio Luis Girardi wrote: > I'm debugging and I have doubt: I'm using records and pointers to > records. On WinCE wiki, the use of unaligned only shows with pointers > to integer. And with recods, I must do > > unalinged(myrec^).member > > or > > unalinged(myrec^.memb

Re: [fpc-pascal] WinCE multithreading

2011-09-14 Thread Fabio Luis Girardi
I'm debugging and I have doubt: I'm using records and pointers to records. On WinCE wiki, the use of unaligned only shows with pointers to integer. And with recods, I must do unalinged(myrec^).member or unalinged(myrec^.member) ??? The best regards, Fabio Luis Girardi PascalSCADA Project ht

Re: [fpc-pascal] WinCE multithreading

2011-09-12 Thread Zaher Dirkey
On Mon, Sep 12, 2011 at 9:08 PM, Fabio Luis Girardi wrote: > Hi! > > I'm porting a multi-thread project to WinCE. Everything works fine, > except when I put a Label (or any window control) on any form and link > it with the data coming from any thread. My question is: What's the > current state of

[fpc-pascal] WinCE multithreading

2011-09-12 Thread Fabio Luis Girardi
Hi! I'm porting a multi-thread project to WinCE. Everything works fine, except when I put a Label (or any window control) on any form and link it with the data coming from any thread. My question is: What's the current state of the WinCE port with threads? -- The best regards, Fabio Luis Girard