RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype& varbytes-still stuck

2011-08-10 Thread Ludo Brands
> Oops, sorry, you're right. Your cygwin diffs don't seem to > agree with (the way I use) fpc patch; I got it to apply only > the first part of the patch... Now it works. > The patches I upload to bugs.freepascal are made with svn diff. The ones I sent you earlier were made with cygwin diff sin

Re: [fpc-pascal] Working Free Pascal android JNI example

2011-08-10 Thread Felipe Monteiro de Carvalho
Hello, I am ressuscitating this ancient thread because I'd like to continue the talk about it =) My main doubt here is if androidprt0.as is really required, which would mean that I can only produce android libraries if I make changes to the compiler. Benjamin, couldn't one just declare the missin

[fpc-pascal] timer_create on linux

2011-08-10 Thread Max Vlasov
Hi, I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). It was a lcl program, but I narrowed it to a console one. Here is the lines without extra codes of releasing (the error appears before), What can be wrong with the code below? Tha

RE : RE : [fpc-pascal] Re: RE : RE : RE : Assigning value to ftVariantdatatype& varbytes-still stuck

2011-08-10 Thread Ludo Brands
> > I do get a segfault in the last test when assigning to > > ftWideString256. When tracing the code it crashes when moving the > > size+1 chracters to the database. This fixed length moving is > > fundamentally wrong. The string is only 20 or so chars long and > > TCustomBufDataset.SetFieldData

Re: [fpc-pascal] Working Free Pascal android JNI example

2011-08-10 Thread Thomas Schatzl
Hi, On Wed, 10 Aug 2011 11:09:26 +0200, Felipe Monteiro de Carvalho wrote: Hello, I am ressuscitating this ancient thread because I'd like to continue the talk about it =) My main doubt here is if androidprt0.as is really required, which would mean that I can only produce android libraries if I

Re: [fpc-pascal] timer_create on linux

2011-08-10 Thread michael . vancanneyt
On Wed, 10 Aug 2011, Max Vlasov wrote: Hi, I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). It was a lcl program, but I narrowed it to a console one. Here is the lines without extra codes of releasing (the error appears before),

Re: [fpc-pascal] Working Free Pascal android JNI example

2011-08-10 Thread Thomas Schatzl
Hi, On Wed, 10 Aug 2011 11:59:03 +0200, Thomas Schatzl wrote: Hi, On Wed, 10 Aug 2011 11:09:26 +0200, Felipe Monteiro de Carvalho wrote: Hello, I am ressuscitating this ancient thread because I'd like to continue the talk about it =) My main doubt here is if androidprt0.as is really required

[fpc-pascal] Quitting simplehttpserver

2011-08-10 Thread dhkblaszyk
ZeelandNet Webmail I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but when I try to request a non existing page and then go back to the existing page, the server quits. I have tried GDB, but I get

Re: [fpc-pascal] Re: RE : RE : RE : Assigning value to ftVariantdatatype& varbytes-still stuck

2011-08-10 Thread Martin Schreiber
On Wednesday 10 August 2011 11:51:41 Ludo Brands wrote: > What I propose is: > 1 to create overloaded versions of SetFieldData and GetFieldData that > include a length parameter, to change TStringField.SetAsString and > TWideStringField.SetAsWideString to use these versions and to migrate the > di

Re: [fpc-pascal] Working Free Pascal android JNI example

2011-08-10 Thread Felipe Monteiro de Carvalho
On Wed, Aug 10, 2011 at 11:59 AM, Thomas Schatzl wrote: > However, you might want to use the hack from > http://mantis.freepascal.org/view.php?id=18833 on android for now. What do you think about merging this hack to trunk and to 2.6.0? I can do the commit on trunk. I think that a hack support i

Re: [fpc-pascal] Quitting simplehttpserver

2011-08-10 Thread dhkblaszyk
On Wed, 10 Aug 2011 12:06:15 +0200, wrote: Nevermind, I overlooked the deactivation code in the example. Darius I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but when I try to request a non exist

Re: [fpc-pascal] Working Free Pascal android JNI example

2011-08-10 Thread Jonas Maebe
On 10 Aug 2011, at 12:10, Felipe Monteiro de Carvalho wrote: On Wed, Aug 10, 2011 at 11:59 AM, Thomas Schatzl wrote: However, you might want to use the hack from http://mantis.freepascal.org/view.php?id=18833 on android for now. What do you think about merging this hack to trunk and to 2.6

Re: [fpc-pascal] timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 2:04 PM, wrote: > > > On Wed, 10 Aug 2011, Max Vlasov wrote: > > Hi, >> >> I tried to implement linux timer with timer_create and signals, but an >> exception always fired (External:SIGUSR1) >> What can be wrong with the code below? >> > > I assume threads are used fo

RE : [fpc-pascal] Re: RE : RE : RE : Assigning value toftVariantdatatype& varbytes-still stuck

2011-08-10 Thread Ludo Brands
> MSEgui version of tbufdataset uses UnicodeString in > recordbuffer for string > fields, see file lib/common/db/msebufdataset.pas. > Well done. Ludo ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/lis

RE : RE : RE : [fpc-pascal] Re: RE : RE : RE : Assigning value toftVariantdatatype& varbytes-still stuck

2011-08-10 Thread Ludo Brands
> Uploaded a patch to > http://bugs.freepascal.org/view.php?id=19930. Initially, > because of the crash, I wanted to submit another bug report > but the more I dig into this, the more I feel the definition > of SetFieldData/GetFieldData without a length/size parameter > and strings passed as p

[fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 1:18 PM, Max Vlasov wrote: > Hi, > > I tried to implement linux timer with timer_create and signals, but an > exception always fired (External:SIGUSR1). > Hmm, it seems that it's not a 'wrong' exception, I executed the same program from console and it worked. So there's

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Jonas Maebe
On 10 Aug 2011, at 14:24, Max Vlasov wrote: On Wed, Aug 10, 2011 at 1:18 PM, Max Vlasov wrote: I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). Hmm, it seems that it's not a 'wrong' exception, I executed the same program

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 4:34 PM, Jonas Maebe wrote: > > > Can I somehow tell it to >> ignore some, for example 'SIG35'? I tried to add it to Language exceptions >> ignore list as 'External: SIG35', 'External:SIG35' (without space), SIG35. >> Nothing helped. >> > > handle SIG35 nostop noprint pass

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Jonas Maebe
On 10 Aug 2011, at 15:32, Max Vlasov wrote: On Wed, Aug 10, 2011 at 4:34 PM, Jonas Maebe >wrote: Can I somehow tell it to ignore some, for example 'SIG35'? I tried to add it to Language exceptions ignore list as 'External: SIG35', 'External:SIG35' (without space), SIG35. Nothing helped.

Re: RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype& varbytes-still stuck

2011-08-10 Thread Reinier Olislagers
On 10-8-2011 9:49, Ludo Brands wrote: >> Oops, sorry, you're right. Your cygwin diffs don't seem to >> agree with (the way I use) fpc patch; I got it to apply only >> the first part of the patch... Now it works. >> > > The patches I upload to bugs.freepascal are made with svn diff. The ones I >

Re: RE : RE : [fpc-pascal] Re: RE : RE : RE : Assigning value to ftVariantdatatype& varbytes-still stuck

2011-08-10 Thread Reinier Olislagers
On 10-8-2011 11:51, Ludo Brands wrote: >>> I do get a segfault in the last test when assigning to >>> ftWideString256. When tracing the code it crashes when moving the >>> size+1 chracters to the database. This fixed length moving is >>> fundamentally wrong. The string is only 20 or so chars long

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 5:43 PM, Jonas Maebe wrote: > > > I tried adding >> --eval-command="handle SIGUSR1 nostop noprint pass" >> > > While this won't solve your problem, as Michael said you should not use > SIGUSR1 because it's probably already used by the system. > > SIG35 behaves the same. St

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Jonas Maebe
On 10 Aug 2011, at 16:12, Max Vlasov wrote: SIG35 behaves the same. Strangely, I looked in system monitor for gdb command-line, it looked ok /usr/bin/gdb -silent -i mi -nx --eval-command="handle SIG35 nostop noprint pass" but after the same Initialization output dialog it still stops with

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 6:20 PM, Jonas Maebe wrote: > > On 10 Aug 2011, at 16:12, Max Vlasov wrote: > > SIG35 behaves the same. Strangely, I looked in system monitor for gdb >> command-line, it looked ok >> >> /usr/bin/gdb -silent -i mi -nx --eval-command="handle SIG35 nostop noprint >> pass" >>

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Helmut Hartl
Am 10.08.11 16:56, schrieb Max Vlasov: Jonas, I see that you probably have your reasons not to use gdb inside the lazarus, but it was quite decent for me until this strange unavoidable moment :) It still is, hope I will find a work around Max Max, This works (for me) 1) Add a file like : /

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 7:28 PM, Helmut Hartl wrote: > Am 10.08.11 16:56, schrieb Max Vlasov: > > Jonas, I see that you probably have your reasons not to use gdb inside the >> lazarus, but it was quite decent for me until this strange unavoidable >> moment :) It still is, hope I will find a work

[fpc-pascal] Linking generics with long names with STABS gives Undefined Symbol

2011-08-10 Thread cobines
Hello. I have the following program: program atest; {$mode objfpc}{$H+} uses Classes, SysUtils, fgl; type TMyClass = class end; TControlObjectSpecializedWithAVeryLongNameOfClass = class end; {$IFDEF USELONGNAME} TMyType = TControlObjectSpecializedWithAVeryLongNameOfClass; // Error

[fpc-pascal] Patch to add GLX 1.4 support

2011-08-10 Thread Michalis Kamburelis
Hi, For people working with new OpenGL features: I just submitted a patch to upgrade our GLX unit to GLX 1.4, add some new GLX extensions, and add comfortable functions to check existence of a particular GLX extension/version. This allows you to easily use modern GLX "FB config" functions to initi

[fpc-pascal] The fpOpen call on a serial port blocks on a Mac. Why?

2011-08-10 Thread Bruce Tulloch
I am using the latest synaser (007.005.002) from the synapse library which works just fine with (USB) serial ports on Linux and Windows but Mac OSX 10.6 it is proving problematic. The call which opens the port (synaser.pas:946) is: FHandle := THandle(fpOpen(FDevice, O_RDWR or O_SYNC)); where i

[fpc-pascal] Where's my OSX window dressing?

2011-08-10 Thread Bruce Tulloch
I'm new to OSX so bear with me. Something has changed but I can't tell what. The consequence is that my Lazarus/FPC generated OSX applications are now missing their "window dressing"? It's like the OSX window manager has gone AWOL when I run my Lazarus apps. That is, the apps run fine but they run

Re: [fpc-pascal] Where's my OSX window dressing?

2011-08-10 Thread Bruce Tulloch
Okay, sorted. I had inadvertently relocated the application's main form design position to 0,0 and it was specified to appear at Form.Position poDefault which seems to mean the design location. I've changed the Form.Position to poDesktopCenter and it works okay now. What puzzles me is that OSX all