Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread Mark Morgan Lloyd
. This is what heavyweight database servers use solid state drives for. In any event, I think it's worth remembering that pipes etc. will always go through the operating system, so there's a limit to how much you can slim things. -- Mark Morgan Lloyd markMLl .AT. telemetry.c

[fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
tion every time the procedure's called. What, please, is the correct syntax to use in this sort of case? FPC 2.6.0 on Linux x86. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his emp

Re: [fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
f the problem, reverting to array of integer fixes the other but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
cobines wrote: 2012/4/22 Mark Morgan Lloyd : but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). You said you used DbgArray= array of integer then I assume this declaration? procedure ClrDebug(const panels: DbgArray); If s

Re: [fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 22 Apr 2012, Mark Morgan Lloyd wrote: cobines wrote: 2012/4/22 Mark Morgan Lloyd : but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). You said you used DbgArray= array of integer the

[fpc-pascal] Sending break on (Windows) serial comms

2012-04-24 Thread Mark Morgan Lloyd
aflow correctly. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/li

Re: [fpc-pascal] Sending break on (Windows) serial comms

2012-04-24 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Marco, I see you had a StackOverflow question on this a year or so ago. Did you ever get anywhere with it in practice? It was an idea to lower the overhead and improve the reliability of our serial protocol. (because

Re: [fpc-pascal] Sending break on (Windows) serial comms

2012-04-25 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Marco, I see you had a StackOverflow question on this a year or so ago. Did you ever get anywhere with it in practice? It was an idea to lower the overhead and improve the reliability of our

[fpc-pascal] Testing existence of a file at compilation time

2012-04-26 Thread Mark Morgan Lloyd
.freepascal.org/Lazarus_Documentation#Free_Pascal_Compiler_Documentation is still 2.2. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal mai

Re: [fpc-pascal] making FPC more code optimized

2012-04-29 Thread Mark Morgan Lloyd
ing conventions etc.) have settled down a lot since those days it should, in theory, no longer be an issue: but I suspect that many old prejudices remain. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's,

Re: [fpc-pascal] Reversing bit-order of byte

2012-05-03 Thread Mark Morgan Lloyd
to do this, but arm-assembler is new to me. I think I'd use a lookup table (making sure it's cacheable), particularly since what you're doing is going to be called frequently and you're likely to have much more than 64K memory. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

[fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-06 Thread Mark Morgan Lloyd
Has anybody used FPC to control ALSA on Linux? I need to filter a MIDI stream in real time, and handle transposition etc. If anybody knows of useful resources I'd appreciate any hints. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not th

Re: [fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-06 Thread Mark Morgan Lloyd
relevant. Can you remember which Pascal interface to the ALSA libraries you were using? I think I've seen two, but I've not yet checked to see whether they were actually minor variants of the same thing. On 2012/05/06 10:09 AM, Mark Morgan Lloyd wrote: Has anybody used FPC to cont

Re: [fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
Wimpie Nortje wrote: On 2012/05/06 05:49 PM, Mark Morgan Lloyd wrote: Wimpie Nortje wrote: I have used ALSA to record sound. It was some time ago, I think on Kubuntu 10.04 or so. I can send you some code I used but I have no idea whether it will work under newer Linux's Thanks, but

Re: [fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
and alsapas, and writing code that will support either if possible. If I could also code to support PortMidi that would be a bonus, but by no means essential: I'm trying to knock together a MIDI transposer for my own use, and testbed some techniques for another project. -- Mark Morgan L

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

2012-05-09 Thread Mark Morgan Lloyd
code-generation bugs that weren't fixed until a few months ago- the fixes are in 2.7.1 but haven't been backported. Having said that, 2.7.1 plus the trunk version of Lazarus work fine together for basic projects (there's things I don't routinely test, like databas

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

2012-05-09 Thread Mark Morgan Lloyd
ris 8 and 10), but I've got Slackware 12 IIRC on an E4500 since the Debian installer wouldn't work. Good machine for testing multithreaded stuff on account of the number of CPUs. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

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

2012-05-09 Thread Mark Morgan Lloyd
cated maintainer for that platform within the core team recently which is the reason why there are no official builds for Solaris for version 2.6.0. Mark Morgan Lloyd who already responded to your e-mail probably has the most experience with these targets at the moment. My main role is being a

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

2012-05-09 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Wed, 09 May 2012 16:10:06 + Mark Morgan Lloyd wrote: There is a directory for Solaris SPARC but it is empty. Is it possible to get 2.6.0 for Solaris SPARC? Thanks again. I've got a copy that I've built and run here, but I started off with an earli

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

2012-05-09 Thread Mark Morgan Lloyd
e heavy floating-point astronomical calculations that the problems became apparent. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

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

2012-05-10 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Wed, 09 May 2012 18:18:59 + Mark Morgan Lloyd wrote: My main role is being a thorn in the side of the core developers when something stops working :-) However I've previously offered to host a (not very fast) system here for compilation etc., and the

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

2012-05-10 Thread Mark Morgan Lloyd
an have 16x CPUs plus full I/O... in addition being a Xerox PARC design it has a certain pedigree ;-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

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

2012-05-10 Thread Mark Morgan Lloyd
g with all of those (with the exception of ARM Linux). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2012-05-10 Thread Mark Morgan Lloyd
east /attempts/ to separate OS- and CPU-specific code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] FPC and (minimal) telnet

2012-05-12 Thread Mark Morgan Lloyd
r it fails since the terminal type subcommand is not supported. If anybody else is using it (or if Ales is reading this) I'd be interested in any suggestions as to how best to add this facility (i.e. hardcoded internally, subcommands passed to a callback, etc.). -- Mark Morgan Lloyd markMLl .

Re: [fpc-pascal] Parsing parameters inside an interpreter

2012-05-14 Thread Mark Morgan Lloyd
ted quotes into something innocuous such as #$ff, then things are comparatively simple. In other cases use something like recursive descent, or investigate (p)yacc, (p)lex etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employe

Re: [fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-15 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: leledumbo wrote: http://sourceforge.net/projects/fpalsa/ http://sourceforge.net/projects/humus/ Thanks for those. Also http://perso.wanadoo.es/plcl/alsapas/alsapas-en.html so as I thought there appears to be (at least) two sets of ALSA bindings: fpalsa and alsapas

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

2012-05-23 Thread Mark Morgan Lloyd
normally have to set up the ppc symlink manually, irrespective or platform. I usually use two stages, e.g. ppcsparc -> ppcsparc-2.4.4 and ppcsparc-2.4.4 -> /usr/local/lib/fpc/2.4.4/ppcsparc, and in cases where I'm e.g. running Lazarus I tell it to use the "one in the middle

[fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
: Incompatible type for arg no. 2: Got "Open Array Of Variant", expected "Array Of Const" I was caught by this one years ago, and at the time the Delphi developers I was in contact with had no easy solution. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions ab

Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 25 May 2012, Mark Morgan Lloyd wrote: How should I put this? procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault); var scratch: widestring; begin scratch := Format

[fpc-pascal] Default value for an open array

2012-06-01 Thread Mark Morgan Lloyd
ameter of [] so that OutputWriteF('Test, no params\n') is valid? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Default value for an open array

2012-06-01 Thread Mark Morgan Lloyd
h the open array parameter passing an empty array, or an array initialised with whatever "default" values you want: Thanks, good point and adequate workaround. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Mark Morgan Lloyd
TFONT6x8; var fontTable: PFONT6x8; Force your absolute address into fontTable, then dereference to get at the content. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Re: [fpc-pascal] Strings and objects crossing dll boundaries

2012-06-14 Thread Mark Morgan Lloyd
s not have packages? Not knowing, can't say. Looking at the larger picture, I don't know how one best debugs operation as control is transferred from the main program into the shared library, bearing in mind that this might be important since the library might have all the tricky co

[fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
track the number of a particular object being allocated/deallocated), but distinct across program invocations (i.e. two programs using the same shared library wouldn't clash)? The discussion of libraries in ch16 of the Language reference guide is rather quiet on the semantics. -- Ma

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I'm currently tinkering with shared libraries, using cmem, mainly on Linux. In one case the main-program code is multithreaded, but so far I'm not moving data between threads inside the library. Am I correct in believing that unit-level variables in a shar

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
I've used such things in a Windows-style .exe so a loader/binder would know how to generate absolute code for an embedded system, but have never tried exploiting it with a "real" OS. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
, that a run-time (libdl) load of the library will fail. I'll keep on tinkering with this, I've not yet retrieved the exact error message and I'm interested in seeing what happens if the .so itself tries to use libdl to reopen the main program. -- Mark Morgan Lloyd markMLl .AT

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: >> Can such an alternative entry point in the main unit be called by >> a shared library, i.e. either resolved at load time or with the main >> binary reopened like a library? Or is the only way to pass a main- >> program entry point to a sh

Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-27 Thread Mark Morgan Lloyd
tely not trapped, and might be mis-reported. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

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

2012-07-04 Thread Mark Morgan Lloyd
} {$endif } -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2012-07-04 Thread Mark Morgan Lloyd
Tomas Hajny wrote: 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

Re: [fpc-pascal] StackTop and StackBottom are bogus in a Win32/64 Dll

2012-07-06 Thread Mark Morgan Lloyd
lways happy) which I think is consistent with what you're saying. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pa

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

2012-07-09 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Tomas Hajny wrote: 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 libra

Re: [fpc-pascal] SIGTERM and thread

2012-07-11 Thread Mark Morgan Lloyd
e inside a non-reentrant function, and so on). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] BUG:flush the serial in FPC2.6.0

