Re: [Lazarus] GDB is not good, any tricks to improve it?

2016-05-26 Thread Sven Barth
Am 26.05.2016 10:41 schrieb "Tony Whyman" : > I take Graeme's point about GDN not being that great for Pascal, but it does work most of the time and adding a few well placed "writeln" statements often makes up for any deficiencies (again much easier under Linux due

Re: [Lazarus] HEAPTRACE IFDEF

2016-05-03 Thread Sven Barth
Am 03.05.2016 15:49 schrieb "Aradeonas" : >> >> AFAIK, it's because it's not technically possible. > > As an amateur can I ask why? Because -gh does not trigger the recompilation of used units as internally it basically only adds another unit to the main program's uses

Re: [Lazarus] Example of full screen console program anywhere?

2016-04-25 Thread Sven Barth
Am 25.04.2016 16:59 schrieb "Bo Berglund" : > > I need to create a console program, but one that works similar to the > nano editor, the gpsd position/satellite view or raspi-config on a > Raspberry Pi. > I.e. the program manages the full terminal screen and displays its >

Re: [Lazarus] wiki page "Better_Unicode_Support_in_Lazarus"

2016-04-13 Thread Sven Barth
Am 13.04.2016 10:19 schrieb "Michael Schnell" : > > BTW. according to the said wiki page (at the end of the page) I am wrong assuming that DefaultSystemCodePage is a constant introduced by the compiler. > > Now I still don't know whether/how the default encoding for the type

Re: [Lazarus] Pretty neat stuff Lazarus

2016-04-11 Thread Sven Barth
Am 11.04.2016 03:10 schrieb "Alan Corey" : > Installing and running as root seems to present a strange problem in > that when I rebuild the IDE it doesn't write the new version to > /root/.lazarus/lazarus, it stays in /usr/local/bin. I'll figure it > out. You should not run

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-08 Thread Sven Barth
Am 08.04.2016 13:12 schrieb "Michael Schnell" : > > On 04/07/2016 04:33 PM, Mattias Gaertner wrote: >> >> On Thu, 07 Apr 2016 16:25:26 +0200 >> Michael Schnell wrote: >> >>> On 04/07/2016 04:19 PM, Mattias Gaertner wrote: What -Fu paths do you

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-08 Thread Sven Barth
Am 08.04.2016 13:29 schrieb "Michael Schnell" : > > On 04/07/2016 04:30 PM, Michael Van Canneyt wrote: >> >> >> I have this in my fpc.cfg, it is 2 lines long: > > > In my lazarus/trunk dir (created by svn), there is no fpc.cfg file. > > Do you suggest it should ? It should

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Sven Barth
Am 07.04.2016 17:18 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2016-04-07 10:43, Ondrej Pokorny wrote: > >> > But the dialog's behaviour has always been 'as in delphi' (or at least > >> > as long as I remember) > > No, it wasn't. > > > > > Since when is Lazarus design

Re: [Lazarus] PDF generator, try 2

2016-04-07 Thread Sven Barth
Am 07.04.2016 14:58 schrieb "Martin Schreiber" : > > On Thursday 07 April 2016 13:49:06 Graeme Geldenhuys wrote: > > I was about to mention that. This was discussed before, and there was a > > reason (which eludes me now) why FillChar() will not be changed. > > Because out

Re: [Lazarus] PDF generator, try 2

2016-04-07 Thread Sven Barth
Am 07.04.2016 13:49 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2016-04-07 12:25, Martok wrote: > > If Move+FillChar would use out instead of var (as they should - they don't read > > the dest value, that's the whole point), that would be fixed once and for all. > > But I

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Sven Barth
Am 07.04.2016 07:43 schrieb "Jesus Reyes A." : > > En Wed, 06 Apr 2016 13:14:49 -0500, Michael Van Canneyt < mich...@freepascal.org> escribió: > >> >> >> On Wed, 6 Apr 2016, silvioprog wrote: >> >>> On Wed, Apr 6, 2016 at 2:14 PM, Michael Van Canneyt < mich...@freepascal.org>

Re: [Lazarus] Instalation on win 10

