Re: [fpc-pascal] Testing shared libraries compiled with FPC/Lazarus under Linux

2012-04-09 Thread Alan Krause
Indeed. You can put the following in your .bashrc file: export LD_LIBRARY_PAH=. Alan On Sun, Apr 8, 2012 at 3:00 PM, Tomas Hajny xhaj...@hajny.biz wrote: On 9 Apr 12, at 0:42, patspiper wrote: Is it possible to test a shared library compiled with Lazarus/FPC under Linux without copying

Re: [fpc-pascal] gtk+ linux-windows

2009-06-24 Thread Alan Krause
On Wed, Jun 24, 2009 at 7:01 AM, Graeme Geldenhuys grae...@opensoft.homeip.net wrote: OK, I see what you mean... I improved the performance very slightly by reducing the two for loops to a single one. I also updated the uses clause to the latest revision of fpGUI Toolkit. I also removed all

[fpc-pascal] Re: Linking issue in Ubuntu 9.04 (32 bit)

2009-07-07 Thread Alan Krause
for the next release (9.10 - Karmic Koala). However, I was able to download the appropriate .DEB file for my architecture and install it on a 9.04 box, and it does appear to work as advertised. Alan On Fri, Apr 24, 2009 at 1:39 PM, Alan Krause al...@shermanloan.com wrote: I've installed ubuntu 9.04

[fpc-pascal] Error attempting to build FPC from svn

2009-07-07 Thread Alan Krause
I am attempting to build FPC from svn (trunk) and receive the following error message while attempting to build the gtk2 package: pangoincludes.inc(14,2) Fatal: Can't open include file pango-glyph-item.inc It appears as if perhaps a file is missing from the repository? Alan

Re: [fpc-pascal] Error attempting to build FPC from svn

2009-07-07 Thread Alan Krause
Thanks much, Jonas. Just updated and everything built fine - even my code! Alan On Tue, Jul 7, 2009 at 2:16 PM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: On 07 Jul 2009, at 18:25, Alan Krause wrote: I am attempting to build FPC from svn (trunk) and receive the following error message

Re: [fpc-pascal] FPC + 64bit Windows = anybody?

2010-05-03 Thread Alan Krause
There is a 64-bit cross compiler for Windows, and I have been using it over the last few months. I am porting my company's loan calculation DLL from Delphi to FPC. This was initially done to support 32-bit linux, but the pace has picked up due to a client who wants to know when a 64-bit version

Re: [fpc-pascal] How to include a Windows Version resource in a fpc compiled DLL?

2010-07-02 Thread Alan Krause
, Paul Ishenin webpi...@mail.ru wrote: 02.07.2010 23:29, Alan Krause wrote: On the Windows platform, version information is often included as a resource which can be queried displayed. Is there any way to include this information in the 64-bit fpc compiled DLL? Use Lazarus IDE for editing

[fpc-pascal] x86_64 linking issue (2.1.4)

2007-05-24 Thread Alan Krause
, but not for x86_64. Does anyone have any ideas? Thanks much, Alan Krause ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Alan Krause
the pre-fork method would be perfect for what you are describing as well. Alan Krause ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-17 Thread Alan Krause
Rodrigo Palhano wrote: this if ( payments per year 12 ) then begin Result := 1; exit; end; if ( rate = 0 ) then begin Result := 2; exit; end; is better than this ? if ( payments per year 12 ) then begin Result := 1 Else if ( rate = 0 ) then Result := 2; or even this ? In my

[fpc-pascal] Using JNI in free pascal

2008-04-24 Thread Alan Krause
Has anyone used the Java Native Interface unit (JNI.pas, home page is http://www.pacifier.com/~mmead/jni/delphi/) to provide JNI access to a shared library under Linux? I currently use it with Delphi to provide a JNI interface to a Windows DLL, and would like to do the same under Linux.

Re: [fpc-pascal] Pointers in Pascal!!

2008-04-29 Thread Alan Krause
: pointer); begin if pnil then begin freemem(p); p:=nil end end; Use FreeAndNil() - http://www.delphibasics.co.uk/RTL.asp?Name=FreeAndNil Alan Krause ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] [Linux] Accessing Shared Libraries in *Current* Binary Directory

2008-08-22 Thread Alan Krause
Tom, In the bash shell, type in: export LD_LIBRARY_PATH=. This appends the current directory to the library search path, so if you cd to the app's directory before executing it, you will be good to go. You could also write a bash script to perform these steps automatically for you, as I know

Re: [fpc-pascal] Re: Strange Floating Point Exception problem

