Re: [fpc-pascal] Commercial support for Lazarus/FPC

2012-04-21 Thread Tomas Hajny
On 21 Apr 12, at 17:31, Sven Barth wrote: > On 21.04.2012 12:12, denisgolovan wrote: > > Hi all > > > > I am considering to subscribe to commercial support in FPC/Lazarus, but I > > don't have a clear picture what actually support is :) > > I am looking at http://www.lazarussupport.com/lazarus/Sup

Re: [fpc-pascal] Re: Program without window but messages

2012-04-25 Thread Tomas Hajny
On Wed, April 25, 2012 17:49, Jürgen Hestermann wrote: > leledumbo schrieb: > > You need to call Application.Initialize prior to anything if you want > to use > > LCL features (including its dialogs). > > Is "ShowMessage" part of the LCL? I thought that it comes with Free > Pascal directly > beca

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread Tomas Hajny
On Fri, May 4, 2012 17:44, dhkblas...@zeelandnet.nl wrote: > On 4 mei '12, michael.vancann...@wisa.be wrote: >> On Fri, 4 May > 2012, michael.vancann...@wisa.be [3]wrote: >> >>> On Fri, 4 May 2012, > dhkblas...@zeelandnet.nl [1]wrote: >>> I'm creating a script to be > executed by instantfpc wh

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread Tomas Hajny
On Fri, May 4, 2012 18:44, Darius Blaszyk wrote: > On May 4, 2012, at 6:12 PM, Tomas Hajny wrote: >> On Fri, May 4, 2012 17:44, dhkblas...@zeelandnet.nl wrote: >>> On 4 mei '12, michael.vancann...@wisa.be wrote: >>>> On Fri, 4 May >>> 2012, michael.vanca

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: > On Fri, 4 May 2012, Mattias Gaertner wrote: >> On Fri, 04 May 2012 17:22:16 +0200 >> dhkblas...@zeelandnet.nl wrote: >> >>> >>> >>> I'm creating a script to be executed by instantfpc when I noticed >>> that paramstr(0) does not reflect the loc

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Fri, May 4, 2012 21:58, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> 1) Find the first alphabetic character after the first line (which is >> already processed/skipped by InstantFPC anyway) while ignoring all >> whitespaces and possible com

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 14:13, Mattias Gaertner wrote: > On Sat, 5 May 2012 14:02:12 +0200 (CEST) > "Tomas Hajny" wrote: >> On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: >> > On Fri, 4 May 2012, Mattias Gaertner wrote: >> >> On Fri, 04 May 2012 17

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 14:08, Jonas Maebe wrote: > On 05 May 2012, at 14:02, Tomas Hajny wrote: > >> My proposal is platform independent (i.e. it will work also under Win32, >> OS/2, etc., without any changes). Your proposal probably requires >> starting >> the compiled

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On 5 May 12, at 14:20, Mattias Gaertner wrote: > On Sat, 5 May 2012 14:07:01 +0200 (CEST) > "Tomas Hajny" wrote: > > > On Fri, May 4, 2012 21:58, Marco van de Voort wrote: > > > In our previous episode, Tomas Hajny said: > > >> 1) Find the first al

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Tomas Hajny
On Mon, May 7, 2012 12:21, Mattias Gaertner wrote: > On Sat, 5 May 2012 15:04:05 +0200 (CEST) > "Tomas Hajny" wrote: >> On Sat, May 5, 2012 14:13, Mattias Gaertner wrote: . . >> > ExecuteProcess is only a simple utility function. >> > All posix pl

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Tomas Hajny
On Mon, May 7, 2012 14:26, Mattias Gaertner wrote: > On Mon, 7 May 2012 13:34:50 +0200 (CEST) "Tomas Hajny" wrote: >> 54 lines for WinXX, 144 for OS/2 and 278 for GO32v2 (all without the >> additional platform specific implementation for changing the passed >> envir

Re: [fpc-pascal] 2.6.0 for Solaris? And other questions

2012-05-09 Thread Tomas Hajny
On Wed, May 9, 2012 16:14, microc...@zoho.com wrote: > Sorry if this is a duplicate. I sent it from my phone yesterday but it has > not shown up yet, possibly due to the html issue. > > I was looking to try FPC and I downloaded the Linux version. I saw the > latest release isn't available for Solar

Re: [fpc-pascal] Subject: Re: 2.6.0 for Solaris? And other questions

2012-05-09 Thread Tomas Hajny
On Wed, May 9, 2012 18:26, microc...@zoho.com wrote: > From: "Tomas Hajny" > >>> Do you guys plan on releasing the 2.6.0 version on Solaris and is there >>> a timeframe? Do you plan on continuing to support Solaris? I would be >>> interested in runnin

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 08:45, Sven Barth wrote: > Am 09.05.2012 20:19, schrieb microc...@zoho.com: There are no binaries provided by my distribution. It's Slackware! But the question was, was it really necessary to use such a recent glibc? >> >>> It's a matter of what the libc version happe

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 13:22, microc...@zoho.com wrote: . . > Sun makes awfully nice boxes and Solaris is a very nice development > platform. I hope the guys will keep FPC going on Solaris. There are many > Solaris 10 on Sun fans. . . FPC support of individual platforms depends on availability o

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 15:20, microc...@zoho.com wrote: > On Thu, 10 May 2012 14:07:47 +0200 (CEST) "Tomas Hajny" wrote: >> On Thu, May 10, 2012 13:22, microcode wrote: > >> > Sun makes awfully nice boxes and Solaris is a very nice development >> > platform

Re: [fpc-pascal] Setting string to be UnicodeString by default

2012-05-15 Thread Tomas Hajny
On Tue, May 15, 2012 15:10, Marcos Douglas wrote: > On Tue, May 15, 2012 at 6:16 AM, Jonas Maebe > wrote: >> Mattias Gaertner wrote on Tue, 15 May 2012: >>> On Tue, 15 May 2012 10:43:19 +0200 >>> Jonas Maebe wrote: >>> It is not possible in FPC 2.6.x. Wth the svn trunk version, you can

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 10:11, dhkblas...@zeelandnet.nl wrote: Hi, > I have a simple application that uses glut and opencv. > However as soon as I add the opencv wrapper unit to the uses clause I > get: > > video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" > found > > The compiler d

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 11:07, dhkblas...@zeelandnet.nl wrote: > Second try. My previous email with attachement got blocked > probably. I will send the files now in two emails. Just put everything > together in one folder. First, I'd recommend renaming your main program from video.pp to something

Re: [fpc-pascal] Re: Handling with sources and exebutables with different names

2012-05-18 Thread Tomas Hajny
On Thu, May 17, 2012 21:09, luciano de souza wrote: > Actually, there are no errors. > > Using cmd.exe on Windows 7 and FPC 2.6.0, I did: > > fpc test.pas -oindex.cgi > > I got test.exe and no errors are raised. Please add option -s (i.e. 'fpc -s test.pas -oindex.cgi') and post content of the gene

Re: [fpc-pascal] Unicodestrings and Assign(File)

2012-05-19 Thread Tomas Hajny
On Sat, May 19, 2012 13:12, JĂźrgen Hestermann wrote: . . > 1.) The 2 fundamental file types filerec and textrec (for standard files > and > text files) are defined in > fpc\fpc\rtl\inc\filerec.inc and > fpc\fpc\rtl\inc\textrec.inc > Both differ only by some buffer structures at the end but share