2012-07-12 Thread Mark Morgan Lloyd
cated. Try SerFlushInput() which goes straight to the operating system. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.free

[fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
first? Problem appears to be in pqconnection.pp and I can see that it's recently been worked on. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
Also I've not tested recently on ARM Linux, but since SPARC Linux is OK it's unlikely to be a straight alignment error. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
Thomas Schatzl wrote: Hi, On Thu, 2012-07-12 at 09:47 +, Mark Morgan Lloyd wrote: Ludo Brands wrote: Builds OK on SPARC Solaris 10 using 2.6.0, but on running get a consistent error Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 4] 0x004b08b8 in

Re: [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Thomas Schatzl wrote on Thu, 12 Jul 2012: On Thu, 2012-07-12 at 09:47 +, Mark Morgan Lloyd wrote: Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 4] 0x004b08b8 in TPQCONNECTION__LOADFIELD (CURSOR=0xfad601a0, FIELDDEF=0xfad30f20, BUFFER=0xfa5f00bc

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
t/home/local-share/lazarus-trunk/components' make: *** [bigidecomponents] Error 2 -bash-3.00$ svn up At revision 37922. Anybody got any quick suggestions? "all" builds OK but I presume I need "bigide" because I've used the TQuery etc. on the form. -- Mark Morgan Lloyd ma

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used by registersqldb Fatal: Compilation aborted

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
kend but I also want the option of Firebird for "leaf" systems. Obviously the availability of the Firebird /server/ stuff is a completely different issue. I'd neither be surprised nor particularly sorry if that turned out to be x86-only. -- Mark Morgan Lloyd markMLl .AT. telem

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
e: *** [build-stamp.sparc-solaris] Error 2 Have I missed any stages out: applied patch successfully, make distclean, make all? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.A

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
u are getting a SIGSEGV, not a SIGBUS which is what you would get for an alignment problem. This problem no longer exists in 2.7.1 (21919 + Reinier's solarisdbtrunk2.diff). However, I've got an "unknown fieldtype" which I'll investigate and if necessary raise separ

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
so that it isn't forgotten. I'll do that, but first I'm working through another odd issue to determine whether it's down to Lazarus on Solaris or is a recently-introduced problem in 2.7.1 targeting SPARC. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions abo

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Sven Barth wrote: Now, you are getting a SIGSEGV, not a SIGBUS which is what you would get for an alignment problem. This problem no longer exists in 2.7.1 (21919 + Reinier's solarisdbtrunk2.diff). Then it might be good if you report this in Mantis together

[fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
ndows API can, at times, bite. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword to a help viewer. I am obviously awa

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
OBones wrote: Mark Morgan Lloyd wrote: A couple of weeks ago, out of curiosity rather than necessity, I started looking at whether the library could be ported to Windows using MS-style named pipes. However I seem to have hit a snag since it appears that Windows can't both create a named

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
nisms. I will do, but I do note that http://lazarus-ccr.sourceforge.net/docs/rtl/ipc/index.html explicitly says that "It works only on the linux operating system". Where's the source- I can only see ./fpcsrc/rtl/unix/ipc.pp -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT.

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
OBones wrote: Mark Morgan Lloyd wrote: Basically, what I was trying to do was this. In the main thread: fIpcPipe:= CreateNamedPipe(PChar(fIpcName), PIPE_ACCESS_INBOUND, PIPE_TYPE_MESSAGE + PIPE_READMODE_MESSAGE, 1, 0, 0, 1000, NIL

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: No need to apologize, I'm just curious where you got your info from. The implementation has been the same since day 1, which means your statement puzzles me. So instead

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
g time on something which already exists. Of course, time spent learning APIs is never wasted :) I'll certainly take a close look at that if I come back to this problem- if nothing else to see whether it works in the context of a single process :-) -- Mark Morgan Lloyd markMLl .AT. te

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-19 Thread Mark Morgan Lloyd
waldo kitty wrote: On 7/18/2012 08:48, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword to a help viewer. I am obviously aware of the fact tha

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-20 Thread Mark Morgan Lloyd
her way, i'm out and apologize for the diversion ;) If you were using the very early MS networking for unix (mentioned in the Samba entry on Wp IIRC, but I think I've also got other references) then they probably had both. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Op

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-22 Thread Mark Morgan Lloyd
27;ve hardcoded stuff that by now exists in a standard library. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

[fpc-pascal] FPC and IPv6, and BSD

2012-07-23 Thread Mark Morgan Lloyd
a_family_t; .. so that it initialises the sin6_len field if present (some BSD variants?), does it see that conditional automatically if defined? Otherwise how best to do it? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-23 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP6 (returns -1), which I suspect is

[fpc-pascal] POSIX capabilities library

2012-07-25 Thread Mark Morgan Lloyd
Does FPC have an interface to the POSIX capabilities library, which I believe is libcap or possibly libcap-ng? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] __

Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-27 Thread Mark Morgan Lloyd
ZAN DoYe wrote: On 2012-07-23 21:51, Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP

Re: [fpc-pascal] POSIX capabilities library

2012-07-27 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Does FPC have an interface to the POSIX capabilities library, which I believe is libcap or possibly libcap-ng? I've hacked a partial interface to the API. If anybody else has to deal with this issue, note that Debian only provides libcap as a .so. -- Mark M

[fpc-pascal] Getting UTC time etc.

2012-07-27 Thread Mark Morgan Lloyd
to be able to get it from the client for status messages etc. before connection. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - f

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Mark Morgan Lloyd
you irrespective of whether he could have got it elsewhere. Alternatively, the basic framework is GPL but dynamically-linked extensions are proprietary. I suppose that the bigger question is: how does one find an affordable lawyer, well-versed in the laws covering the major jurisdictions?

Re: [fpc-pascal] Getting UTC time etc.

2012-07-28 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i)Is there an FPC function which will get the raw time from the RTC, which on unix systems will usually be UTC (specifically, without a DST correction

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-30 Thread Mark Morgan Lloyd
potentially be protected by patent, or by the DMCA) but chatty description (comments etc.) of them probably is. Remember that Jonas has asked that this thread adjourn to the fpc-other list. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not tho

[fpc-pascal] Byte ordering in IP4 and IP6 addresses

2012-07-30 Thread Mark Morgan Lloyd
() appear to be consistent. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/ma

[fpc-pascal] Translating from error numbers to symbolic name

2012-08-03 Thread Mark Morgan Lloyd
ng it to a concise literal such as 'EAGAIN'? I want the log to report that accept() has failed with EAGAIN, rather than having explanatory text that doesn't match the kernel documentation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author

Re: [fpc-pascal] Translating from error numbers to symbolic name

2012-08-03 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: When using a function like fpAccept on a non-blocking socket, in some cases -1 is returned with a documented (Linux kernel) error code of EAGAIN. Should I be looking for this in errno or SocketError? Socketerror is

Re: [fpc-pascal] Translating from error numbers to symbolic name

2012-08-04 Thread Mark Morgan Lloyd
l be giving out temporary passwords for database connection. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Mark Morgan Lloyd
. feeding the program all possible input states etc.) you'd probably miss combinations. You're left with the options of learning how to use resourcestrings effectively, or using a language such as Smalltalk where the senders of a message are known in advance. -- Mark Morgan Lloyd m

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Mark Morgan Lloyd
compiled code. Hey, Jonas, when are you introducing the optimisation that a call at the end of a procedure can be replaced by a jmp? :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colle

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Mark Morgan Lloyd
ssumes that e.g. /usr/local/opt is permanently available when in fact it's a short-term NFS mount. And doing it that way means that the user would be aware of the problem, and if enough users are aware of the problem it might trickle through to the awareness of the distreaux maintainers. -- Mar

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Mark Morgan Lloyd
s the leading Debian derivative? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 15/08/12 12:37, Mark Morgan Lloyd wrote: Jonas Maebe wrote: In both these cases, I manually created unversioned symlinks to those libraries, and that got my applications working again. This is not ideal, but I don't know how else to handle this. The official w

