[fpc-pascal] How to handle SIGPIPE

2012-03-20 Thread Tobias Giesen
Hello, my app does http transfers using the Synapse library on Windows and Mac OS X. The transfers happen in separate threads. On Mac OS X only, the app is occasionally stopped due to a SIGPIPE. How can I avoid or handle a SIGPIPE? Cheers, Tobias ___

Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread Tobias Giesen
Hoping is not enough when changing random values. See http://bugs.freepascal.org/view.php?id=9401 for more info. Wow. Many thanks! I read that MSG_NOSIGNAL is now supported by MacOS, too, but I don't really know. So now I am calling fpsetsockopt with SO_NOSIGPIPE as the first thing after

[fpc-pascal] Missing functions in FPCMacOSAll.pas

2009-07-19 Thread Tobias Giesen
Hello, frequently I need to use a function that is missing in FPCMacOSAll.pas. Trying to declare it myself usually results in successful compilation and linking, but most of the time the functions crash at run time. So I wonder if these are not implemented or if I declare them wrong. Today I

Re: [fpc-pascal] Missing functions in FPCMacOSAll.pas

2009-07-19 Thread Tobias Giesen
Hi, thanks very much, it works now! I created a new unit for my declarations and just copied the whole compiler instructions block from FPMacOSAll.pas: {$mode macpas} {$packenum 1} {$macro on} {$inline on} {$calling mwpascal} So now I have access to a whole range of super advanced additional

[fpc-pascal] Weak linking on Mac OS?

2009-09-12 Thread Tobias Giesen
Hello, I wasn't able to find information on this on the web - apparently it has been implemented for Mac OS X but how can I use it? Is there a special keyword for it? Thanks. Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: getting started with threads

2009-09-17 Thread Tobias Giesen
But how can I prevent race conditions? If threads X and Y happen to call the task assignment function at the same time, it seems to me that they could both be assigned to the same task. Use for example the cross-platform implementations of Enter/LeaveCriticalSection. Like this:

[fpc-pascal] Floating point miscalculations on PowerPC

2010-03-13 Thread Tobias Giesen
Hello, I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's running under Rosetta on an Intel Mac. Simple floating point operations like this result in wrong code that creates wrong results: --- var it:Int64; dt:TDateTime begin it:=ANumber;

[fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-17 Thread Tobias Giesen
Hello, I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. Would it be possible to post snapshots with 2.4.1? Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-19 Thread Tobias Giesen
Which bugs? I'm sorry but it was a few months ago. Before trying again I wanted to make sure I had the best version of FPC available. I had problems with units not being found although they were on the search path allright. Also installing packages into Lazarus caused all kinds of unit conflicts

Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-19 Thread Tobias Giesen
This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and try to recompile it. If it then doesn't find the sources,

Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-19 Thread Tobias Giesen
Hello, thanks very much, Jonas and Mattias! I think your tips will help me a lot. I will go back to Macintosh development in about a month. If you don't hear from me, I'm fine! Cheers, Tobias ___ fpc-pascal maillist -

Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-20 Thread Tobias Giesen
Another, more seldom reason for recompilation problems is that you happen to name one of your own units the same as a rtl/fcl/lcl library unit. In that case the compiler thinks that your file is the new source and it wants to recompile the library units Wow, that is very useful

[fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
Hello, I am back developing for Mac! My compiled application with symbold is 93.5 MB in size and gdb cannot load it, so the debugger in Lazarus fails too. This happens on both Leopard and Snow with FPC 2.2.x and 2.4.0 and Lazarus 0.9.28 and 0.9.29. Only the 2 year old installation on Tiger

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
any harm? Maybe one 0 too many? I saw 2.4.3 for Windows on the snapshots page, is there any such update for Mac? Kind Regards, Tobias Giesen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
Then please file a bug report with source code to reproduce the crash. I'd love to but probably it only happens in my project with close to 500 units, it can be really hard to strip such things down. There is unfortunately a lot of closed source code in it. I will try installing FPC 2.5.

[fpc-pascal] Compiling FPC

2010-07-10 Thread Tobias Giesen
Hi, I have the sources from SVN now, do I just cd into the folder and type make? I couldn't find any documentation on making FPC anywhere on freepascal.org. Maybe I missed something? Cheers, Tobias ___ fpc-pascal maillist -

Re: [fpc-pascal] Compiling FPC

2010-07-10 Thread Tobias Giesen
On the website on the right is a link Documentation. http://freepascal.org/docs.var OK after some more searching I found the Building faq (PDF) on http://freepascal.org/moreinfo.var Cheers, Tobias ___ fpc-pascal maillist -

[fpc-pascal] 2.5.1: Ansi string constants vs Unicode

2010-07-10 Thread Tobias Giesen
string constants as Ansi rather than Unicode? I read the FPC UNICODE SUPPORT wiki page but it doesn't go into such detail. Kind Regards, Tobias Giesen Super Flexible Software Ltd. Co. KG Lessingstr. 42 48485 Neuenkirchen, Germany www.superflexible.com www.tgtools.com

Re: [fpc-pascal] 2.5.1: Ansi string constants vs Unicode

2010-07-10 Thread Tobias Giesen
const Vec:AnsiString=#$094#$06D; This should just be 8-bit data with no conversion. try const Vec:AnsiString=#$94#$6D; Works! Thanks Dmitry! Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Thanks for an awesome tip: -Ur = create release units

2010-07-13 Thread Tobias Giesen
Hello, thanks to Jonas for this tip in April! This command line switch can really solve some recompiling problems: -Ur (= create release units) I had the problem Recompiling XYZ, checksum changed for ZZZ when recompiling Lazarus with my component package. It's now solved. For the benefit of

[fpc-pascal] gdb Segmentation Fault - $D- does not help?

2010-07-15 Thread Tobias Giesen
Hello, I am still struggling with the Segmentation Fault that gdb produces when loading my app's symbols on Mac OS X. I inserted $D- at the top of a few hundred units, but the app still has the exact same file size. Is the $D- compiler directive ignored? Shouldn't the symbols shrink? Cheers,

[fpc-pascal] Heaptrc with symbolic stack trace or map file on Mac OS X ?

2010-10-25 Thread Tobias Giesen
Hello, I'm trying to find a memory leak but I am unable to get a symbolic stack trace from the heaptrc dump. Also the option -Xm does not generate a map file on Mac OS X. Or at least I don't see it. If I could get a detailed map file with line numbers and offsets, I would probably be happy.

[fpc-pascal] Widestring memory leaks with FPC 2.4.0?

2010-10-25 Thread Tobias Giesen
Hello, I'm using FPC 2.4.0 on Mac and I have a problem with WideString memory leaks. Is there any known issue, such that temporary WideStrings are not always freed, or any bug in reference counting? Cheers, Tobias ___ fpc-pascal maillist -

Re: [fpc-pascal] Widestring memory leaks with FPC 2.4.0?

2010-10-25 Thread Tobias Giesen
Hi, I am doing a regular heaptrc.DumpHeap now and I see that WideString memory blocks are still allocated for string values which are no longer in use. Is the memory freed in some lazy way? Or should a value that is no longer assigned to any WideString be freed immediately? Cheers, Tobias

Re: [fpc-pascal] Widestring memory leaks with FPC 2.4.0?

2010-10-25 Thread Tobias Giesen
Unless heaptrc shows leaks when the program exits, no memory leaks happen. It's a leak. The program loses hundreds of MBs of memory just by working with WideStrings. I compared it against FPC 2.2.4 - no leak. An SVN snapshot of 2.5.1 from around 3 months ago also leaks. Will update from SVN

Re: [fpc-pascal] Widestring memory leaks with FPC 2.4.0?

2010-10-25 Thread Tobias Giesen
Then you'll have to provide a compilable example that demonstrates the problem so we can fix it. I will try! Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Widestring Questions

2010-10-25 Thread Tobias Giesen
Hi, is it possible to turn off reference counting, for a test? Is there a difference between UnicodeString and WideString on the Mac version (i386) of FPC 2.4 / 2.5? Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Widestring Questions

2010-10-25 Thread Tobias Giesen
Hi, I think the problem might be that Widestring reference counting is not thread safe. But it worked fine in FPC 2.2. I will add some UniqueString calls and also try to isolate the issue. Cheers, Tobias ___ fpc-pascal maillist -

Re: [fpc-pascal] Widestring Questions

2010-10-26 Thread Tobias Giesen
, Tobias Giesen To avoid a reboot, make sure that no SuperFlexible or ExtremeSync processes are running in Task Manager before installing an update. Super Flexible Software Ltd. Co. KG Lessingstr. 42 48485 Neuenkirchen, Germany www.superflexible.com www.tgtools.com

Re: [fpc-pascal] Widestring Questions

2010-10-26 Thread Tobias Giesen
Hi, I was wrong, UniqueString does not help after all. I am now using an extended version of the heaptrc unit to show the reference count (and string value) for unfreed WideStrings and they usually have 1 as a reference count. Will keep you posted. Cheers, Tobias

Re: [fpc-pascal] Widestring Questions

2010-10-26 Thread Tobias Giesen
Hi Jonas, thanks very much!!! I am sorry for the wrong things that I wrote. Now I can clearly see that the memory is not lost on the FPC heap. The total heap size doesn't even change at all. So there's no difference with CMem either. More work to do ... Cheers, Tobias

Re: [fpc-pascal] Leak narrowed down

2010-10-28 Thread Tobias Giesen
Jonas wrote: export MallocStackLogging=1 Then, once the program is running and has leaked memory, run leaks nameofyourprogram Thanks for this tip! It is very interesting, however in this situation it does not detect the lost memory. At this point I have to give up on GetTextWidth - I will

[fpc-pascal] FPC 2.4.2 i386 MacOS: Inc broken for Int64's

2011-03-20 Thread Tobias Giesen
Hello, my app uses the built-in Inc function to add Int64 variables. Unfortunately, they are treated as UInt32, so the values are truncated as 32 bit values. Wow! That is an impressive bug. I assume it is known? What's the recommendation, which FPC version should I use? Could it be an

[fpc-pascal] WideUpperCase on Mac OS X / Intel - Runtime error 215

2007-10-07 Thread Tobias Giesen
Hello, apparently the WideUpperCase function does not work, what can I do? I get a runtime error 215 when I call it. I am using fpc-2.2.0 with Lazarus. Kind Regards, Tobias Giesen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Compiling FPC 2.2 on Mac OS X / i386

2007-10-09 Thread Tobias Giesen
Hello, I would like to compile FPC. Do I need a special make tool? When I type make all, I get many error messages, apparently because the make tool from Apple is not the right one. Thanks for any tips! Cheers, Tobias http://www.superflexible.com

[fpc-pascal] Compiling FPC 2.3 with FPC 2.2 (Mac OS i386)

2007-10-21 Thread Tobias Giesen
? Thanks. Kind Regards, Tobias Giesen www.superflexible.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Compiling ... Got it working

2007-10-21 Thread Tobias Giesen
Hello, I cleaned up some folders, deleting files from previous compilations and updating to the latest SVN and now it's working. FPC 2.3.1 finds my files much better than 2.2. Maybe the improvements in fppu.pas (tppumodule.search_unit) could be ported back to version 2.2 so that other

[fpc-pascal] no_dead_strip not recognized by OS X 10.3 assembler

2007-10-29 Thread Tobias Giesen
Hello, I am now trying the latest Lazarus snapshots on OS X 10.3 on a powerpc Mac. The application compiles 99% fine but at the end it fails with the following errors (from the assembler, I assume): unknown section attribute: no_dead_strip [...] Error while assembling Exit Code 1 Is there a

Re: [fpc-pascal] Compiling / Make problems, latest SVN

2007-10-29 Thread Tobias Giesen
Hello, thanks for the new Makefiles! I am now at SVN rev. 8988 and when I enter cd fpc/compiler make cycle CPU_TARGET=powerpc I get: Makefile:125: *** Compiler ppcrossppc not found. Stop. I don't know what's happening. In this step, I do not want to crosscompile. I want to _make_ the

Re: [fpc-pascal] no_dead_strip not recognized by OS X 10.3 assembler

2007-10-29 Thread Tobias Giesen
Yes, add the -CX- -X- command line options. Or better: turn off all smart linking related options in Lazarus. Thanks! I did both, but somehow the error is still there. All the units compile fine, only the last step where the .dpr file is compiled fails. The .s file of the main program remains

[fpc-pascal] Re: FPC on Mac OS X

2008-03-10 Thread Tobias Giesen
/OS_X_Programming_Tips And the discussion list is here: http://www.lazarus.freepascal.org/mailman/listinfo/lazarus Kind Regards, Tobias Giesen Super Flexible Software Ltd. Co. KG Lessingstr. 42 48485 Neuenkirchen, Germany www.superflexible.com www.tgtools.com

[fpc-pascal] WARNING: Widestring Delete function causes crashes (FPC 2.2.0)

2008-05-27 Thread Tobias Giesen
+IndexLS then Size:=LS-Index+1; if Index+Size=LS then begin Dec(Index); System.Move(PWideChar(S)[Index+Size],PWideChar(S)[Index], (LS-Index-Size+1)*sizeof(WideChar)); end; Setlength(s,LS-Size); end; end; Kind Regards, Tobias Giesen http

Re: [fpc-pascal] WARNING: Widestring Delete function causes crashes (FPC 2.2.0)

2008-05-28 Thread Tobias Giesen
As I noted in your bug report, this has been fixed in 2.2.1 for several months already. But the fix must be copied to 2.2.0 too, because the Lazarus team is still spreading this crash on their daily snapshots. I don't know who is responsible for that. Can you tell me? Cheers, Tobias

[fpc-pascal] GDB Crash with FPC 2.2.1 (works with 2.2.0)

2008-05-31 Thread Tobias Giesen
Hello, now that the Lazarus snapshots are including FPC 2.2.1 for OS X (i386), I am using this version. I had to add the -Cg- option because my old assembly code is not compatible with PIC. Unfortunately the debugger crashes with the following crash report. Is there anything I can do to make it

[fpc-pascal] chown on Mac OS X

2008-07-18 Thread Tobias Giesen
Hello, I am trying to call fpchown but it causes an infinite recursion. fpchmod works fine. This happens in all FPC 2.x versions. Any ideas? How can I recompile the FCL with debugging information, so I can trace into these problems with Lazarus? Cheers, Tobias

[fpc-pascal] Re: chown on Mac OS X

2008-07-19 Thread Tobias Giesen
Hi, OK I added this as a bug: http://mantis.freepascal.org/view.php?id=11705 This is caused by FpChown missing from oscdeclh.inc in the rtl/unix folder. I tried adding it but it causes an exception. But chown is present in the libc. Why can't it be called? I can't believe that nobody uses

[fpc-pascal] Re: Socket library for Mac OS X

2008-08-27 Thread Tobias Giesen
Hello, Synapse works extremely well with maybe only 1 change due to an undefined symbol at compile time, which can be defined as 0. http://synapse.ararat.cz/doku.php Cheers, Tobias http://www.superflexible.com ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Tobias Giesen
at all. Synapse is much more compact and less bloated than Indy, for example. If you have any problems or need any customization, you will be able to work with the Synapse source code much better than with Indy. Kind Regards, Tobias Giesen Super Flexible Software Ltd. Co. KG Lessingstr. 42 48485

[fpc-pascal] Re: How to initialize thread vars?

2008-09-04 Thread Tobias Giesen
Hi, I think that thread variables are automatically initialized to zero. So you just need to use them in such a way that zero is the desired start value. Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tobias Giesen
Hello, many thanks for all the insight! I will be able to complete it now. A separate DLL should be easy enough, too. Cheers, Tobias Am 21.08.2015 08:40 schrieb Tobias Giesen tobiasgie...@gmail.com: Hello, I have to compile a few Pascal units with FPC and add them to a Visual C

[fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tobias Giesen
not recognize the FPC way of mangling the DLL dependencies? Is there a way to compile the RTL in a way that Microsoft can link? Or anything else I can do? Thanks. Tobias Giesen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tobias Giesen
The particular symbol should be defined in libimpsystem.a Fantastic! After adding some more libraries, the only remaining missing symbol is FPC_WIDEINITTABLES. I can probably just create a dummy for that in a Pascal unit, as the code does not need widestrings. Cheers, Tobias

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tobias Giesen
Hello, yes, to interface between Pascal and C I use 'extern C'. I do not have any problems linking between my C code and the Pascal code. The only problem is that the Pascal RTL uses DLL imports, which the Microsoft linker cannot resolve, for example: unresolved external symbol

Re: [fpc-pascal] Does TThread.Execute terminate thread on exit?

2015-11-01 Thread Tobias Giesen
Yes it will terminate and free (if FreeOnTerminate is true). - 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 > On 01.11.2015, at 15:25, Bo Berglund <bo.bergl...@gmail.com&

Re: [fpc-pascal] Lack of 'volatile' a serious issue.

2015-12-19 Thread Tobias Giesen
Hello, I am interested in this problem too. My app is highly multithreaded, working mostly with TObject descendants such as TStringList and TCollections. I am ensuring thread safety thru CriticalSections. In fact I have made my own TThreadSafeStringList. I have been distributing the app with

[fpc-pascal] FPC 3: disabling automatic AnsiString codepage conversion

2016-04-04 Thread Tobias Giesen
Hello, my application uses the AnsiString type to store UTF-8 data. That was totally fine. Now in FPC 3, automatic conversions cause data loss. I get question marks replacing Chinese characters, for example. I do not fully understand at which points these conversions are done. The FPC 3 Unicode

[fpc-pascal] Run-time checks

2016-07-04 Thread Tobias Giesen
Hello, I have a few questions about run-time checks. Is it possible to check class typecasts such as TMyIniFile(AnIniFile) ? Or only "AnIniFile as TMyIniFile"? If only the second, it would be cool if it were possible to disallow the first kind of typecast. Cheers, Tobias

[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 <jo...@freepasc

Re: [fpc-pascal] Free Pascal Setup

2017-05-06 Thread Tobias Giesen
, Tobias Giesen > Am 05.05.2017 um 03:09 schrieb John van der Linden <john.lin...@outlook.com>: > > Hi, > > When I download the Free Pascal I get a file called i386-win32-ppc386.zip > which contains 1 file called ppc386.exe which does not contain the Setup > system for

[fpc-pascal] System call ABI problem on ppc Linux

2017-12-04 Thread Tobias Giesen
Hello, I just filed a bug report about FpFtruncate passing the parameters incorrectly to the system. For example, setting a file size to $D would cause the file to have the size $D 000D. Apparently the conditional define FPC_ABI_EABI would fix it, but what other impact does it have? I

[fpc-pascal] Minimum Linux version for FPC 3.0.2 (armhf)

2017-11-20 Thread Tobias Giesen
Hello, I wonder what the minimum Linux version is ... I have made NAS versions of my app, and it runs fine on an older Synology NAS with this uname info: Linux DS-212j 2.6.32.12 armv5tel GNU/Linux synology_88f6281_212j But it crashes with access violations, and EThread exceptions on this old

Re: [fpc-pascal] System call ABI problem on ppc Linux

2017-12-05 Thread Tobias Giesen
will send more information later. Cheers, Tobias Giesen > Am 05.12.2017 um 19:20 schrieb Karoly Balogh (Charlie/SGR) > <char...@scenergy.dfmk.hu>: > > Hi, > >> On Tue, 5 Dec 2017, tobiasgie...@gmail.com wrote: >> >> I think the only problem is with fpmake

Re: [fpc-pascal] FPC (trunk) on Linux/ppc64le

2017-10-19 Thread Tobias Giesen
___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Kind Regards, Tobias Giesen Super Flexible Software Ltd. & Co. KG Buddenstr. 29-31 48143 Münster, Germany ww

[fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Tobias Giesen
Hello, I would like to get the user ID for a Linux user name. Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or GetUserId. Is there a replacement? Or could I define and import the function myself? Thanks for any help! Cheers,

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Tobias Giesen
Many thanks! That's great. The completeness of FPC units and packages is really astonishing. Cheers, Tobias On Wed, 3 Jan 2018 06:36:32 + Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > On 2018-01-03 00:12, Tobias Giesen wrote: > > Unfortunately Libc and

Re: [fpc-pascal] The unfortunate deprecation of GetTickCount

2018-04-11 Thread Tobias Giesen
s; > > var t1,t2,t3:dword; > begin >t1:=$fffe; >t2:=2; >t3:=t2-t1; >writeln(t3); >writeln(t2-t1); > end. > > > -- > Luca > ___ > fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Linking with putty C code, various linker errors

2019-10-09 Thread Tobias Giesen
Hello again, here's a quick update, I decided to make a DLL instead. Much easier and cleaner. Making good progress. Will publish when done. Cheers, Tobias On Tue, Oct 8, 2019 at 6:50 PM wrote: > Hello, > I am trying to make an SFTP client class based on putty. It will be open > source and I

Re: [fpc-pascal] macOS linker error ld: framework not found CoreImage

2020-08-01 Thread Tobias Giesen via fpc-pascal
Hello Jonas, many thanks for the information, that’s very interesting and helpful. Cheers, Tobias > Am 01.08.2020 um 23:58 schrieb Jonas Maebe : > > On 01/08/2020 23:42, Tobias Klaus Giesen via fpc-pascal wrote: >> I am mainly working on MacOS 10.10 (Yosemite). >> >> After updating from

[fpc-pascal] Compilation speed on Apple M1

2020-11-21 Thread Tobias Giesen via fpc-pascal
Hello, first and foremost, many thanks to the creators and contributors of FPC and Lazarus, who enabled me to release my product natively for Apple Silicon only one day after receiving an M1 Mac. Fantastic work! FPC and Lazarus both run natively and work very well. According to Geekbench, the

Re: [fpc-pascal] Compilation speed on Apple M1

2020-11-24 Thread Tobias Giesen via fpc-pascal
Hello Florian, many thanks for this! To compare performance, is it sufficient to add the FTP=xxx parameter and point it to the different ppca64 versions? And should I compile the older source snapshort with the older version, and today's snapshot with the newer ppca64? I just want to do the

Re: [fpc-pascal] Compilation speed on Apple M1

2020-11-21 Thread Tobias Giesen via fpc-pascal
Hi, many thanks for the replies! I actually think most of the time is used by clang for assembling. If I can find out more precise details, I will let you know. And it is already a little bit faster on M1 than on my Intel. Kind Regards, Tobias Giesen Super Flexible Software GmbH & Co

[fpc-pascal] FPC 3.2.2 (In)complete Boolean Evaluation on 32bit MacOS

2021-05-30 Thread Tobias Giesen via fpc-pascal
Hello, it seems that the newest 32-bit FPC sometimes creates complete Boolean Evaluation rather than partial, which causes my application to crash. My context is like this: type BOOL=LongBool; PBOOL=^LongBool; function DoSomething(const Cancel:PBOOL=nil); begin if Assigned(Cancel)

Re: [fpc-pascal] help with porting project

2022-03-11 Thread Tobias Giesen via fpc-pascal
re I would like > to maintain this project. > For now, I would be very happy with a lazarus project that successfully > compiles the (preferred) latest version of the source code. > > Thank you so much > Jessica > > Sent with [ProtonMail](https://protonmail.com/) Secure