Re: [fpc-pascal] Unicodestrings and Assign(File)

2012-05-20 Thread Tomas Hajny
On Sun, May 20, 2012 14:40, Jürgen Hestermann wrote: > In "fpc\rtl\inc\file.inc" (and fpc\fpc\rtl\inc\text.inc) the declaration > of "Assign" > uses the generic "String" type for the file name. I think this can be > AnsiString too, so it may be longer than 255 characters. > But the assignment to th

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread Tomas Hajny
On Tue, June 12, 2012 18:04, Sven Barth wrote: > Am 12.06.2012 15:20 schrieb "kyan" : . . >> The problem is that function >> GetModuleName() is stubbed out in WinCE (and Linux): >> >> unit SysUtils.inc; >> >> function GetModuleName(Module: HMODULE): string; >> begin >> {$ifdef MSWINDOWS} >> SetL

Re: RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-13 Thread Tomas Hajny
On Wed, June 13, 2012 07:37, alrieckert wrote: > alrieckert wrote >> >> Please just make sure about your starting address for the flash. I'm >> using >> the STM32F103CBT6 and the start address is 0x0800 and not 0x080 >> > I've just verified it. The starting address for the flash should be >

Re: RE : [fpc-pascal] Variable alignment in arm-embedded

2012-06-13 Thread Tomas Hajny
On Wed, June 13, 2012 12:55, alrieckert wrote: > Tomas Hajny-2 wrote >> >> Sorry for a possibly stupid question, but is this offset >> (conceptionally) >> comparable to the -WB option used for some other targets? If so, it >> might >> make sense to extend i

Re: [fpc-pascal] Re: Is TEventobject obsolete?

2012-06-13 Thread Tomas Hajny
On 13 Jun 12, at 18:33, Victor Campillo wrote: > El 11/06/2012 10:52, Victor Campillo escribió: Hi, > > I have a doubt about Basicevent and RTLevent, according to the > > documentation Basicevent is obsolete and I should use RTLevent > > instead. I use most of the time Rtlevent but now I need to

Re: [fpc-pascal] How can a project determine if it's using cmem?

