Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-30 Thread Ewald
with which you can just continue in the usual OOP way. Hope this helps. -- Ewald Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometime. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread Ewald
this: Move(YourVariable, YourArray[0], SizeOf(YourVariable)) (note that you might want to take endianess into account, but I don't know if this applies to floats as it does to integers) -- Ewald Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometime

Re: [fpc-pascal] weird printout of char

2012-11-05 Thread Ewald
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Ewald Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometimes. ___ fpc

Re: [fpc-pascal] Re: cannot make debugserver

2012-11-07 Thread Ewald
that the debugserver has not worked for some time. One of those posts lead me to the debugserver server that is an example in fpGUI. I built that and it works. tiOPF was also suggested. I intend to look into it as well. -- Ewald Events don't necessarily happen in chronological order; yet somehow

Re: [fpc-pascal] Re: cannot make debugserver

2012-11-07 Thread Ewald
On 11/07/2012 10:06 PM, Marco van de Voort wrote: In our previous episode, Ewald said: Change all calls to (I don't know if argument lists are the same, it's been a long time) Listen() to fpListen() ShutDown() to fpShutDown() Socket to fpSocket() Bind() to fpBind() Prefix

Re: [fpc-pascal] Is it possible to redefine FreePascal types?

2012-11-21 Thread Ewald
; ; The compiler should generate an error when you try to typecast a String to a NewString. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Class procedural type

2012-12-17 Thread Ewald
ideas? BTW: For time being I fixed it through TProcType(Pointer(@TTestClass.AMethod)), where `TProcType = Procedure;`. I think this boiles down to the same as a class procedure is nothing more than a normal procedure as I see it (except for the name and some other syntax) -- Ewald

Re: [fpc-pascal] Class procedural type

2012-12-17 Thread Ewald
this feeling that this isn't anywhere in the manual pages so I want to be absolutely sure about this. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Class procedural type

2012-12-18 Thread Ewald
Once upon a time, on 12/18/2012 06:42 AM to be precise, Sven Barth said: Am 17.12.2012 22:27 schrieb Ewald ew...@yellowcouch.org mailto:ew...@yellowcouch.org: It should not contain this hidden parameter? In that case the above code (with the intermediate pointer cast) would prove correct

Re: [fpc-pascal] SocketError 183

2012-12-23 Thread Ewald
from somewhere else. As to your question wether SocketError() is thread-safe. On *nix (tested on Mac OS X 10.6.8 and several Linuxes) it is, I'm using this function in a multithreaded server and it's results are consistent with what I expect on a per-thread basis. -- Ewald

Re: [fpc-pascal] Favourite Pascal books

2013-01-22 Thread Ewald
For the beginning programmer: http://www.amazon.com/Sams-Teach-Yourself-Delphi-Days/dp/0672312867/ref=sr_1_1?s=booksie=UTF8qid=1358859138sr=1-1keywords=delphi+4+21 -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] interactively draw an ellipse

2013-01-23 Thread Ewald
, a temporary ellipse should be shown on screen and the mouse will be cross-shaped. Any idea re how to do it ? An unexpensive well debugged 3th-party library would be the ideal solution (as I don't plan to work in graphics in the future). -- Ewald

Re: [fpc-pascal] GetCurrentThreadID under FreeBSD vs Linux

2013-02-08 Thread Ewald
used to supply a thread id/value to a logging function (file, GUI, console etc) to help with debugging, or at least show which thread wrote what debug log entries. So it's not critical code. Regards, - Graeme - -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] Set size limit

2013-03-11 Thread Ewald
at the other, a set to contain up to (say) 257 elements would require more space and that's not supported. Probably a typo, but 8 bit * 8 bytes = 64 elements. So I suppose you mean `[...] occupies 32 bytes in memory [...]`? Just so nobody gets confused :-) -- Ewald

Re: [fpc-pascal] catch segfaults

2013-03-13 Thread 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/fpsignal.html -- Ewald ___ fpc-pascal

Re: [fpc-pascal] TStream descendant to compress/decompress gzip data from another stream

2013-03-27 Thread Ewald
on it :-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TStream descendant to compress/decompress gzip data from another stream

2013-03-28 Thread Ewald
Once upon a time, José Mejuto said: El 28/03/2013 1:06, Ewald escribió: Sorry to just drop in on this quite late, but isn't gzip a compression algorithm and not a file format as such? gzip (the command line utility) only compresses one file and *doesn't* put this in a multi-file container

Re: [fpc-pascal] TStream descendant to compress/decompress gzip data from another stream

2013-03-28 Thread Ewald
serveral of these one-file gzipped files, if you see what I mean. Anyway, I've never seen it happen, so I'm going to leave it at that before I start sounding silly ;-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Function header doesn't match error

2013-03-31 Thread Ewald
TStringList (or boolean for that matter, but that doesn't strike me as obvious) in oneof the units you used in your implementation section? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] How to detect connection status of a socket

2013-04-28 Thread Ewald
the socket is closed. If you received no data yet, you will get -1 as a return value and errno will be set to EAgain of EWouldBlock (see the link above). Does this help or am I completely talking besides the point? -- Ewald ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-02 Thread Ewald
way would be to use a non-blocking socket to accept connections... -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Ewald
On 03 May 2013, at 00:15, Zaher Dirkey wrote: On Fri, May 3, 2013 at 12:51 AM, Ewald ew...@yellowcouch.org wrote: pthread_cancel() pthread_cancel() ​ ​​ not clos​e​ the handles i though​.​ That's true, but at least it returns control to you (= the programmer), so you can close

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Ewald
On 03 May 2013, at 11:30, Zaher Dirkey wrote: On Fri, May 3, 2013 at 12:18 PM, Ewald ew...@yellowcouch.org wrote: That's true, but at least it returns control to you (= the programmer), so you can close the handles manually. ​I am notprefer force to close any thing, that will make more

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Ewald
Once upon a time, Zaher Dirkey said: On Fri, May 3, 2013 at 7:22 PM, Ewald ew...@yellowcouch.org wrote: Accept but without errors ​You cant, Accept give you a handle of new socket or give you an error, not all is fatal error, just check what is it, if it a closed handle or shutdown.​ Yes, I

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Ewald
On 03 May 2013, at 20:13, Marco van de Voort wrote: In our previous episode, Ewald said: The point being that the answer to one of the OP sub-problems [the one quoted _partially_ above], can be to either use: - pthread_cancel() [overkill, I know, but nonetheless a solution] - non-blocking

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Ewald
to block. Now that we have established these two facts, I believe that using select before accept to check whether the latter will block is valid logic, wouldn't you say? PS: The exact details of this implementation I do not know, I haven't tested. -- Ewald

Re: [fpc-pascal] Error: Duplicate identifier FarPointer

2013-05-15 Thread Ewald
last week everything was normal. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Ewald

Re: [fpc-pascal] How to handle External:SIGPIPE on linux

2013-06-01 Thread Ewald
On 01 Jun 2013, at 08:51, Dennis Poon wrote: Ewald, Please kindly share your sample codes for both approaches. Thanks a lot Right, here you go: *** fpSignal() *** First you declare a function which is going to handle the signal (SignalHandler in my example), then you just call

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

2013-06-03 Thread Ewald
Once upon a time, Tomas Hajny said: On Mon, June 3, 2013 18:09, Ewald wrote: Well, you can obviously use tool bin2obj created with/for FPC and distributed with FPC releases - see fpcsrc/utils/bin2obj.pp. Seriously? I should really start looking at included tools... I've got this feeling

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

2013-06-03 Thread Ewald
;-) PS: Sorry about the php code there; I know it's not the php mailing list, but my buildtool happens to be written in php ;-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-06-03 Thread Ewald
Once upon a time, Rainer Stratmann said: For me this seems (too) complicated to do an easy thing (including some data). That, and I don't think that ld on mac os x can handle `-b` (or --format). -- Ewald ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Can someone please explain the linker to me?

2013-06-05 Thread Ewald
.asdasd`, so it decides to use the one it found instead. Anyway, I don't know that much about `the linker` either, but this would be my guess. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] TStream.ReadBuffer doesn't try hard enough to read the requested bytes

2013-06-15 Thread Ewald
sumarized explanation, but it should make the point. FYI: I've never had the problem of a `partial read` (e.g. SomeStream.Read(50) returning 36 or something) on linux, osx and windows; so perhaps you have exposed some bug in an obscure TStream descendant? -- Ewald

Re: [fpc-pascal] TStream.ReadBuffer doesn't try hard enough to read the requested bytes

2013-06-16 Thread Ewald
On 16 Jun 2013, at 03:18, Michalis Kamburelis wrote: Ewald wrote: And what with non-blocking pipes pipes? Wait for a *some* period until you get all data? It is up to the programmer to do this INHO. If you want to get partial data (instead of waiting until all requested data is available

Re: [fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Ewald
, TCSADRAIN, @Attr);// Take a look at the documentation of this call to see what constant (TCSADRAIN) you want to use. ===EOC=== Hope it helps! -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Get empty memory quickly or... an empty file

2013-09-13 Thread Ewald
not, have a look at http://www.freepascal.org/docs-html/rtl/system/fillchar.html -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Ewald
Once upon a time, Marcos Douglas said: Do you (all) use prefix in Procedures and/or Functions too? ;-) Unitname.GetHandler() ? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] identifier not found case probelm

2013-11-10 Thread Ewald
? :( :( :( And where exactly are these functions (`returns`, `withdraw`, etc...) defined? I can't see them either by looking at your code... Perhaps a minimal working example would be handy? -- Ewald ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] MD5 decryption?

2013-12-11 Thread Ewald
Once upon a time, silvioprog said: Hello, How to decrypt a MD5 in FPC?: MD5 is a hashing algorithm, not an encryption algorithm. There is more than one input for this algorithm which will generate the same hash, as opposed to a cipher. -- Ewald

Re: [fpc-pascal] MD5 decryption?

2013-12-11 Thread Ewald
Once upon a time, silvioprog said: 2013/12/11 Ewald ew...@yellowcouch.org mailto:ew...@yellowcouch.org Go to: http://md5decryption.com http://md5decryption.com/ In Please input the MD5 hash that you would like to be decrypted: field, put: 7db4a8dae498d1b4686ebd1f79326602 See the result

Re: [fpc-pascal] MD5 decryption?

2013-12-11 Thread Ewald
decryption. If I would advertise a bicycle as a car to you there would also be some confusion don't you think :-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-13 Thread Ewald
of the function as the second argument in GetProcAddress()? Perhaps try `GetProcAddress(LibHandle, 'soundtouch_clear');` on line 54 and modify the rest in a similar fashion? Hope it helps. -- Ewald ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-13 Thread Ewald
instead of indices). OTOH it could (?) be that the the compiler inserts code to typecast PChar(1) to a string, which could result in an access violation (try `var a: string; a:= pchar(1);` to try it out ;-) ). -- Ewald ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-17 Thread Ewald
something to do with it? @Fred: Also note that the type HANDLE is defined there as a pointer, so [as a sanity test of sorts] sizeof(Handle {in pascal}) should be equal to sizeof(HANDLE /*in C/C++*/). -- Ewald ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-17 Thread Ewald
of the symbol). or it could be that I am completely missing something here. [for example: is the symbol `DLL_EXPORTS` defined at compile time?] -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-17 Thread Ewald
), but you need a pointer. Try putting `Type THandle = pointer;` somewhere before the first usage of this type in your library wrapper. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo

[fpc-pascal] CPPClass Documentation?

2014-01-18 Thread Ewald
could shed some light on this? (Links to documentation I missed will do :-) ) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CPPClass Documentation?

2014-01-18 Thread Ewald
! -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CPPClass Documentation?

2014-01-18 Thread Ewald
On 18 Jan 2014, at 15:22, Sven Barth wrote: On 18.01.2014 13:45, Ewald wrote: Hi, This morning, I saw on fpc-devel a message titled `CPPClass`, which made me wonder if this keyword means what its name implies. Sadly though, there is not much documentation on this subject (read: none I

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread Ewald
a type to make your like easier: Type TProcType: Procedure; Next, adjust contralContol's prototype: procedure centralControl(var aValue : word; theRecord : somerec; whichProc: TProcType); And you're done:-) -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-24 Thread Ewald
and doThat with the necessary parameters? Simply change the type: Type TProc = Procedure(aRecord: somerec); Then you can call whichProc (in centralControl) with your argument of choice. -- Ewald ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-24 Thread Ewald
On 24 Jan 2014, at 22:20, waldo kitty wrote: On 1/24/2014 3:18 PM, Ewald wrote: On 24 Jan 2014, at 21:20, waldo kitty wrote: On 1/23/2014 2:18 PM, waldo kitty wrote: following up on this, how do i pass parameters to doThis and doThat?? do i have to use an intermediate pre_doThis

Re: [fpc-pascal] fp libraries do not like cmem ?

2014-02-13 Thread Ewald
for your library this won't help you much. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fp libraries do not like cmem ?

2014-02-14 Thread Ewald
at first glance that `ReturnTheAnswer^` is 42, but this is incorrect in some cases. The example here might be extremely over-simplified, but replace `a: Integer` with `mystring: String` and we're roughly at your example. -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] fp libraries do not like cmem ?

2014-02-14 Thread Ewald
is providing a function in your library that replaces the current memory manager with the one passed to it as an argument. This would allow you to simply return a string. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Error compile library on Linux.

2014-03-26 Thread Ewald
an our or so to track that one down :-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread Ewald
of java code are a lot better that case IMHO. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-29 Thread Ewald
that CheckSynchronize is supposed to empty. See http://www.freepascal.org/docs-html/rtl/classes/checksynchronize.html for more details on this call. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-30 Thread Ewald
On 30 May 2014, at 10:46, fredvs wrote: re-@ Ewald : It *must* be called in the context of the main thread (the thread that loaded the library) OOps, so do you mean that CheckSynchronize must be called by Java ? So i have to add a custom procedure in the fpc library (who will be only

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-30 Thread Ewald
On 05/30/2014 01:15 PM, fredvs wrote: Please read my earlier post before this one @ Ewald, i have try with : While true do Begin ... code ... CheckSynchronize; End; But this does not work... The question here is: where did you type

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-31 Thread Ewald
details of this approach. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread Ewald
: char YourString[SIZE]; It's kind of a drudgery to handle those though, so I see why you like QStrings better :-) -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] Illeagal assignment to For Loop variable in Free pascal

2014-06-17 Thread Ewald
Begin If Then ... Else Counter:= 1; Counter-= 1; End; ? Perhaps there is a switch that allows assignments to for-loop counters (although I doubt it), I don't know. -- Ewald

Re: [fpc-pascal] cthreads

2014-07-25 Thread Ewald
for this was that FPC has no dependency to libc under normal circumstances. Making cthreads the default thread manager would thus add a dependency to libc. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Ewald
. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Again: Use of abstract classes

2014-10-02 Thread Ewald
On 10/02/2014 05:35 PM, silvioprog wrote: Hello, Someone could inform me if there is an entry in bugtracker with references to this topic? This has already been fixed I believe. See http://lists.freepascal.org/pipermail/fpc-devel/2014-July/033930.html for more information. -- Ewald

[fpc-pascal] Question about functions returning a string

2014-11-28 Thread Ewald
anybody shed some light on this? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Question about functions returning a string

2014-11-29 Thread Ewald
,%r12d -- second argument, %rsi 44b36b:49 89 d5 mov%rdx,%r13-- third argument, %rdx What I forgot to mention was that this is on a x86_64 architecture, so I based myself on the table found at http://wiki.osdev.org/Calling_Conventions . -- Ewald

Re: [fpc-pascal] Question about functions returning a string

2014-11-30 Thread Ewald
language can't do anything useful with it, my thought was that it would be possible to pass along these managed types (especially string, as it is a pointer internally) to another pascal function (a callback in my case). -- Ewald ___ fpc-pascal

Re: [fpc-pascal] Question about functions returning a string

2014-12-01 Thread Ewald
, but as an out parameter: Function Bla: String; ... becomes ... Procedure Bla(out Result: String); This seems to work. How portable it is, I do not know, I guess time will be the judge and jury on that. Anyway, thanks to you all! -- Ewald ___ fpc-pascal

Re: [fpc-pascal] else and otherwise in a case statement

2014-12-11 Thread Ewald
. How can else be ambiguous within a case statement? If one omits the trailing semicolon (the one that's commented), the else becomes ambiguous: Case Something of Value1: ; Value2: If Condition Then DoSomething (*;*) Else End; -- Ewald

Re: [fpc-pascal] OSX x86_64 make problem

2015-01-16 Thread Ewald
CPU_TARGET=x86_64 all` instead of `crossinstall`? That's how I just built the latest revision, 29488. Just a suggestion... -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross-compile vs native

2015-01-27 Thread Ewald
... Projects are identical on both platforms though (except for a few ifdefs to access OS-specific functionality). -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross-compile vs native

2015-01-28 Thread Ewald
On 01/28/2015 10:01 AM, Michael Schnell wrote: On 01/27/2015 10:27 PM, Ewald wrote: - Without the target system, the application cannot be tested .. This is true, only because remote debugging is not well supported. For remote debugging a target system is needed as well? So even if remote

Re: [fpc-pascal] Saving and reading TBlowfish crypted text

2015-03-18 Thread Ewald
On 17 Mar 2015, at 22:32, Graeme Geldenhuys wrote: On 2015-03-17 18:49, Ewald wrote: The docs state that it is called automatically upon destruction: Correct, and I knew that. But I was explicitly looking at the code Antonio supplied. [...] This is my interpretation of what is going

Re: [fpc-pascal] how to use procedure of object in C

2015-03-09 Thread Ewald
of declarations (in constrast to `Class procedure XXX; static;`). I don't know how long that is going to last however (since this hidden parameter thingy is an implementation detail of the compiler I think). So I fully agree: it would be a kindness of the compiler people to confirm this :-) -- Ewald

Re: [fpc-pascal] FPC embedded ? (going slightly off-topic)

2015-03-05 Thread Ewald
and microstepping can easily be implemented in the microcontroller itself, like you say. The reason you need an extra chip is the need for some power transistors arranged in a bridge configuration, something similar to the L298 or L293D, to name some popular IC's. -- Ewald

Re: [fpc-pascal] getaddrinfo

2015-03-29 Thread Ewald
suggested, perhaps a bug in the fpc implementation (fpc does not normally use lic for it's syscalls)? Try defining the function manually, using libc's equivalent and see if it produces the same result? Just a suggestion... -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] Finally, exceptions and so on.

2015-05-14 Thread Ewald
Whatever End; Repeat Try Continue Finally Whatever End Until True; End. Code End -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Finally, exceptions and so on.

2015-05-14 Thread Ewald
)? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using Cairo lib on Linux without X

2015-04-07 Thread Ewald
functionality when XOpenDisplay fails? Just an idea... I'm no expert on the matter. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] loadlibrary() unsafe ?

2015-06-20 Thread Ewald
variables[1]. Using a TProcess, try setting the `Environment` property before running it[2]. Hope it helps :-) [1] http://linux.die.net/man/3/exec [2] http://www.freepascal.org/docs-html/fcl/process/tprocess.environment.html -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] loadlibrary() unsafe ?