2016-04-04 Thread Sven Barth
On 04.04.2016 20:21, Pedro Albuquerque wrote: > Hi, > > There has been a while since I used Windows and, more specifically win10 > I never tried. I recently got a new machine, but it runs win10. Are > there any special precautions to take with Lazarus/fpc instalation? > > I mean known issues,

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Sven Barth
On 04.04.2016 18:07, Ondrej Pokorny wrote: > On 04.04.2016 16:57, Bart wrote: >> To me it just looks funny to have 2 languages in one file e.g. > > Just a curiosity from FPC code :) > > compiler/tokens.pas: > _LECKKLAMMER (I assume "linke eckige Klammer") > _RECKKLAMMER > _LKLAMMER > _RKLAMMER >

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Sven Barth
Am 04.04.2016 12:12 schrieb "Mattias Gaertner" : > > As funny as the idea of using emojis for identifiers sound as scary it is. > > So I don't really support this. > > I share your concerns about non English keywords. For identifiers I > see some gain. > > Do the linker,

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Sven Barth
Am 04.04.2016 11:40 schrieb "Special" : > What problems, Denis? We use component names like "SchließenButton" since many years with Delphi in training programs for german pupils. And in code for the international community, we don't use it. *You* might do this, but others

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Sven Barth
Am 01.04.2016 13:21 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 04/01/2016 01:13 PM, Sven Barth wrote: >> >> >> However classical WinAPI can't access it. You can access it only with Windows Store Apps and then only one at a time. Though you c

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Sven Barth
Am 01.04.2016 11:20 schrieb "Henry Vermaak" : > > On Fri, Apr 01, 2016 at 09:12:10AM +, Mark Morgan Lloyd wrote: > > Henry Vermaak wrote: > > >On Fri, Apr 01, 2016 at 12:39:15AM -0400, Anthony Walter wrote: > > >>My question is can someone look into this issue so that

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Sven Barth
Am 01.04.2016 09:52 schrieb "Michael Van Canneyt" : > > > > On Fri, 1 Apr 2016, Michael Schnell wrote: > >> On 04/01/2016 08:58 AM, Michael Van Canneyt wrote: >>> >>> >>> Some years ago they announced that the sever could run "without GUI". >> >> >> In fact "Windows IOT" is

Re: [Lazarus] Xamarin becomes free and open-source

2016-03-31 Thread Sven Barth
On 31.03.2016 23:14, vfclists . wrote: > > They have recently announced Bash for Windows and they are aiming to get > a lot of Unix tools running easily on Windows. > In fact those tools have been there for a while but they were not > seriously promoted. > They announced the ability to run ELF

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Sven Barth
Am 31.03.2016 00:48 schrieb "Bart" : > > On 3/31/16, Graeme Geldenhuys wrote: > > > [~]$ echo $LANG > > en_GB.UTF-8 > > This is what I hink is happening to your test (Sven can probably > explain it better): Jonas would probably be a better

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-30 Thread Sven Barth
Am 30.03.2016 11:23 schrieb "Juha Manninen" : > > Ok, FPC had UnicodeString earlier than I remembered. > Currently WideString is often used with WinAPI when UnicodeString > should be used, as Marco reminded in another discussion. The WinAPI does not know UnicodeString.

Re: [Lazarus] Having multiple Lazarus like GetLazarus version

2016-03-24 Thread Sven Barth
Am 24.03.2016 01:45 schrieb "Aradeonas" : >> >> Put a "lazarus.cfg" into the folder with lazarus.exe and write exactly this line into this file. > > Thanks but it seems not a good way. Lazarus will lose all the setting ans installed package and also GetLazarus version

Re: [Lazarus] Free Pascal / Lazarus calling conventions

2016-02-29 Thread Sven Barth
Am 29.02.2016 16:04 schrieb "Chavoux Luyt" : > > > Hi guys, > > Just a stupid question, but is the Lazarus calling conventions documented anywhere? Is it different from Delphi calling conventions? When calling external c functions from libraries, does one need any special

Re: [Lazarus] Lazarus on my ancient computer?