2012-07-04 Thread Tomas Hajny
On Wed, July 4, 2012 11:32, Mark Morgan Lloyd wrote: > When building a shared library, I'm putting a (function that returns a) > magic number into both the library and the calling program. This returns > an integer, and allows the program and library to check their exposed > APIs without risk. > >

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Tomas Hajny
On Tue, August 14, 2012 15:15, michael.vancann...@wisa.be wrote: > On Tue, 14 Aug 2012, Reinier Olislagers wrote: >> On 14-8-2012 14:40, michael.vancanneyt-0is9kj9s...@public.gmane.org >> wrote: >>> On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 13:50, michael.vancanneyt-0is9

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Tomas Hajny
On Tue, August 14, 2012 15:47, michael.vancann...@wisa.be wrote: > On Tue, 14 Aug 2012, Tomas Hajny wrote: >> On Tue, August 14, 2012 15:15, michael.vancann...@wisa.be wrote: >>> On Tue, 14 Aug 2012, Reinier Olislagers wrote: >>>> On 14-8-2012 14:40, michael.vancanney

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-15 Thread Tomas Hajny
On Wed, August 15, 2012 04:07, waldo kitty wrote: > On 8/14/2012 09:47, michael.vancann...@wisa.be wrote: >> On Tue, 14 Aug 2012, Tomas Hajny wrote: >>> Actually, the file is more a configuration file for fpdoc than its >>> documentation, isn't it? Fr

Re: [fpc-pascal] Possible RTFM question: is there something like an IsRootPath() function?

2012-08-20 Thread Tomas Hajny
On Mon, August 20, 2012 16:28, Mattias Gaertner wrote: > On Mon, 20 Aug 2012 14:38:05 +0200 > Sven Barth wrote: > >> Am 20.08.2012 14:05, schrieb JĂźrgen Hestermann: >> > Am 2012-08-20 00:17, schrieb Bart: >> > > Does fpc have a function that determines if a given paths is the >> root >> > > (e.

Re: [fpc-pascal] Easier fpmake

2012-08-22 Thread Tomas Hajny
On 22 Aug 12, at 19:03, Michael Van Canneyt wrote: Hi Michael, > As you know, FPC uses fpmake to compile everything in packages. > > As I've been steadily improving fcl-passrc for fpdoc, > (it's now almost on par with the compiler, barring errors and assembler > statetements), > I created a

Re: [fpc-pascal] Linker speed

2012-08-24 Thread Tomas Hajny
On Fri, August 24, 2012 10:52, Rainer Stratmann wrote: > I try to be independend from lazarus and wrote a configure file which I > then > pass to fpc at the console. > > Now suddenly the linker is noteable slower. > In both modes (from lazarus and from console). > > Which reason can it have? Which

Re: [fpc-pascal] Linker speed

2012-08-24 Thread Tomas Hajny
On Fri, August 24, 2012 11:11, Rainer Stratmann wrote: > Am Friday 24 August 2012 11:00:35 schrieb Tomas Hajny: >> On Fri, August 24, 2012 10:52, Rainer Stratmann wrote: >> > I try to be independend from lazarus and wrote a configure file which >> I >> > the

Re: [fpc-pascal] Re: Identifier not found "result"

2012-08-30 Thread Tomas Hajny
On Thu, August 30, 2012 15:08, Rainer Stratmann wrote: > Am Thursday 30 August 2012 14:39:06 schrieb leledumbo: >> Since this behavior is documented, one should read the documentation >> first: >> http://www.freepascal.org/docs-html/ref/refse76.html > > There is much documentation spread over many

Re: [fpc-pascal] Re: Identifier not found "result"

2012-08-30 Thread Tomas Hajny
On Thu, August 30, 2012 17:14, Rainer Stratmann wrote: > Am Thursday 30 August 2012 16:50:30 schrieb Tomas Hajny: >> > The scenario occures when someone starts freepascal as I already >> > documented in >> > my first E-Mail. >> > >> > When someone

Re: [fpc-pascal] FPC x86+x64 win trunk failing to build (using fpcup): 2 different errors

2012-09-20 Thread Tomas Hajny
On Thu, September 20, 2012 17:30, Reinier Olislagers wrote: > On 20-9-2012 17:25, Jonas Maebe wrote: >> >> On 20 Sep 2012, at 17:18, Reinier Olislagers wrote: >> >>> Would looking into the actual fpmake bug make sense (i.e. is it doable >>> for mere mortals like me?) Where would I look? >> >> It's

Re: [fpc-pascal] Assigning pointer address

2012-10-01 Thread Tomas Hajny
On Mon, October 1, 2012 10:43, dhkblas...@zeelandnet.nl wrote: Hi, > I want to ask if casting an integer to a pointer is valid > over all platforms. See below: > > p: PInteger; > v: longint; > > [...] > > v := > 4235423; > > p := PInteger(v); > > Of course, the value of the pointer > adress may

Re: [fpc-pascal] Re: Assigning pointer address

