Re: [Lazarus] Developing on Linux with files on Windows NTFS

2015-02-05 Thread Sergei Gorelkin
05.02.2015 18:53, Donald Ziesig пишет: Hi All! I have been trying to develop a multi-platform app with the IDE on Linux (MInt) and the source files on a Windows NTFS partition. I build and test on windows but my primary work is done on linux so I don't stay logged in to windows very long.

Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-31 Thread Sergei Gorelkin
30.01.2015 17:39, Mark Morgan Lloyd пишет: On mipsel running on Qemu compiling Lazarus fails with .. (9009) Assembling codecache (3104) Compiling customcodetool.pas (3104) Compiling codetree.pas /usr/local/share/lazarus-trunk-47318/components/codetools/codetree.pas(824,1) Fatal: Internal

Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-10 Thread Sergei Gorelkin
10.01.2015 16:39, Mattias Gaertner пишет: On Sat, 10 Jan 2015 12:49:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Mark Morgan Lloyd wrote: Lazarus trunk at about 47318 is OK with FPC 2.7.1 29398 on SPARC using Debian Lenny, Same combination on a PPC Mac raises an

Re: [Lazarus] Error Compiling Lazarus: tageometry

2014-05-22 Thread Sergei Gorelkin
22.05.2014 5:44, Daniel Gaspary пишет: Hi, I am trying to compile lazarus trunk with fpc 2.7.1(Rev 27809), but the error bellow is being raised: tageometry.pas(374,85) Error: Asm: [sqrtsd mem128,xmmreg] invalid combination of opcode and operands My OS is Linux(Kubuntu 14.04), 64 bits.

Re: [Lazarus] Error Compiling Lazarus: tageometry

2014-05-22 Thread Sergei Gorelkin
22.05.2014 10:46, Sergei Gorelkin пишет: 22.05.2014 5:44, Daniel Gaspary пишет: Hi, I am trying to compile lazarus trunk with fpc 2.7.1(Rev 27809), but the error bellow is being raised: tageometry.pas(374,85) Error: Asm: [sqrtsd mem128,xmmreg] invalid combination of opcode and operands

Re: [Lazarus] Building trunk Lazarus with trunk FPC

2013-12-22 Thread Sergei Gorelkin
21.12.2013 21:11, Mark Morgan Lloyd пишет: I know that this is not a supported combination, but I've just been trying to build trunk Lazarus (r43576) with trunk FPC (r26258) to see if I can work around a couple of recently-fixed issues. FPC trunk builds clean, and Lazarus (default

Re: [Lazarus] Callback and Threads problem

2012-04-06 Thread Sergei Gorelkin
06.04.2012 16:31, Leonardo M. Ramé пишет: I have a similar problem to this: http://www.lazarus.freepascal.org/index.php?topic=10571.0 My main program launches a thread, that loads a shared library, then execute a function who receives as a parameter a pointer to a callback function and an

Re: [Lazarus] Updates to Synedit and 64 bit have linking problems

2012-03-18 Thread Sergei Gorelkin
18.03.2012 14:08, Mattias Gaertner пишет: On Sun, 18 Mar 2012 10:50:27 +0200 ikido...@gmail.com wrote: Hello, I tried to compile Lazarus today from svn (after two weeks of not updating it), and got the following error message: lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13)

[Lazarus] r35016, win32, 'find in files' command ends up with a crash

2012-02-12 Thread Sergei Gorelkin
Hello, I got the IDE crash with stack overflow when trying 'find in files' command, the failure occurs when it is about to show the 'search results' form. Shows up at least in Windows XP and Windows 7 (both Aero and standard themes). An empty search results form can be shown using the

Re: [Lazarus] r35016, win32, 'find in files' command ends up with a crash