Re: RE : RE : RE : [fpc-pascal] Re: linux: should we hard-codeversionedorunversioned shared libraries in our apps?

2012-08-16 Thread Mark Morgan Lloyd
ty would only solve the recurring discussions and miscomprehensions (assuming that is a shared objective) then it would already be a big step forward. I agree. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the autho

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Mark Morgan Lloyd
n the code on an OS that protects executable code from being read? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pa

OT: Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
g extra scanning, and messing things up? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
re irritating is the very long lines that sometimes get inserted on behalf of some posters, which detracts from the legibility of their questions or opinions. I can't remember for certain, but I think that this was again a gmail issue. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. u

Re: OT: Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
ginating at the list end. Anybody: does any computer close to the list server use ClamAV? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

[fpc-pascal] Resourcestring and multi-line text

2012-08-17 Thread Mark Morgan Lloyd
Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Resourcestring and multi-line text

2012-08-17 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: When putting text into a resourcestring, for example for i18n, what is best practice for multiline blocks? I'm thinking of, for example, explanatory text that goes on a page in a wizard-style set of dialogues,

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-19 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 19 Aug 2012, at 10:55, Rainer Stratmann wrote: Am Saturday 18 August 2012 23:53:36 schrieb Jonas Maebe: On 18 Aug 2012, at 22:48, Rainer Stratmann wrote: I did option -a, the compiler needs longer now, but where can I see the generated file(s)? In the same directory tha

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Mark Morgan Lloyd
7;s tested with. It's only marginally more difficult to add a warning (or even error) if the compiler version isn't as expected. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] TSQLDBLibraryLoader committed for SQLDB

2012-08-22 Thread Mark Morgan Lloyd
practice? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
ly ask peculiar questions, for reasons that might make sense to me but not to others. I've generally got the grace to respect core developers' recommendations and to recognise that they've got other things to get on with- including a job to keep them fed and clothed. -- Mark Mor

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 10:58:52 schrieb Mark Morgan Lloyd: Looking at the earlier thread, what you appear to be suggesting is some way of using $i for pulling binary data into your program. However, $i is by definition for including source fragments, if you want to

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 11:59:01 schrieb Mark Morgan Lloyd: You are trying to make a very simple thing complicated. I know bytes with values from 0 to 255. I do not see an illegal character/byte there. If you read exactly I did not type $i but $ir which I think is

  1   2   3   4   5   6   7   8   9   10   >