2008-08-27 Thread Alan Krause
Tom, I have some experience with FPEs under Delphi, and what I came to learn is that most of the time, the exception occurs somewhere before what is reported, due to Imprecise Trapping Modes. In short, this means the hardware can detect a floating-point exception and deliver an interrupt, but

[fpc-pascal] heaptrc unit output

2009-03-31 Thread Alan Krause
I've been using the heaptrc unit in DEBUG versions of my application to detect memory leaks. However, when a memory leak is detected, it does not include any information on the unit, line number, etc - just the hex addresses, like this: Heap dump by heaptrc unit 15648 memory blocks allocated :

Re: [fpc-pascal] heaptrc unit output

2009-03-31 Thread Alan Krause
Thanks much for the FYI, Jonas. Alan On Tue, Mar 31, 2009 at 1:02 PM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: It's a shared library issue. It has been fixed for a number of platforms in 2.2.4: http://bugs.freepascal.org/view.php?id=4171 (I don't know about Linux though, but I think so).

[fpc-pascal] Linking issue in Ubuntu 9.04 (32 bit)

2009-04-24 Thread Alan Krause
I've installed ubuntu 9.04 in a VM to test it out, and have installed fpc 2.2.4. It is always good to look before you leap, right? Anyhow, I am trying to compile an existing project that works fine under Ubuntu 8.04. I can get all of the unit to compile, but when it comes time to link them

Re: [fpc-pascal] Linking issue in Ubuntu 9.04 (32 bit)

2009-04-24 Thread Alan Krause
Jonas, It does indeed ship with 2.19.1. I've had this same problem in the past, and have had to stick with ubuntu 8.04 for my development box due to this problem. Prince - if you execute fpc with the verbose option (-va), it actually displays the search for a linker to use, which in my instance

Re: [fpc-pascal] Access fpc libraries with Java ?

2014-03-31 Thread Alan Krause
Here is a somewhat dated version of JNI.pas http://pastebin.com/DR3px8GT for FPC which might help you out. Alan On Mon, Mar 31, 2014 at 6:44 AM, fredvs fi...@hotmail.com wrote: now the last obstacle : Callback procedures... Hum, i do not find why it is not working ;-( I follow jni c

Re: [fpc-pascal] Access fpc libraries with Java ?

2014-03-31 Thread Alan Krause
I have absolutely *no* idea where I got it - only that it works as advertised. Alan -- Alan L. Krause jr.al...@shermanloan.com*Manager of Software Development*Voice: (760) 634-1700Sherman and Associates, Inc. http://www.shermanloan.com/Fax: (760) 634-1992 On Mon,

Re: [fpc-pascal] mORMot

2014-12-01 Thread Alan Krause
I have used one specific part of it for PDF generation, and have no complaints. Alan -- Alan L. Krause jr.al...@shermanloan.com*Manager of Software Development*Voice: (760) 634-1700Sherman and Associates, Inc. http://www.shermanloan.com/Fax: (760) 634-1992 On Mon,

[fpc-pascal] Loss of precision when using math.Max()

2018-06-29 Thread Alan Krause
) = 27499.4900 --- end output --- I am guessing that the integer value of zero is causing the wrong overloaded function to be called? I was able to solve the problem in my code by replacing the 0 with 0.0. Thanks, Alan -- Alan Krause *President @ Sherman & Associates, Inc.* Office: (760) 634-

Re: [fpc-pascal] FPC Lambda Runtime

2019-05-08 Thread Alan Krause
Michael, Permission granted. After using FPC to produce our first Windows 64-bit library, and then using it to produce Linux libraries, I am happy to contribute something back. Cheers, Alan On Wed, May 8, 2019 at 2:22 PM Michael Van Canneyt wrote: > > > On Wed, 8 May 2019, Alan Kra

[fpc-pascal] FPC Lambda Runtime

2019-05-08 Thread Alan Krause
FPC Community, Over the weekend I looked into AWS Lambda function custom runtimes, with the hope of being able to create one using Free Pascal. I'm happy to say that I have it up and running, and it produces a very small and quick runtime perfect for AWS. For sample code, please take at look at

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Alan Krause
I'd recommend that you also list what license each is licensed under, as that can be an extremely large deciding factor in whether or not a given implementation can even be considered. Alan On Fri, Aug 30, 2019 at 1:19 AM Anthony Walter wrote: > I've posted a new page that tests the speed and

[fpc-pascal] Loss of precision with the overloaded Max() function

2024-03-29 Thread Alan Krause via fpc-pascal
An issue recently popped up that I thought I'd bring up as a potential issue. In short, if you call the Max() function with an integer and a double parameter (such as d := Max( 0, d ) ), then fpc appears to be using the Max( single, single ) overloaded function instead of Max( double, double ).