2012-02-12 Thread Sergei Gorelkin
13.02.2012 1:43, Juha Manninen пишет: 2012/2/12, Sergei Gorelkinsergei_gorel...@mail.ru: I got the IDE crash with stack overflow when trying 'find in files' command, the failure occurs when it is about to show the 'search results' form. Shows up at least in Windows XP and Windows 7 (both Aero

Re: [Lazarus] FW: Re: more file operation problems

2011-12-15 Thread Sergei Gorelkin
15.12.2011 16:10, Bart пишет: On 12/12/11, Chris Kellingkelli...@cox.net wrote: As I posted in the other thread (http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-December/069100.html) I think the problem is in the definition of your record type stockitem. It uses strings. Explicitely

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-29 Thread Sergei Gorelkin
29.11.2011 13:17, michael.vancann...@wisa.be пишет: On Tue, 29 Nov 2011, Graeme Geldenhuys wrote: I would even add a FindNode() method which internally uses Node[] - just to make in very clear to the developer using this class. I guess if I ever need to work with XML (lets hope that never

Re: [Lazarus] How to get the package version from a LPK file?

2011-11-29 Thread Sergei Gorelkin
29.11.2011 13:42, Graeme Geldenhuys пишет: On 29/11/2011, Sergei Gorelkinsergei_gorel...@mail.ru wrote: To add to this, the core DOM is simply not supposed to do things like path navigation. OK, then lets simplify the problem and remove the usage of a node path. Can you solve to original

Re: [Lazarus] Causing bluescreen on windows by move() procedure

2011-02-26 Thread Sergei Gorelkin
Bo Berglund wrote: So it could be the Prolific USB-to-Serial driver then maybe? For example if the port is opened at one baudrate bu the source sends a lot of data at a much lower baudrate? It is hard to guess, but the blue screen itself typically provides the information about the nature of

Re: [Lazarus] Causing bluescreen on windows by move() procedure

2011-02-26 Thread Sergei Gorelkin
Bo Berglund пишет: On Sat, 26 Feb 2011 18:26:33 +0300, Sergei Gorelkin sergei_gorel...@mail.ru wrote: Bo Berglund wrote: So it could be the Prolific USB-to-Serial driver then maybe? For example if the port is opened at one baudrate bu the source sends a lot of data at a much lower baudrate

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-02-16 Thread Sergei Gorelkin
Graeme Geldenhuys пишет: Op 2011-02-15 17:38, Sven Barth het geskryf: In Delphi such strings with codepage need to be defined with type and thus they are different types (not compatible regarding var). Lets hope FPC doesn't take that stupid Delphi idea to implementation. A UnicodeString with

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-02-16 Thread Sergei Gorelkin
Sven Barth пишет: Am 16.02.2011 11:52, schrieb Hans-Peter Diettrich: I must add, that I would be very surprised if Embarcadero doesn't use native encoded string types for the unicode string support in the upcoming Delphi under Windows (UTF-16), Linux (UTF-8), Mac (UTF-8) etc.. I'm not 100% sure

Re: [Lazarus] Lazarus and Word.Application

2011-02-08 Thread Sergei Gorelkin
Csabi пишет: Hi everybody! I have a question about word.application. I cannot make Lazarus compiled program to insert 2 rows into a word doc, first line be bold. wordapp:=getactiveoleobject('Word.Application'); wordapp.selection.font.bold:=true; or false, doesn't matter. Either i pick

Re: [Lazarus] How to use GetElementById?

2011-01-27 Thread Sergei Gorelkin
silvioprog writes: Hi guys, I use the GetElementById in PHP with sucess, but in FPC I not know how use. (skipped) GetElementById works by itself, but it requires a DTD to be present *and* it is able to resolve DTDs only at the filesystem level. Since your sample document contains DTD

Re: [Lazarus] Custom draw menu

2010-11-06 Thread Sergei Gorelkin
Graeme Geldenhuys пишет: OK, so that explains menu items (as in the items in dropdown menus or popup menus), but that doesn't explain the TMainMenu bar. Nobody puts images in those (well no app I have ever seen in the last 15 years), and that's the component two bug reports were raised about,

Re: [Lazarus] Custom draw menu

2010-11-05 Thread Sergei Gorelkin
Paul Ishenin пишет: 06.11.2010 0:59, Graeme Geldenhuys wrote: VCL is a wrapper for Win API controls, and it supports glyphs in menus - no custom drawing. So do MFC apps as far as I know. Why do you think VCL has no custom drawing? Did you study their code or just think so? If the last then try

Re: [Lazarus] TThread.WaitFor blocks the main event loop under Linux

2010-10-08 Thread Sergei Gorelkin
Graeme Geldenhuys wrote: ... Did anybody know about this? Anybody know how we can get TThread.WaitFor to actually work under Linux/Unix? It is the same old song: absense of centralized event handling in Linux. In Windows, the main thread waits with MsgWaitForMultipleObjects, so it remains

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Tobias Giesen пишет: Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you should use events, WaitForMultipleObjects etc. Creating a suspended TThread is a

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing before it was completely

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Sergei Gorelkin wrote: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing

Re: [Lazarus] Delphi compatible XML lib

2010-09-26 Thread Sergei Gorelkin
Juha Manninen (gmail) пишет: On Sunday 26 September 2010 18:30:10 Michael Van Canneyt wrote: It should not be hard to create a Delphi-compatible layer on top of it, but honestly: I don't see why you would want to do that... I am thinking how to improve the Delphi converter. Some projects fail

Re: [Lazarus] DTD ENTITY question

2010-05-31 Thread Sergei Gorelkin
Adem wrote: What is the general name for the adding stuff after the parameter definition? The tag !ENTITY % name PUBLIC foo bar declares the entity, and %name; is used to actually include it. IOW, the example above has already defined '%HTMLlat1;' so what is the point in adding (seemingly

Re: [Lazarus] DTD ENTITY question

2010-05-30 Thread Sergei Gorelkin
Adem wrote: I am writing a general parser for DTD files and have made some headway. The FCL xml parser (xmlread unit) can parse XML-conformant DTD files for several years already. I need to know the general (canonical?) name for '*%HTMLlat1*;' at the end of the following line: !ENTITY %

Re: [Lazarus] too many TXMLConfigs! (att: fcl-xml package maintainers)

2010-05-29 Thread Sergei Gorelkin
dmitry boyarintsev wrote: Hello Developers I'm a bit puzzled there're 2 units in fpc-xml: xmlcfg and xmlconfg xmlconf is the actual one. xmlcfg is unable to properly handle non-ascii data. Maybe it's a good idea to declare it deprecated by now. Both of them declare TXMLConfig class. The

Re: [Lazarus] virus note about 0.9.28.2 package?

2010-05-27 Thread Sergei Gorelkin
Mattias Gaertner wrote: Does someone know, if any virus scanner does not like the lazarus-0.9.28.2-fpc-2.2.4-win32.exe On freepascal.ru forum, there are at least two messages, one mentioning this file and Kaspersky tool, another one mentioning FPC installer and Nod32 tool. In general, once

Re: [Lazarus] My two wishes for the Message window of the IDE

2010-02-28 Thread Sergei Gorelkin
dmitry boyarintsev пишет: On Sun, Feb 28, 2010 at 8:53 PM, Sergei Gorelkin sergei_gorel...@mail.ru wrote: There should be no need to test for the IDE. Just write messages to some named IPC channel, and have the IDE (or whatever other log viewer application) listen on the other side. IIRC

Re: [Lazarus] xml reading problem

2010-02-15 Thread Sergei Gorelkin
Andrea Mauri wrote: I reported it as Bug 0015776 [FPC] FCL Thanks, andrea Fixed in r14919. Note, however, that using TextFile-based ReadXMLFile overloaded variant is somewhat discouraged, because it is slower than other variants and is not able to handle utf-16 encodings. Sergei --

Re: [Lazarus] Memory leaks when I read an XML file

2010-01-10 Thread Sergei Gorelkin
Pierre Delore wrote: ... I try to search in the wiki and I didn't found thing that help me. Since you did not specify your compiler version, I guess it's something pre-2.4.0. See this link: http://wiki.freepascal.org/User_Changes_2.4.0#dom_unit:_memory_management_for_node_lists Either

Re: [Lazarus] TDOMParseOptions, TDOMParser, TXMLDocument, ... how to set TDOMParser Options?

2009-11-27 Thread Sergei Gorelkin
Michael Joyner ᏩᏯ пишет: Is there any way to have the domParser process import tags ? No. This isn't the functionality of the parser, but rather XSD (I guess) which is not yet implemented. Sergei -- ___ Lazarus mailing list

Re: [Lazarus] TDOMParseOptions, TDOMParser, TXMLDocument, ... how to set TDOMParser Options?

2009-11-26 Thread Sergei Gorelkin
Michael Joyner ᏩᏯ пишет: TDOMParseOptions, TDOMParser, TXMLDocument, ... how to set TDOMParser Options? I am trying to the use the xmlread and xmlwrite units. I would like to set the DOM Parser options, I can see in 'fpcsrc/2.2.4/packages/fcl-xml/src' they are defined in the class by

Re: [Lazarus] heaptrc - Is it even worth using?

2009-10-05 Thread Sergei Gorelkin
Lee Jenkins wrote: Definitely related to TXMLDocument. Apparently, it is either a complete mess and fraught with memory leaks or am misunderstanding how to use it. Although, its not the first XML API I've used. Once again, its back to Delphi I go :-( Your trouble looks like issue

Re: [Lazarus] heaptrc - Is it even worth using?

2009-10-05 Thread Sergei Gorelkin
Lee Jenkins wrote: Now, for my own personal education: (skipped) In the above trace, it looks like (and I have confirmed) the leak occurs inside of the LoadMappings method when I was using the TXMLDocument object before updating my lazarus snapshot, but I am curious as to why the

Re: [Lazarus] strange links in wiki pages

2009-09-02 Thread Sergei Gorelkin
Graeme Geldenhuys wrote: Graeme Geldenhuys het geskryf: For example: http://wiki.lazarus.freepascal.org/XML_Tutorial Here is another example: http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial And at the bottom of the page there is a link to Developing with Graphics. Again,

Re: [Lazarus] Lazarus has unique font sizes

2009-08-15 Thread Sergei Gorelkin
Mattias Gaertner wrote: Please create a bug report. Done: http://bugs.freepascal.org/view.php?id=14357 Sergei -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Problem reading an XML file

2009-07-17 Thread Sergei Gorelkin
John Meyer wrote: I'm trying to retrieve an XML file from a web site but I'm not able to do it through this code. Maybe I'm being a little too VB-ish, but here's my code: Reading xml files directly from http isn't supported yet. You have to retrieve the data from network using some other