Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Jon Foster
On 04/15/2017 12:14 PM, fredvs wrote: Jon Foster wrote The only thing that console apps need is a terminal emulator. Huh, yes, when I re-read my mail, I see directly that this will be the problem. The "One only library-method used by the Java Class" needs of course a terminal to show his

Re: [fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Mark Morgan Lloyd
On 18/04/17 12:00, Dennis wrote: I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will occupies the entire CPU core. I noticed that it will happen more often if: This might be better

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Jon Foster
On 04/18/2017 04:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can't look in there so you kind of have to fly blind. :-)

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Jon Foster
On 04/18/2017 10:13 AM, Jon Foster wrote: On 04/18/2017 04:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can't look in

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Paul Breneman
On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can't look in there so you kind of have to fly blind. :-) "Terminal IDE" makes this easier, assuming you

Re: [fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Henry Vermaak
On Tue, Apr 18, 2017 at 07:32:21PM +0800, Dennis wrote: > Since this freezing behavour does not happen during debugging, I have spent > months trying to fix it but failed. > > Any suggestions are welcome. Try using a data race detector to see if it's a deadlock. I don't know about Windows, but

[fpc-pascal] AArch64 / Linux

2017-04-18 Thread Tobias Giesen
Hello, me again trying new platforms :=) I now have two machines running Linux on 64-bit ARM. So I wonder, what's the best way to get FPC 3.0.2 running natively on AArch64 and producing AArch64 programs? Thanks for any tips. Cheers, Tobias ___

Re: [fpc-pascal] AArch64 / Linux

2017-04-18 Thread Tobias Giesen
Wow, fantastic, many thanks! Will try to build it :=) - Please excuse the shortness of this mail which was sent from my mobile phone. If necessary, I will send more information later. Cheers, Tobias Giesen > Am 18.04.2017 um 23:34 schrieb Jonas Maebe : > > >

Re: [fpc-pascal] AArch64 / Linux

2017-04-18 Thread Jonas Maebe
Tobias Giesen wrote: > I now have two machines running Linux on 64-bit ARM. So I wonder, what's the > best > way to get FPC 3.0.2 running natively on AArch64 and producing AArch64 > programs? FPC 3.0.2 does not support AArch64. AArch64 is only supported in trunk, and in a separate 3.0.x

[fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Dennis
I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will occupies the entire CPU core. I noticed that it will happen more often if: 1) constructor TMyComponent.Create(TheOwner :

Re: [fpc-pascal] Coroutines and VirtualAlloc

2017-04-18 Thread Daniel Gaspary
On Sat, Apr 15, 2017 at 6:20 AM, Ryan Joseph wrote: > I was curious about possible ways coroutines could work in FPC and found this > example that claims to implement just that. It appears to be designed for > Windows though and makes use of a function called

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Paul Breneman
On 04/18/2017 01:27 PM, Jon Foster wrote: On 04/18/2017 10:13 AM, Jon Foster wrote: On 04/18/2017 04:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all

Re: [fpc-pascal] Coroutines and VirtualAlloc

2017-04-18 Thread Ryan Joseph
> On Apr 19, 2017, at 2:34 AM, Daniel Gaspary wrote: > > Using SetJmp and LongJmp? > > I believe some months ago it was a discussion on the list on why this > was not really the way to implement coroutines. > > Searching for longjmp/setjmp you can find the thread, I