2012-10-01 Thread Tomas Hajny
On Mon, October 1, 2012 14:14, michael.vancann...@wisa.be wrote: > On Mon, 1 Oct 2012, Reinier Olislagers wrote: >> On 1-10-2012 13:55, dhkblaszyk-47ckw973qwsgtviba+r...@public.gmane.org >> wrote: >>> On 1 okt '12, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 1 Oct 2012, dhkb

Re: [fpc-pascal] windres not required/provided by Debian 2.6.0 FPC

2012-10-08 Thread Tomas Hajny
On Mon, October 8, 2012 08:21, Reinier Olislagers wrote: Hi Reinier, > While getting a Jenkins continuous integration server going > > On Debian 6 (Squeeze), I installed just enough packages to get a > compiler and get a compile job going . . > The manual mentions that the FreePascal distr

Re: [fpc-pascal] Replacing line in big text file

2012-10-08 Thread Tomas Hajny
On Mon, October 8, 2012 17:00, Guionardo Furlan wrote: > 2012/10/8 Krzysztof : Hi, >> I must modify some one line (mostly first line) in big text file (~10 >> 000 lines). Doing this by loading and saving file using TStringList >> takes a long time (and amount of RAM). Exists any faster way based

Re: [fpc-pascal] Re: windres not required/provided by Debian 2.6.0 FPC

2012-10-08 Thread Tomas Hajny
On 8 Oct 12, at 18:31, Reinier Olislagers wrote: > On 8-10-2012 9:12, Tomas Hajny wrote: > > On Mon, October 8, 2012 08:21, Reinier Olislagers wrote: Hi Reinier, > >> While getting a Jenkins continuous integration server going > >> > >> On Debian

Re: [fpc-pascal] Replacing line in big text file

2012-10-08 Thread Tomas Hajny
On 8 Oct 12, at 18:43, Krzysztof wrote: > Thanks Tomas, I'll look at your example Well, the provided URL contains just my unit, not the example for using it. I'll send you the example privately off list. Tomas ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] windres not required/provided by Debian 2.6.0 FPC

2012-10-10 Thread Tomas Hajny
On Wed, October 10, 2012 04:16, waldo kitty wrote: > On 10/8/2012 03:12, Tomas Hajny wrote: >> The manual forgets to mention that this is only the case on Win32 (where >> the various GNU tools and utilities are included with the FPC >> installation >> package). I

Re: [fpc-pascal] collection memory usage...

2012-10-27 Thread Tomas Hajny
On Sat, October 27, 2012 21:33, waldo kitty wrote: > i'm trying to figure out the best numbers to use for setting up a sorted > collection... i'm just not understanding the numbers i'm getting from the > heapdump unit at the end of the run... > > i have two collections (/details at the end/)... th

Re: [fpc-pascal] collection memory usage...

2012-10-27 Thread Tomas Hajny
On Sat, October 27, 2012 22:56, waldo kitty wrote: > On 10/27/2012 16:23, Tomas Hajny wrote: > [trim] >>> *if i'm reading this properly*, what is confusing me is the first one >>> allocates less memory blocks and uses more heap whereas the second one >>> alloc

Re: [fpc-pascal] Xcode

2012-10-29 Thread Tomas Hajny
On Mon, October 29, 2012 10:43, Jonas Maebe wrote: > On 29 Oct 2012, at 05:15, 印場 乃亜 wrote: . . > You don't have to make any symlinks. You have to follow the > instructions on the download page: > * at the top of http://www.freepascal.org/down/i386/macosx-netherlands.var > * at the bottom