2015-06-12 Thread Ewald
tried to set the environment variable `LD_LIBRARY_PATH` to contain `the_path_you_want` before you spawn the other process? See also http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html : section 3.3. -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Ewald
-html/rtl/baseunix/stat.html -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use a static method as procedure variable?

2015-07-05 Thread Ewald
so far. Better be careful and write a small sanity test that checks correct operation every time you use a new compiler. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] which GUI (noob)

2015-08-05 Thread Ewald
feature: inherent concurrency support. I don't know about classes or generics, those will probably be in an newer standard. But who needs those? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] Basic Sockets in FreePascal

2015-07-26 Thread Ewald
would have in C, but all functions are prefixed `fp` (as are most other low level functions on *nix BTW). [1] http://www.freepascal.org/docs-html/rtl/sockets/index-5.html -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] got SIGSEGV with objfpc dialect

2015-09-13 Thread Ewald
On 09/13/2015 03:25 PM, che fou wrote: > Atm i don't know how to report , i'll try to figure out how to Try http://bugs.freepascal.org/ -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mail

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-01-30 Thread Ewald
On 01/30/2016 08:22 PM, Anthony Walter wrote: > Ewald, > > Maybe you should go to the forums and enlighten everyone. I provided > the link in my last reply. You missed the point. It is not my intention to shove my opinion down anyone's throat. I do however think that reinventing d

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-01-30 Thread Ewald
On 01/30/2016 08:09 PM, Anthony Walter wrote: > Ewald, > > If you read the threads on the Lazarus forums I'm not subscribed to that forum as I do not use lazarus. I use freepascal without an IDE. So by all means: enlighten me :-) > you'll see the points people are making while compl

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-01-30 Thread Ewald
pear > under the Free Pascal language Lexical topic: > > http://cache.getlazarus.org/images/lexical-diagrams.png What's wrong with those found in the documentation? (for example: http://www.freepascal.org/docs-html/ref/refse105.html ) IMO those pr

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-01-30 Thread Ewald
secondary set of documentation the "terrible" state won't improve, now will it? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Ewald
f Y = nil Then WriteLn('Y: ', dlerror); Z:= GetProcedureAddress(...); If Z = nil Then WriteLn('Z: ', dlerror); It is really nothing more than a function call, quite similar to fpGetErrNo. > I am in the dark. Being in the dark is positive, as one can always turn on the ligh

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Ewald
On 03/19/2016 08:53 PM, Marco van de Voort wrote: > In our previous episode, Ewald said: >>> Re-huh..., it should be a great plus if a dlerror() was implemented in fpc >>> too. >>> >>> But maybe I am missing something, maybe dlopen(), dlsym() and d

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Ewald
LoadLibrary has the same width). In your example you used an integer. Is sizeof(Integer) = sizeof(Pointer) of your system? If for example, you are missing the upper four bytes of the pointer, the above message makes sense. -- Ewald ___ fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Ewald
e assumed that this handle will always be an integer (think, for example, pointer)? Just a thought. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Ewald
he case, then you should probably report a bug. The man page of at least linux and freeBSD indicate that it should be a pointer. However, I would like to note that on linux, using revision 32828, TLibHandle is defined as a ptrint, which is correct. -- Ewald

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-19 Thread Ewald
poses, just add Function dlopen(filename: PChar; flags: cint): Pointer; cdecl; external; Function dlclose(handle: Pointer): cint; cdecl; external; Function dlsym(handle: Pointer; Name: PChar): Pointer; cdecl; external; Function dlerror

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ewald
ince there’s no obvious name to use for the file now. Mutually exclusive classes are mutually exclusive to classes which have dependencies on one another ;-) Or am I missing something? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] GZip - Stream decompress only in memory

2016-09-04 Thread Ewald
mpressStream(InStream: TStream; OutStream: TStream): Integer; function ExtractStream(InStream: TStream; OutStream: TStream): Integer; I think this is what you are looking for. I don't know about file headers. At least it would form a good starting point. Good luck

  1   2   >