[fpc-pascal] UTF-16 strings

2011-12-13 Thread Mark Morgan Lloyd
When targeting not-Windows (i.e. predominantly Linux but possibly other unixes) and wanting to do character-by-character parsing of 16-bit Unicode characters, what's the best string type to use- WideString? I can see various discussion from the past, but is there a corresponding e.g.

[fpc-pascal] nostackframe -- possible to create faulty code?

2011-12-13 Thread Bernd
Is it thoretically possible to make an otherwise perfectly working program crash with access violation only because I used the nostackframe modifier on a nested procedure? I have observed this twice now, but I can't reliably reproduce it. function TBoard.MoveGen(Index: Integer): Integer; var

[fpc-pascal] Re: nostackframe -- possible to create faulty code?

2011-12-13 Thread Bernd
2011/12/13 Bernd prof7...@googlemail.com: var  Index: Integer; sorry, Index is actually an Argument, and not contained in the local var section. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] nostackframe -- possible to create faulty code?

2011-12-13 Thread Jonas Maebe
On 13 Dec 2011, at 15:42, Bernd wrote: Is it thoretically possible to make an otherwise perfectly working program crash with access violation only because I used the nostackframe modifier on a nested procedure? Yes. See also http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=15527

[fpc-pascal] Re: nostackframe -- possible to create faulty code?

2011-12-13 Thread Bernd
An unhandled exception occurred at $0806A90B : EAccessViolation : Access violation $0806A90B ADDMOVE, line 61 of chess_movegen_inc.pas $0806FAD2 TBOARD__PERFT, line 33 of chess_search_inc.pas $08066832 DOCOMMAND, line 263 of chess_interface.pas $08066D73 RUN, line 359 of

[fpc-pascal] Re: nostackframe -- possible to create faulty code?

2011-12-13 Thread Bernd
2011/12/13 Bernd prof7...@googlemail.com: An unhandled exception occurred at $0806A90B : EAccessViolation : Access violation  $0806A90B  ADDMOVE,  line 61 of chess_movegen_inc.pas  $0806FAD2  TBOARD__PERFT,  line 33 of chess_search_inc.pas  $08066832  DOCOMMAND,  line 263 of

[fpc-pascal] PPU checksum issue

2011-12-13 Thread ik
Hello, I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading /usr/lib/fpc/2.5.1/units/x86_64-linux/fcl-db/fpxmlxsdexport.ppu Recompiling fpXMLXSDExport, checksum changed for base64

[fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
It only happen on Lazarus. normal app does not raise such error. On Tue, Dec 13, 2011 at 18:55, ik ido...@gmail.com wrote: Hello, I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading

[fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread leledumbo
Old PPU of base64, try recompiling everything (because there's a chance that more packages are having the same problem), make a clean build if possible. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/PPU-checksum-issue-tp5072092p5072617.html Sent from the Free

Re: [fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
On Tue, Dec 13, 2011 at 22:14, leledumbo leledumbo_c...@yahoo.co.id wrote: Old PPU of base64, try recompiling everything (because there's a chance that more packages are having the same problem), make a clean build if possible. A clean svn version of fpc 2.6.0 (rc), and Lazarus 0.9.31 r34161

Re: [fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread Jonas Maebe
On 13 Dec 2011, at 22:08, ik wrote: A clean svn version of fpc 2.6.0 (rc), and Lazarus 0.9.31 r34161 FPC 2.5.1 x86_64-linux-gtk 2. It happens only on install all of the components. After clean all. I also tried to re-download lazarus from svn as a clean copy, again the same issue. You

Re: [Lazarus] [fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
On Tue, Dec 13, 2011 at 23:40, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 13 Dec 2011 23:08:39 +0200 ik ido...@gmail.com wrote: On Tue, Dec 13, 2011 at 22:14, leledumbo leledumbo_c...@yahoo.co.id wrote: Old PPU of base64, try recompiling everything (because there's a