Re: [fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-30 Thread Tomas Hajny
On Tue, October 30, 2012 12:49, ik wrote: > On Tue, Oct 30, 2012 at 2:29 AM, Jeppe GrĂŚsdal Johansen > wrote: >> Den 30-10-2012 01:04, ik skrev: >>> >>> Hello, >>> >>> There are many places such as GitHub, Google Code, Sourceforge etc, >>> that hosts a lot of open source projects, libraries etc fo

Re: [fpc-pascal] Why opening a file for write fails in fpc 2.6?

2012-11-01 Thread Tomas Hajny
On Thu, November 1, 2012 00:24, Giuliano Colla wrote: > Il 31/10/2012 14:45, Jonas Maebe ha scritto: >> On 31 Oct 2012, at 14:35, Giuliano Colla wrote: . . >>> but if it doesn't it's a Delphi bug, I'd say. What are exceptions >>> there for, if not for telling you that what you requested cannot be

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread Tomas Hajny
On Mon, November 5, 2012 11:49, ik wrote: Hello Ido, > As I understand, AnsiString and AnsiChar contain the environment type > of string (it can be ISO8859x, utf-8 etc...). > If that so, how can I know the size (in bytes) of AnsiChar ? As far as I understand it, AnsiChar is always 1 byte, i.e.

Re: [fpc-pascal] working witg UCS4Char

2012-11-09 Thread Tomas Hajny
On Fri, November 9, 2012 17:01, ik wrote: > On Fri, Nov 9, 2012 at 5:16 PM, Jonas Maebe > wrote: >> On 09 Nov 2012, at 16:06, ik wrote: >> >> And if I do it without the hash, then it's just a number >> >> >> UCS4Char is in fact just a number, and UCS4String is just a dynamic >> array of >> cardina

Re: [fpc-pascal] working witg UCS4Char

2012-11-09 Thread Tomas Hajny
On Fri, November 9, 2012 17:38, ik wrote: > On Fri, Nov 9, 2012 at 6:12 PM, Tomas Hajny wrote: >> On Fri, November 9, 2012 17:01, ik wrote: >>> On Fri, Nov 9, 2012 at 5:16 PM, Jonas Maebe >>> wrote: >>>> On 09 Nov 2012, at 16:06, ik wrote: >>>&

Re: [fpc-pascal] working witg UCS4Char

2012-11-10 Thread Tomas Hajny
On 10 Nov 12, at 0:28, ik wrote: > On Fri, Nov 9, 2012 at 6:56 PM, Tomas Hajny wrote: > > On Fri, November 9, 2012 17:38, ik wrote: > >> On Fri, Nov 9, 2012 at 6:12 PM, Tomas Hajny wrote: > >>> On Fri, November 9, 2012 17:01, ik wrote: . . > >>>>

Re: [fpc-pascal] synapse and OS/2

2012-11-11 Thread Tomas Hajny
On 10 Nov 12, at 20:29, waldo kitty wrote: > before i get too much further along on this project, i guess i should ask > about > the ssleay32 and libeay32 libraries on OS/2... > > i'm developing this project on windows with the ultimate goal of copying the > source files over to my OS/2 (eCS2

Re: [fpc-pascal] fpc: -vm switch

2012-11-19 Thread Tomas Hajny
On Mon, November 19, 2012 13:54, Bart wrote: > On 11/18/12, Jonas Maebe wrote: > >>> Using fpc 2.6.0 >>> Does 2.6.0 handle -vm switch, and how is it used? >> >> As it is described on the fpc help page (fpc -h, or fpc without any >> parameters) > > Am I missing something? Yes, the last line. ;-)

Re: [fpc-pascal] fpc: -vm switch

2012-11-19 Thread Tomas Hajny
On Mon, November 19, 2012 16:43, Mark Morgan Lloyd wrote: > Jonas Maebe wrote: > >> To find out the message number of a particular message, compile with >> -vq. And you can only suppress warnings/notes/hints with that switch. > > Noting somebody's recent comment about using -Xs- when building the >

Re: [fpc-pascal] Re: A simple HTTP request with FPC standard units

2012-11-25 Thread Tomas Hajny
On Sun, November 25, 2012 13:21, Reinier Olislagers wrote: > On 24-11-2012 17:30, silvioprog wrote: >> 2012/11/24 Luciano de Souza >>> >>> Contributions are welcome. It is mostly lack of time that keeps us >>> from implementing these things. >>> As far as I know, SMTP is a fairly simple

Re: [fpc-pascal] problem with command line defines??

2012-11-28 Thread Tomas Hajny
On Wed, November 28, 2012 19:39, Jonas Maebe wrote: > On 28 Nov 2012, at 19:22, waldo kitty wrote: > >> on OS/2 eCS2 i have fpc 2.6.0 release installed... i've been working >> with a library and needed to create a define so that some code would be >> compiled that otherwise is not... since i have t

Re: [fpc-pascal] Oracle driving me crazy - please provide dried frog pills[1]

2012-12-03 Thread Tomas Hajny
On Mon, December 3, 2012 16:44, Reinier Olislagers wrote: > Been fiddling with the Oracle connector. > > This: > using the scott schema on Oracle 10g, this works fine in my JDBC query > GUI and in sql*plus: > select * from scott.emp where JOB='CLERK'; > > However, in code (FPC trunk x86, Windows),

Re: [fpc-pascal] converting a TP/BP library to FPC

2012-12-06 Thread Tomas Hajny
On Thu, December 6, 2012 01:25, waldo kitty wrote: > > w2k with FPC 2.6.0 release using lazarus 1.1 only as an editor... no GUI > stuffings at all... i'm using -Mtp in the project options... > > i have finally gotten around to trying to convert the old FTN/BBS MKSMG > library > to FPC... it was wri

Re: [fpc-pascal] converting a TP/BP library to FPC

2012-12-06 Thread Tomas Hajny
On Thu, December 6, 2012 08:46, Mark Morgan Lloyd wrote: > waldo kitty wrote: >> w2k with FPC 2.6.0 release using lazarus 1.1 only as an editor... no GUI >> stuffings at all... i'm using -Mtp in the project options... >> >> i have finally gotten around to trying to convert the old FTN/BBS MKSMG >>

Re: [fpc-pascal] Indexing files