2016-02-14 Thread Sven Barth
On 14.02.2016 15:14, Bart wrote: > Hi, > > This is a bit off-topic. > > I have an ancient computer: Intel Celeron 700Mhz, 512MB RAM, 20GB IDE HD. > (http://flyingsheep.nl/computer_nostalgie.htm#celeron700) > (Hardware upgrades are not in the picture.) [snip] > So, do you have tips on which

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Sven Barth
Am 12.02.2016 17:16 schrieb "Dmitry Boyarintsev" : > > On Fri, Feb 12, 2016 at 9:16 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: >> >> {$define String:=RawByteString} >> >> and you are done. > > > How to achieve the same effect from command line? Just

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Sven Barth
Am 12.02.2016 17:37 schrieb "Dmitry Boyarintsev" <skalogryz.li...@gmail.com >: > > On Fri, Feb 12, 2016 at 11:24 AM, Sven Barth <pascaldra...@googlemail.com> wrote: >> >> Am 12.02.2016 17:16 schrieb "Dmitry Boyarintsev" < skalogryz.li...@

Re: [Lazarus] Can I assign items in an array all at once in FreePascal?

2016-02-07 Thread Sven Barth
Am 07.02.2016 12:51 schrieb "Michael Van Canneyt" <mich...@freepascal.org>: > > > > On Sat, 6 Feb 2016, Sven Barth wrote: > >>> >>> Because of 2 reasons: >>> >>> 1. Delphi introduced the create constructor. >>

Re: [Lazarus] Can I assign items in an array all at once in FreePascal?

2016-02-06 Thread Sven Barth
Am 06.02.2016 18:06 schrieb "Michael Van Canneyt" : > > > > On Sat, 6 Feb 2016, Aradeonas wrote: > >> Michael can I ask why we cant do something like this : >>> >>> MyArr :=[10, 20, 30, 40]; > > > Because of 2 reasons: > > 1. Delphi introduced the create constructor. > >

Re: [Lazarus] Free Pascal and Lazarus learning center

2016-02-01 Thread Sven Barth
Am 01.02.2016 13:54 schrieb "Michael Van Canneyt" : > > > > On Mon, 1 Feb 2016, Anthony Walter wrote: > >> Just a bit of information, my Cross.Codebot library has threading built in >> to the socket protocol implementations, so with regards to explaining it I >> could just

Re: [Lazarus] Free Pascal and Lazarus learning center

2016-02-01 Thread Sven Barth
Am 01.02.2016 16:18 schrieb "Anthony Walter" : > > Sven, > > What's the current road map look like for closures? Is it even on the radar? If so, and if no major work has been done on it yet, an improved syntax would go a long way in usability. Someone is working on them and a

Re: [Lazarus] How to change Class Completion for Setter methods

2016-01-25 Thread Sven Barth
Am 25.01.2016 12:16 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > Hi, > > When I do class completion in Lazarus for a property with a setter > method I get code as follows: > > > procedure TFPCustomMemo.SetAlignment(AValue: TAlignment); > begin > if FAlignment = AValue then

Re: [Lazarus] how to modify or add component after Application.Run method?

2016-01-24 Thread Sven Barth
Am 24.01.2016 09:46 schrieb "Mr Bee" : > > Hi, > > Common Lazarus project source code contains this snippet: > > begin > Application.Initialize; > Application.CreateForm(TForm, Form1); > Application.Run; > end. > > Adding code to modify or add components of/into Form1

Re: [Lazarus] Bls: how to modify or add component after Application.Run method?

2016-01-24 Thread Sven Barth
Am 24.01.2016 10:01 schrieb "Mr Bee" : > > No, I can't put them in the Form1's OnCreate event. Because the additional code wouldn't be just from me, but the could be from others as well. I'd like to make the main application into a unit. So, the form should be established on

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-18 Thread Sven Barth
Am 18.01.2016 12:11 schrieb "Juha Manninen" : > Can you find what revision caused the original problem you described? I'll try to. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Web vs desktop development

2016-01-18 Thread Sven Barth
Am 18.01.2016 11:05 schrieb "Michael Schnell" : > > On 01/18/2016 01:41 AM, Graeme Geldenhuys wrote: >> >> 1. Most websites are unusable without Javascript > > > The HTTP protocol cripples TCT/IP disallowing the server to spontaneously send anything . > > So without scrip the

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-18 Thread Sven Barth
Am 18.01.2016 12:11 schrieb "Juha Manninen" : > Can you find what revision caused the original problem you described? Seems like it was more PEBKAC than anything else. The thing is I normally use this when I work with the compiler and there I add my tests to a directory

Re: [Lazarus] fpc trunk fails "make all"

2016-01-18 Thread Sven Barth
Am 18.01.2016 18:52 schrieb "Anthony Walter" : > > While trying to "make all" of fpc on Window I am receiving and error on: > > make -C packages clean > > The error message is: > > make[2]: *** No rule to make target `clean'. Stop. Such questions are better asked on fpc-pascal.

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 20:17 schrieb "Ondrej Pokorny" : > > On 17.01.2016 19:29, Juha Manninen wrote: >> >> It is opened if it was left open when Lazarus was closed previously. > > > No, it is not. It is opened if you saved your desktop with search result dialog opened. If you saved your

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 22:35 schrieb "Juha Manninen" <juha.mannine...@gmail.com>: > > On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth <pascaldra...@googlemail.com> wrote: > > Back in 1.4.x when I opened a non-existing file and I confirmed that I want > > to have it c

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 19:29 schrieb "Juha Manninen" : > @Sven: > > Ah, thanks. Will the reversal also be part of the final 1.6? > > Yes. It didn't make it to RC2 unfortunately. Ok, thanks :) Regards, Sven -- ___ Lazarus mailing list

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 20:36 schrieb "ListMember" <listmem...@letterboxes.org>: > > On 2016-01-17 16:30, Sven Barth wrote: >> >> when I opened a non-existing file and I confirmed that I want to have it created the file was not added to project or the project's mainfile. &g

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 18:22 schrieb "Bart" <bartjun...@gmail.com>: > > On 1/17/16, Sven Barth <pascaldra...@googlemail.com> wrote: > > > Is there some option I have missed to change this behavior? Because not > > only meeses this up the compiler proje

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 17:43 schrieb "Ondrej Pokorny" <laza...@kluug.net>: > > On 17.01.2016 16:46, Sven Barth wrote: >> >> Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why?

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Sven Barth
Am 17.01.2016 14:23 schrieb "Jürgen Hestermann" : > >> I did not find any comments that mentions long paths > > You need new glasses then ;-) > > === code == > > //if Filename uses ExtendedLengthPath scheme then it cannot be expanded > > //AND it should not be

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Sven Barth
Am 17.01.2016 12:42 schrieb "Bart" : > In the end I used a bootable linux dvd (puppy linux), mounted the > partition in question and used the filemanger from that distro to > remove the folder and file. You know that you could just have written a program that uses the *W API

[Lazarus] IDE Coolbar and its default after updating

2016-01-17 Thread Sven Barth
Hello together! Today I updated my Lazarus from 1.4.4 to 1.6RC2 and while reporting some bugs (not specific to the RC2, but general ones), I noticed that the toolbar buttons ("open", "save", etc.) were missing. Thinking first that my docking settings were messed up again I checked those, but they

[Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Hello together! Working with 1.6RC2 I noticed a - for me - very serious problem and wonder whether I've missed some option. Back in 1.4.x when I opened a non-existing file and I confirmed that I want to have it created the file was not added to project or the project's mainfile. This is wonderful

[Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Helle together! Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why? Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Cannot find unit lNet when building project

2016-01-15 Thread Sven Barth
Am 15.01.2016 12:30 schrieb "Mattias Gaertner" : > > I usually > > create the objects in code anyway and my test program is a console > > (non-gui) program. > > > > >Maybe you updated your compiler and forgot to update lnet? > > Same compiler as before (3.0.0) > > And

Re: [Lazarus] Cannot find unit lNet when building project

2016-01-15 Thread Sven Barth
Am 15.01.2016 16:08 schrieb "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk>: > > Mattias Gaertner wrote: >> >> On Fri, 15 Jan 2016 14:50:35 +0100 >> Bo Berglund wrote: >> >>> [...](AFAIK "fppkg install lnet"). >> >> >> Yes. >> It is a bit confusing, that lnet is in

Re: [Lazarus] Conditional Defines for Raspberry PI?

2016-01-13 Thread Sven Barth
Am 13.01.2016 17:03 schrieb "Donald Ziesig" : > > Hi Everyone! > > Are there any conditional defines that let me exclude PI-specific code when compiling for 64-bit amd linux (or vice-versa)? > > I can define my own if necessary, but that is one more thing to worry about when

Re: [Lazarus] Do we really need a PaintSwastika procedure?

2016-01-06 Thread Sven Barth
Am 06.01.2016 20:44 schrieb "Marc Santhoff" : > Got some silver knifes and black candles at hand? Ehm... You do know that the one with the tip at the top is *not* a satanic symbol? It's a protective symbol instead. The satanic one is the one standing on its tip. I should know,

Re: [Lazarus] Do we really need a PaintSwastika procedure?

2016-01-06 Thread Sven Barth
Am 06.01.2016 21:25 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2016-01-06 19:21, Anthony Walter wrote: > > but our lcl > > version precisely matches the Nazi version. > > No it doesn't - if you want to get technical. The star isn't drawn > inside a circle (as your

Re: [Lazarus] Cross Platform SQL Client/Editor

2016-01-02 Thread Sven Barth
Am 02.01.2016 15:55 schrieb "Anthony Walter" : > > Sven, > > >> I don't see MSSQL support. I don't want to setup ODBC DSNs, > > > It *does* support MSSQL. It supports all databases that FPC supports. > > On my system LazDataDesktop does not show MSSQL as an option: > >

Re: [Lazarus] Cross Platform SQL Client/Editor

2016-01-01 Thread Sven Barth
Am 02.01.2016 01:13 schrieb "Anthony Walter" : > > Michael, > > I don't want a "visual" table builder and I'm unsure how many others do. All I want is something to connect me to a database engine where I can then execute bits of SQL (it executes what you highlight), which is what

Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Sven Barth
On 16.12.2015 19:11, Martin Frb wrote: On 16/12/2015 17:26, Ondrej Pokorny wrote: On 16.12.2015 18:20, Bart wrote: On 12/16/15, Ondrej Pokorny wrote: >I had the same issue on Windows 10 and was advised to check >DisableLoadSymbolsForLibraries (I don't remember who advised

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-16 Thread Sven Barth
On 16.12.2015 18:12, Bart wrote: On 12/10/15, Jürgen Hestermann wrote: But now I have a problem with UTF8Strings: With this declaration var S : UTF8String; I want to delete a character UTF8Delete(S,1,1); but I get an error that the (var) parameter mismatches.

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-13 Thread Sven Barth
On 13.12.2015 11:37, Jürgen Hestermann wrote: > And hence, at that point in time, there would (for programmers using > Lazarus) bee no need to use the type Utf8String at all. Then I would suggest to remove this type. Utf8String is part of the FPC RTL and is just a shorthand for

Re: [Lazarus] Install FPC and Lazarus from source

2015-12-13 Thread Sven Barth
On 13.12.2015 20:01, Bo Berglund wrote: On Sat, 12 Dec 2015 18:23:19 +0100, Sven Barth <pascaldra...@googlemail.com> wrote: strip removes the debug information stored in the binary. So in that case you won't get detailed exception information (stack trace) inside Lazarus if an exc

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-13 Thread Sven Barth
On 12.12.2015 18:40, Jürgen Hestermann wrote: Am 2015-12-12 um 18:20 schrieb Sven Barth: Yes, internally Windows uses UTF-16, but if you set your Windows Ansi code page or at least the current thread's locale to UTF-8 (indirectly by choosing a locale that has UTF-8 as code page, I don't know

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-13 Thread Sven Barth
On 13.12.2015 10:55, Jürgen Hestermann wrote: > For most cases things did not change very much. Earlier you had to use > the explicit UTF8...() functions, now you don't need them. What does this mean? If I use DELETE on a String type (that is an UTF-8 string) does it now use UTF8Delete

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-12 Thread Sven Barth
On 12.12.2015 12:46, Jürgen Hestermann wrote: Am 2015-12-11 um 19:14 schrieb Sven Barth: > Windows uses multi byte strings (one byte per character or more) > and UTF-16 (which is mostly 2 Byte and 4 for surrogate pairs). > The functions WideCharToMultiByte and MultiByteToWideC

Re: [Lazarus] Install FPC and Lazarus from source

2015-12-12 Thread Sven Barth
On 12.12.2015 17:27, Bo Berglund wrote: On Sat, 12 Dec 2015 15:32:15 +0100, Bo Berglund wrote: Also, what is the purpose of strip -s lazarus? Answering this myself after looking at strip -help: It strips all embedded symbols from the lazarus program file! I tried it

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-12 Thread Sven Barth
On 12.12.2015 16:47, Bart wrote: On 12/11/15, Sven Barth <pascaldra...@googlemail.com> wrote: Not necessarily. You can use SetCodePage() to change the code page of the string without triggering a codepage conversion by using the third parameter which is a Boolean that tells the fu

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-12 Thread Sven Barth
On 12.12.2015 17:37, Jürgen Hestermann wrote: Is it correct that now every ansistring has a static code page and a dynamic code page (as mentioned in http://wiki.freepascal.org/FPC_Unicode_support)? Yes. Is it correct that each ansistring type can store strings with any encoding (dynamic

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-11 Thread Sven Barth
Am 11.12.2015 08:20 schrieb "Martin Schreiber" <mse00...@gmail.com>: > > On Friday 11 December 2015 08:05:12 Sven Barth wrote: > > Am 10.12.2015 23:04 schrieb "Mattias Gaertner" < nc-gaert...@netcologne.de>: > > > > > > What about: >

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-11 Thread Sven Barth
On 11.12.2015 15:14, Juha Manninen wrote: On Fri, Dec 11, 2015 at 4:10 PM, Mattias Gaertner wrote: The job of the wrapper is to convert to type String without triggering the conversion of the content. Ok, lots of ugly Pointer typecasts. Doable, yes. Not

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-11 Thread Sven Barth
On 11.12.2015 15:20, "Jürgen Hestermann" wrote: >My link explains some differences important for Lazarus. But it does not explain the difference between an "UTF8String" and an "UTF8 String" >The encoding hassle is built into Windows. The compiler cannot overcome >it. It can only give you

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-11 Thread Sven Barth
On 11.12.2015 13:12, Mattias Gaertner wrote: On Fri, 11 Dec 2015 08:05:12 +0100 Sven Barth <pascaldra...@googlemail.com> wrote: [...] UTF8Delete(AnsiString(Pointer(s)),1,1); While the typecast itself would probably work I strongly advice against it since you're relying on implemen

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Sven Barth
Am 10.12.2015 19:53 schrieb "Juha Manninen" : > > On Thu, Dec 10, 2015 at 8:18 PM, Ondrej Pokorny wrote: > > IMO, there should be overloaded versions for UTF8* functions that > > explicitely accept UTF8String. > > Or am I wrong? > > You are right. I

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Sven Barth
Am 10.12.2015 23:04 schrieb "Mattias Gaertner" <nc-gaert...@netcologne.de>: > > On Thu, 10 Dec 2015 19:59:26 +0100 > Sven Barth <pascaldra...@googlemail.com> wrote: > > > Am 10.12.2015 19:53 schrieb "Juha Manninen" <juha.mannine...@gmail.com>

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Sven Barth
Am 11.12.2015 06:52 schrieb "Jürgen Hestermann" : > > > > Am 2015-12-10 um 18:22 schrieb Juha Manninen: >> >> On Thu, Dec 10, 2015 at 6:49 PM, Jürgen Hestermann >> wrote: >>> >>> How can I use UTF8Delete on an UTF8string? >> >> You can't.

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Sven Barth
Am 04.12.2015 10:29 schrieb "Michael Schnell" : > > On 12/04/2015 09:29 AM, Richard Mace wrote: >> >> >> My idea was, in my application, I could periodically check to see if a decompiler was running and then my app could perform an operation, such as maybe closing. > > > Why

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Sven Barth
Am 04.12.2015 09:29 schrieb "Richard Mace" : > > Hi All, > I was wondering if there was a way where an application, written in Lazarus, could detect when a compiler is running, perhaps by it's mutex? > My idea was, in my application, I could periodically check to see if a

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Sven Barth
Am 04.12.2015 13:02 schrieb "Richard Mace" <richard.m...@gmail.com>: > > > On 4 Dec 2015 09:48, "Sven Barth" <pascaldra...@googlemail.com> wrote: > > > Do you want to protect your whole application or only a specific part? (e.g. a specific a

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Sven Barth
Am 04.12.2015 11:34 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 12/04/2015 10:44 AM, Sven Barth wrote: >> >> >> Why do you assume that every software written in Lazarus/Free Pascal is automatically an open source one? >> > I don't as

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-26 Thread Sven Barth
Am 26.11.2015 20:02 schrieb "Kostas Michalopoulos" : > > Wow, that is a great release. Two major things for me: > > 1. I had a bug in my 3D world editor for some time now that i couldn't spot. Turns out, i was accessing the fields of a direct getter property (property

Re: [Lazarus] Q: Compiler features as a service to Lazarus

2015-11-24 Thread Sven Barth
Am 24.11.2015 12:11 schrieb "Michael Van Canneyt" <mich...@freepascal.org>: > > > > On Tue, 24 Nov 2015, Sven Barth wrote: > >> Am 24.11.2015 10:05 schrieb "Michael Van Canneyt" <mich...@freepascal.org >: >>> >>> >&g

Re: [Lazarus] Q: Compiler features as a service to Lazarus

2015-11-24 Thread Sven Barth
Am 24.11.2015 10:05 schrieb "Michael Van Canneyt" : > > > > On Tue, 24 Nov 2015, Anthony Walter wrote: > >> I have a tangential question related to Sven's new generic features and >> thought it deserved its own thread. > > > [snip] > > >> **This tutorial demonstrates how to

Re: [Lazarus] Video: Docked Designer Test

2015-11-23 Thread Sven Barth
Am 23.11.2015 12:35 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2015-11-23 10:40, Anthony Walter wrote: > > I did some testing with the new sparta docked form designer on OSX. here is > > a video clip of it in action: > > May I make a suggestion. Why not automatically

Re: [Lazarus] Video: Docked Designer Test

2015-11-23 Thread Sven Barth
Am 23.11.2015 23:29 schrieb "Michael Van Canneyt" <mich...@freepascal.org>: > > > > On Mon, 23 Nov 2015, Sven Barth wrote: > >> Am 23.11.2015 19:41 schrieb "Den" <cyr...@gmail.com>: >>> >>> >>> Micheal, I'm th

Re: [Lazarus] Video: Docked Designer Test

2015-11-23 Thread Sven Barth
Am 23.11.2015 19:41 schrieb "Den" : > > Micheal, I'm thinking they mean just a visual representation of the non-visual components, by having them displayed in a different area. For you, they would show up wherever you want to put them (by default the designer could put them in a

Re: [Lazarus] FPC 3.0.0-rc2 release

2015-11-20 Thread Sven Barth
Am 20.11.2015 11:32 schrieb "Maciej Izak" : > > Can we merge r31911 into final 3.0 version? I can't use Generics.Collections library with Lazarus packages :\ > > http://bugs.freepascal.org/view.php?id=28766 As Jonas already wrote, no, it's too late. Regards, Sven --

Re: [Lazarus] Encryption compatible with .net

2015-11-15 Thread Sven Barth
Am 15.11.2015 06:31 schrieb "Gabriele Cappelletto" < cappellettogabri...@yahoo.it>: > > > > Il 14/11/2015 18:11, Graeme Geldenhuys ha scritto: > > On 2015-11-14 09:44, Gabriele Cappelletto wrote: > >> the .net DESCryptoServiceProvider. > > Please show how the data was encrypted... The exact code

Re: [Lazarus] "lcl: less with-blocks for FPC 3.1.1"

2015-11-11 Thread Sven Barth
Am 11.11.2015 18:58 schrieb "Marcos Douglas" : > > Hi, > > Many changes using this comment (in the subject) was made in LCL SVN, > changing the 'with' sintaxe to use a variable instead... why? > > Please, I would like to know if something will change in the new > compiler version

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-10 Thread Sven Barth
Am 10.11.2015 09:40 schrieb "Jürgen Hestermann" <juergen.hesterm...@gmx.de>: > > Am 2015-11-09 um 14:26 schrieb Sven Barth: >> >> >> > The docs already note that the compiler uses a temporary register >> > for 'With'. >> > http://ww

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-10 Thread Sven Barth
Am 10.11.2015 12:27 schrieb "Jürgen Hestermann" <juergen.hesterm...@gmx.de>: > > Am 2015-11-10 um 11:32 schrieb Sven Barth: >> >> The user doesn't need to know the detail that the value is kept in a temporary register, because that statement by itself is utterl

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-10 Thread Sven Barth
Am 10.11.2015 14:37 schrieb "Sven Barth" <pascaldra...@googlemail.com>: > > Am 10.11.2015 12:27 schrieb "Jürgen Hestermann" <juergen.hesterm...@gmx.de >: > > > > Am 2015-11-10 um 11:32 schrieb Sven Barth: > >> > >> The user d

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-09 Thread Sven Barth
Am 09.11.2015 13:11 schrieb "Mattias Gaertner" : > > On Mon, 9 Nov 2015 10:48:02 + > Lukasz Sokol wrote: > > >[...] > > Thanks, I believe, this should be added into the docs somewhere ;) if it's not already there. > > The docs already note that

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Sven Barth
Am 06.11.2015 17:59 schrieb "Marco van de Voort" : > > On Fri, Nov 06, 2015 at 05:42:39PM +0100, Michael Van Canneyt wrote: > > > by Delphi compatibility... > > > > Ehm. How can "with" ever be safe ? > > Btw the case that I fixed was like this > > procedure TSomeForm.Getwind... >

Re: [Lazarus] A big thank you!

2015-11-05 Thread Sven Barth
Am 05.11.2015 06:50 schrieb "Ondrej Pokorny" : > > On 05.11.2015 01:02, Anthony Walter wrote: >> >> Regarding the state of generics, Sven has crushed it. Using trunk I haven't had a compiler problem with them in while. I consider them solid at this point. Go Sven! > > > I know

Re: [Lazarus] A big thank you!

2015-11-04 Thread Sven Barth
Am 04.11.2015 21:03 schrieb "Ondrej Pokorny" : > In particular I don't use Generics because of the issues with compiler and CodeTools. I can live without them. (I am not telling that I don't like them - I do.) Issues that are addressed in 3.0.0? Issues fixed in 3.1.1? Reported

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-31 Thread Sven Barth
Am 31.10.2015 00:14 schrieb "Bo Berglund" : > The biggest hurdle I have now is getting a TCP socket component > working so I can plug it into the problem unit. I have tried several > different approaches but am unfortunately not done yet. And I hesitate > to ask more

Re: [Lazarus] annoying (attn: Michael Schnell)

2015-10-26 Thread Sven Barth
Am 26.10.2015 10:59 schrieb "Michael Schnell" : > > On 10/26/2015 10:09 AM, Mattias Gaertner wrote: >> >> The point is that it is annoying. If you don't know how to fix it, then please remove it before you send the mail. > > I am rather sure that it's not added to the thread by

Re: [Lazarus] *SPAM* Re: *SPAM* Re: Lazarus implementation of TListView etc?

2015-10-26 Thread Sven Barth
Am 26.10.2015 09:29 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 10/23/2015 05:01 PM, Sven Barth wrote: >> >> >> It will depend on the specific initialization whether it can do any harm (especially with the widgetset not initialized) if left i

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-23 Thread Sven Barth
Am 23.10.2015 09:45 schrieb "Michael Schnell" : >> In this case I do not want to re-invent all of the communications and data parsing code... > > You obviously are out of luck (As already discussed, additionally to the "visual-component" issues, the Event-queue issue will hit

Re: [Lazarus] *SPAM* Re: Lazarus implementation of TListView etc?

2015-10-23 Thread Sven Barth
Am 23.10.2015 14:20 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 10/23/2015 02:12 PM, Sven Barth wrote: >> >> He simple needs to get the unit to compile (which he did by adding the LCL dependency) and stay clear from using any of the cod

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-23 Thread Sven Barth
Am 23.10.2015 14:29 schrieb "Bo Berglund" : > So I am a bit surprised that just using this unit would make the FPC > command program not work... It's not exactly FPC's fault, but more that one must not take one's environment for granted. E.g. on Windows you basically always

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-23 Thread Sven Barth
Am 23.10.2015 07:39 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > Then refactor / clean-up the code to remove such "gui" dependencies if > you want a true console application. Windows always has a GUI - so there > you can get away with including GUI units, widgets or clipboard in

Re: [Lazarus] Hour of Code 2015

2015-10-22 Thread Sven Barth
Am 22.10.2015 22:39 schrieb "Johannes W. Dietrich" < j.w.dietr...@medizinische-kybernetik.de>: > > The Hour of Code is coming again! > > The Hour of Code, a one-hour introduction to computer science, is a global movement reaching tens of millions of students in more than 180 countries. In

  1   2   3   4   5   6   7   8   9   10   >