Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Žilvinas Ledas
On 2017-04-09 11:06, Bo Berglund wrote: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like... So maybe someone here knows about some open-source example of FFT using FreePascal (or Delphi)?

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Žilvinas Ledas
Hi, when I needed to read multi-page tiff files some years ago, I used TLazReaderTiff. I don't remember if multi-page code worked out of the box, but I had to extend tiff reader to handle some more exotic format that came from some imaging software (I think I didn't contribute the changes

[fpc-pascal] Official/recommended citations for scientific papers

2016-02-26 Thread Žilvinas Ledas
Hello all, this is a cross-post to FPC-Pascal and Lazarus mailing lists. I'm finishing my PhD thesis and because I was implementing some partial differential equation solvers and visualization/image processing tools using FPC and Lazarus, I need to add some references. I was wandering are

[fpc-pascal] Reference in an articles to fpc

2012-07-09 Thread Žilvinas Ledas
Hello all, I'm doing some research involving numerical simulations and I'm using fpc for it. And as I really like fpc, I would like to mention it with a reference. So the question: is there some king of (published) paper/article concerning high-performance [numerical] computing I could use as

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Žilvinas Ledas
I think you should set chmPrj.MakeSearchable := true; (where chmPrj: TChmProject;). At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and I can search for (complete) words in generated chm using lhelp. (I think I do not set FullTextSearch to true though). Regards, Žilvinas

Re: [fpc-pascal] Getting Hardware information in Linux

2011-10-19 Thread Žilvinas Ledas
Hello, On 2011-10-18 22:44, Michael Van Canneyt wrote: use DBUS to query HAL. Normally you should get most of the info. I wrote an article on how to do this in FPC. if you want, I can send it to you. Could you send it to me as well? Regards, Žilvinas Ledas

Re: [fpc-pascal] FPImage and GetDataLineStart

2011-04-22 Thread Žilvinas Ledas
On 2011-04-22 14:47, michael.vancann...@wisa.be wrote: On Fri, 22 Apr 2011, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: class for each storage type and deal with delegation overhead. I've complete understanding for the fact that generics are too

Re: [fpc-pascal] FPImage and GetDataLineStart

2011-04-22 Thread Žilvinas Ledas
? From MY point of view operator is a (special) function, that takes (one/two/...) parameters and returns a result. So I would agree that helper is closer than an operator. Regards Žilvinas Ledas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Generics in Delphi mode?

2011-03-30 Thread Žilvinas Ledas
Hi, On 2011-03-30 21:59, timveldhuizen wrote: I hope very much that this will be changed to a delphi compatible style It is already implemented in Trunk ;) Regards, Žilvinas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: interested in building a library for functions?

2011-02-26 Thread Žilvinas Ledas
://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes). What Lazarus version are you using? If it is not RC of 0.9.30, then you should try using it. You can find it at: http://www.hu.freepascal.org/lazarus/ and it is called Lazarus-0.9.29-*. Regards Žilvinas Ledas

Re: [fpc-pascal] Basics of profiling -- some comments on fpprofiler bugs

2010-09-18 Thread Žilvinas Ledas
Sorry, forgot to ask - to what category should I submit bugs for fpprofiler? I can't find anything mentioning fpprofiler in http://bugs.freepascal.org ... Regards Žilvinas Ledas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Basics of profiling -- some comments on fpprofiler bugs

2010-09-06 Thread Žilvinas Ledas
On 2010-09-06 15:48, Darius Blaszyk wrote: On Mon, 2010-09-06 at 13:01 +0200, Graeme Geldenhuys wrote: Recently I took a look at Darius's old project 'fpprofiler. Links below. It was over 2 years since anybody worked on it, and riddled with bugs. I fixed all memory leaks, added some

[fpc-pascal] How to get address of MyFunction in MyFunction?

2010-07-18 Thread Žilvinas Ledas
Hello all, to get address of function I can use @MyFunction, but if I use it within MyFunction - I get address of Result. How can I get address of current function? (It's not for assigning to something else. It is for a kind of self modifying code.) Regards Žilvinas Ledas

Re: [fpc-pascal] How to get address of MyFunction in MyFunction?

2010-07-18 Thread Žilvinas Ledas
On 2010-07-18 15:42, Jonas Maebe wrote: On 18 Jul 2010, at 13:14, Žilvinas Ledas wrote: I want to use it this way: 1) Gel all @unitname.function addresses. 2) Use disassembler to find nearest next RET. 3) Then I assume that I have start and end of the function in the binary file

Re: [fpc-pascal] A patched unit overriding the default - like Delphi supports

2010-06-17 Thread Žilvinas Ledas
and report back how it goes. I am using this copy-to-my-custom-dir-method for some fpc packages (eg. chm) and for some lcl units. Regards Žilvinas Ledas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Using Move() with dynamic arrays - RunError(0)

2009-12-08 Thread Žilvinas Ledas
Hello all, I'm trying to use Move() with dynamic arrays, but don't know why it fails... When instead commented out for .. do code I use Move() code my app gets RunError(0) after some time. When I use for .. do everything works ok. I'm using Free Pascal Compiler version 2.3.1 [2009/11/03] for

Re: [fpc-pascal] Using Move() with dynamic arrays - RunError(0)

2009-12-08 Thread Žilvinas Ledas
Marco van de Voort wrote: The move also tries to take the address element 0 for arrays when they are 0. The for loop doesn't execute in that case. Thanks! Didn't thought about that. Regards, Žilvinas ___ fpc-pascal maillist -

[fpc-pascal] TIOStream and .Position

2009-12-05 Thread Žilvinas Ledas
Hello all, is this intended behavior or it is a bug that iostream.Position always returns -1? In iostream unit I see that there is ... TIOStream = class(THandleStream) private FType : longint; FPos : Int64; ... but if I use code like: ... var iostream: TIOStream; begin iostream :=