2012-12-16 Thread Tomas Hajny
On 16 Dec 12, at 18:34, Michael Van Canneyt wrote: > On Sun, 16 Dec 2012, Marco van de Voort wrote: > > > In our previous episode, Michael Van Canneyt said: > >> The inotify calls are available on Linux. It tells you when a file/folder > >> changes: > >> > >> function inotify_init: cint; > >> fun

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-21 Thread Tomas Hajny
On Tue, December 18, 2012 14:34, John wrote: > On 12/18/2012 07:35 PM, michael.vancann...@wisa.be wrote: > > > >> MySQL, Firebird, MS-access, sqlite simply do not have schema as Oracle >> has. In PostGres or MS-SQL it's optional, to my knowledge (not an >> expert). >> > > For the record, in Postgr

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-21 Thread Tomas Hajny
On Tue, December 18, 2012 09:35, michael.vancann...@wisa.be wrote: > On Tue, 18 Dec 2012, John wrote: > >>> TSchemaOption = (soPrependSchemaName,soIncludeSystemObjects); >>> TSchemaOptions = set of TSchemaOption; >>> >>> Procedure GetTableNames(List : TStrings; Options : TSchemaOptions = >>> []); >

Re: [fpc-pascal] Re: GetTableNames in TSQLConnection / Postgresql

2012-12-21 Thread Tomas Hajny
On Fri, December 21, 2012 11:59, Reinier Olislagers wrote: > On 18-12-2012 10:49, Tomas Hajny wrote: >> On Tue, December 18, 2012 09:35, >> michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: >>> On Tue, 18 Dec 2012, John wrote: >>>> you can't! That

Re: [fpc-pascal] Use of abstract classes

2013-01-09 Thread Tomas Hajny
On Tue, January 8, 2013 23:43, Paul Ishenin wrote: > 09.01.13, 6:26, Michael Fuchs пишет: > >> What is the best way for a discussion on this? Should I create a feature >> request in bugtracker? > > First create a desired implementation with a patch. Well, I may overlook something, of course, but I

Re: [fpc-pascal] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Tomas Hajny
On Tue, January 15, 2013 13:12, Mark Morgan Lloyd wrote: > Eric Kom wrote: >> On 15/01/2013 13:50, Mark Morgan Lloyd wrote: >>> Eric Kom wrote: On 15/01/2013 12:48, Mark Morgan Lloyd wrote: > Eric Kom wrote: >> Good day, >> >> After tried to build the fpcbuild.zip version, by e

Re: [fpc-pascal] make: -iVSPTPSOTO: Command not found

2013-01-15 Thread Tomas Hajny
On 15 Jan 13, at 18:58, Eric Kom wrote: > On 15/01/2013 17:40, Mark Morgan Lloyd wrote: > > Mark Morgan Lloyd wrote: > > > >>> runnable fpc, you mean fpc-2.6.0 installed? > export PP=/usr/local/bin/ppc386 > make OPT='-O- -gl -Xs-' all > > > > Apologies for my poor threading here, but a me

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-22 Thread Tomas Hajny
On 22 Jan 13, at 21:31, Gerhard Scholz wrote: > Question: what's the reason for this error? > > Linking .\read.exe > Error: Failed reading coff file, illegal reloctype $ while reading > .\U_UNIDAT > > The program compiles wonderfully with VirtualPascal; I wanted to recompile > it with FPC.

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-22 Thread Tomas Hajny
On 23 Jan 13, at 0:01, Gerhard Scholz wrote: > The files are completed compiled with FPC, no renaming of VPascal object > files. > > The only explanation I have that it must have to do with the size of the > file; the .o has 8 MB and just defines some CONST and VAR structures, no > code. Assu

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-01-23 Thread Tomas Hajny
On Wed, January 23, 2013 14:38, Koenraad Lelong wrote: Hi, > I was looking into the latest fpc to see if there were updates about > arm-embedded since my last version. Indeed there are ! > So I downloaded it (svn 23505) and tried to compile it, following the > wiki (http://wiki.freepascal.org/TA

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-24 Thread Tomas Hajny
On Wed, January 23, 2013 23:56, Gerhard Scholz wrote: Hello, > thanks for the hint with the -Xe parameter (the external linker is damned > slow!), now it compiles. . . I'm glad that the external linker helped. Indeed, slowness of the external linker is one of reasons for using the internal on

Re: [fpc-pascal] Sybil Library - OS/2 and other INF e-books

2013-01-24 Thread Tomas Hajny
On Thu, January 24, 2013 18:03, Graeme Geldenhuys wrote: Hi Graeme, > I know there are still a few of you developing for the OS/2 platform. So > I made available on my server some INF e-books. They originally came > from the Sybil Library project. > > There are also some Object Pascal and OOP re

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-25 Thread Tomas Hajny
n with your existing username and password. Hope this helps Tomas > - Original Message - > From: "Tomas Hajny" > To: "FPC-Pascal users discussions" > Sent: Thursday, January 24, 2013 9:32 AM > Subject: Re: [fpc-pascal] Linker Error: what does this mean?

Re: [fpc-pascal] Re: Sybil Library - OS/2 and other INF e-books

2013-01-26 Thread Tomas Hajny
On Fri, January 25, 2013 11:00, Reinier Olislagers wrote: > On 24-1-2013 18:55, Tomas Hajny wrote: >> On Thu, January 24, 2013 18:03, Graeme Geldenhuys wrote: >>> I know there are still a few of you developing for the OS/2 platform. >>> So >>> I made available

Re: [fpc-pascal] Link for fpc 2.6.1 and 2.7 manual

2013-01-29 Thread Tomas Hajny
On Tue, January 29, 2013 06:27, Eric Kom wrote: Hello, > Please where can I fund a link for fpc 2.6.1 and 2.7 manual? Since 2.6.1 and 2.7.1 versions are just "work in progress" versions and their snapshots, the documentation is available just in our SVN. In particular, the fpcdocs repository co

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread Tomas Hajny
On Sun, February 17, 2013 18:10, ik wrote: . . > Yes to solve everything but keep it for yourself :P You (and many others) can use it (and do so as seen from download statistics, bug reports, etc.), right? . . > Should I continue, or do you get my point ? . . Better not with this discussi

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-18 Thread Tomas Hajny
On Mon, February 18, 2013 01:40, Rainer Stratmann wrote: > Am Sunday 17 February 2013 18:45:50 schrieb Florian Klämpfl: >> Am 17.02.2013 18:10, schrieb ik: >> > Nice, Pascal is at the same level of usage and exposure as gcc, Linux >> > kernel and llvm, >> >> And you think some fancy webpage filled

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread Tomas Hajny
On Mon, February 25, 2013 11:40, Sven Barth wrote: > On 25.02.2013 09:30, Michael Van Canneyt wrote: >> On Mon, 25 Feb 2013, Sven Barth wrote: . . >>> Today .pp is used for example for FPC's test files (also for new ones) >>> out if habit. >> >> I think you are under a misapprehension. It is not

Re: [fpc-pascal] catch segfaults

2013-03-14 Thread Tomas Hajny
On Thu, March 14, 2013 01:48, Xiangrong Fang wrote: > 2013/3/14 Ewald >> Once upon a time, Xiangrong Fang said: >> > Is it possible to use try...except to catch SIGSEGV? >> I don't know if it is possible, but how about using fpSignal()? See >> http://www.freepascal.org/docs-html/rtl/baseunix/fpsig

Re: [fpc-pascal] catch segfaults

2013-03-14 Thread Tomas Hajny
On Thu, March 14, 2013 09:23, Xiangrong Fang wrote: > 2013/3/14 Mattias Gaertner >> On Thu, 14 Mar 2013 07:05:21 +0800 >> Xiangrong Fang wrote: >> >> > Is it possible to use try...except to catch SIGSEGV? >> >> yes. The exception class is EAccessViolation. > > I am sorry that was what I thought,

Re: [fpc-pascal] Weird absence of compilation error

2013-03-21 Thread Tomas Hajny
On Thu, March 21, 2013 10:53, OBones wrote: Hello, > I'm using FPC 2.6.0 and have the following test program : > > program test; > > function Element: Double; > begin >Result := 4; > end; > > function Tmp: Double; > begin >Result := 10; + Element; > end; > > begin >WriteLn(Tmp); > en

Re: [fpc-pascal] HMAC_SHA1 and FPC

2013-03-23 Thread Tomas Hajny
On Sat, March 23, 2013 06:28, silvioprog wrote: Hi, > How to get HMAC_SHA1 using native functions of FPC? > > HMAC_SHA1: > http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA256.29 Doesn't package hash (included with FPC by default for all

Re: [fpc-pascal] HMAC_SHA1 and FPC

2013-03-23 Thread Tomas Hajny
On Sat, March 23, 2013 16:21, silvioprog wrote: > 2013/3/23 Tomas Hajny >> On Sat, March 23, 2013 06:28, silvioprog wrote: >> >> Hi, >> >> > How to get HMAC_SHA1 using native functions of FPC? >> > >> > HMAC_SHA1: >> > >>

Re: [fpc-pascal] Warning: "crti.o" and "crtn.o" not found

2013-03-28 Thread Tomas Hajny
On Thu, March 28, 2013 15:30, Anthony Walter wrote: > What is causing warnings for "crti.o" and "crtn.o" as described below? > > I just got the latest fpc and lazarus from svn, and after build everything > I wrote a "Hello World" Gtk2 test project on Ubuntu 12.04 (32 bit) with > the > following mes

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Tomas Hajny
On Tue, April 9, 2013 10:14, Mark Morgan Lloyd wrote: > waldo kitty wrote: . . >> diggin in, i note that it seems to use the system's uname function... >> but i think that is different than the command line "uname" or "uname >> -a" because none of my linux machine return their FQDN in this output

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Tomas Hajny
On Tue, April 9, 2013 19:51, waldo kitty wrote: > On 4/9/2013 04:24, Tomas Hajny wrote: . . >> Have you tried using unit netdb from package fcl-net? It doesn't support >> Windows (and some other platforms yet), but it should work for Unix >> targets. I believe that the

Re: [fpc-pascal] RE: 64 bit cross binutils on a 32 bit OS

2013-04-12 Thread Tomas Hajny
On Fri, April 12, 2013 17:45, waldo kitty wrote: > On 4/12/2013 02:44, leledumbo wrote: >>> can i compile an app with either one and then run that app natively on >> winwhatever /without/ having to install either cygwin or mingw? >> >> All Cygwin binaries depend on cygwin1.dll, so you must distribu

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Tomas Hajny
On 13 Apr 13, at 16:36, Sven Barth wrote: . . > This line (or a similar one) is needed only on systems where the thread > manager is not included in the system unit (e.g. not on Windows systems) ...or OS/2... ;-) Tomas ___ fpc-pascal maillist - fp

Re: [fpc-pascal] why connect is "deprecated"

2013-04-18 Thread Tomas Hajny
On Thu, April 18, 2013 13:46, Marco van de Voort wrote: > In our previous episode, Jonas Maebe said: . . >> > That would also make it possible to directly map socketerror to >> > getlastresult/fpgeterrno, instead of caching it in another threadvar. >> >> IIRC the problem with removing socketerror

Re: [fpc-pascal] Simple beep sound Linux

2013-04-24 Thread Tomas Hajny
On Wed, April 24, 2013 19:42, Rainer Stratmann wrote: > How to program a simple beep in Linux. > > Now I have a mainboard which has a speaker, but needs to program using the > sound device, I guess. Crt sound() does not work in this case. > > Is there another solution as easy as sound() in the crt

Re: [fpc-pascal] Windows backslash

2013-04-28 Thread Tomas Hajny
On 28 Apr 13, at 21:03, Sven Barth wrote: . . > As a sidenote: I didn't know up to now that the prompt in the NT shell > can also be modified O.o . . Setting the PROMPT variable works for all DOS-like platforms (MS-DOS and compatibles, OS/2 and MS Windows NT+ and also replacement shells lik

Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-01 Thread Tomas Hajny
On Wed, May 1, 2013 11:30, Florian Klämpfl wrote: > Am 30.04.2013 20:39, schrieb Graeme Geldenhuys: >> Hi, >> >> I just tried to update one of my Windows VM with the latest released >> FPC. To my surprise there is no Win64 release for FPC 2.6.2 on >> SourceForge? I only found a 32-bit cross-compile

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-03 Thread Tomas Hajny
On Mon, June 3, 2013 18:09, Ewald wrote: > Once upon a time, Anthony Walter said: >> I am trying to come up with an embedded binary resource system and was >> considering placing data in object files when I found this question on >> stack overflow: >> >> http://stackoverflow.com/questions/4158900

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-09 Thread Tomas Hajny
On Tue, July 9, 2013 11:13, Jonas Maebe wrote: > On 09 Jul 2013, at 11:02, Noah Silva wrote: . . >> 3. Is there a way to set the output to UTF8 so I can just write out >> UTF8 >> and be done with it? > > I don't know. There is code page 65001 for UTF-8, however I don't know since which version o

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-09 Thread Tomas Hajny
On Tue, July 9, 2013 12:40, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> >> and be done with it? >> > >> > I don't know. >> >> There is code page 65001 for UTF-8, however I don't know since which >> ver

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-09 Thread Tomas Hajny
On Tue, July 9, 2013 14:38, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> >> is >> >> like this. >> > >> > Keep in mind he is talking powershell, not cmd.exe >> >> I have no experience with powershell yet, but a

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-10 Thread Tomas Hajny
On Wed, July 10, 2013 10:30, Graeme Geldenhuys wrote: > On 2013-07-09 13:08, Tomas Hajny wrote: >>> Afaik Windows XP, but there might be font problems on console. >> I also thought about mentioning True Type fonts (like Lucida) being a > > > It's not so much

Re: [fpc-pascal] Re: Free pascal 1.0.6

2013-07-12 Thread Tomas Hajny
On Fri, July 12, 2013 17:29, Matúš Kudláč wrote: > I want to know if there are some stability problems with this version and > all of its parts(IDE, compiler, debugger). I mean problems like crashing, > freezing, Well, you haven't mentioned anything about the platform you plan to use, etc. In

Re: [fpc-pascal] Re: Free pascal 1.0.6

2013-07-12 Thread Tomas Hajny
On Fri, July 12, 2013 18:59, Matúš Kudláč wrote: > I plan to use windows xp professional 32bit. I.e. you plan to use the Win32 release and compile for the Win32 target, right? Just to make sure that you didn't have different plans like compiling for the GO32v2 target as an example... Tomas

  1   2   3   4   5   6   7   8   9   >