Re: [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread Felipe Monteiro de Carvalho
;) ? That would be export from Dataset to ODS? Why not simply implement a importer from Dataset for FPSpreadsheet instead of creating a new library to handle ODS? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread Felipe Monteiro de Carvalho
will need to at least add a dependency to paszlib and possibly to a xml library too. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Felipe Monteiro de Carvalho
command line program. Mac OS X has a number of particularities. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] How to use tilog from tiopf2?

2011-08-01 Thread Felipe Monteiro de Carvalho
Does anyone know how to use this? I tryed googling, but didn't have much luck ... thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
, there are lots of things going on and it would be much easier for my coding if I could keep the program running on the web server ... Any ideas? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner andrew.t.brun...@gmail.com wrote: I agree with this one.  The only thing I could add would be AJAX WebSockets for really advanced applications. Do WebSockets allow to use TCP sockets in JavaScript or is it something else? -- Felipe Monteiro de

Re: [fpc-pascal] FreeVision usable in a client/server database application?

2011-08-04 Thread Felipe Monteiro de Carvalho
Lazarus is very easy to learn, you can read the wiki and now there is also a book in english explaining how to use it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] {$R in arm-linux

2011-08-08 Thread Felipe Monteiro de Carvalho
call the resource compiler /usr/local/bin/fpcres, switching to external mode androidlcltest.lpr(21) Fatal: There were 1 errors compiling module, stopping thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: RE : [fpc-pascal] {$R in arm-linux

2011-08-08 Thread Felipe Monteiro de Carvalho
Indeed, I had /usr/bin/fpcres I created a symbolic link and it moved on =) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-08-10 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-08-10 Thread Felipe Monteiro de Carvalho
/arm) or crashes badly on unload at least on some linuxes (x86/amd64 on ubuntu). =( The LCL contains initialization/finalization sections, so that could prevent the LCL to work via JNI. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc

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

2011-08-11 Thread Felipe Monteiro de Carvalho
On Wed, Aug 10, 2011 at 12:41 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: No, hacks like that do not belong in trunk. And about release branches then? Are hacks allowed to be merged directly to release branches? -- Felipe Monteiro de Carvalho

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

2011-08-12 Thread Felipe Monteiro de Carvalho
.as ? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-08-12 Thread Felipe Monteiro de Carvalho
Or more generally: Any ideas of where / what I should look for to fix this? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] random numbers negative

2011-08-16 Thread Felipe Monteiro de Carvalho
Another idea: -1 * Random(127); -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Felipe Monteiro de Carvalho
The quotes are bash commands, they are not part of command line. I wrote on this topic not long ago, but for TProcess: http://wiki.lazarus.freepascal.org/Executing_External_Programs#Parameters_which_contain_spaces_.28Replacing_Shell_Quotes.29 -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Felipe Monteiro de Carvalho
the app did not work if you have quotes in a parameter (I don't remember which one it was anymore). Similarly I'd suppose that many other applications won't work with quotes. Maybe some will work -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Felipe Monteiro de Carvalho
partially quoted arguments AFAIK Not sure about Free Pascal Trunk however. If FPC Trunk also does not support this, then I'm sure a patch to improve StringToPPChar would be welcome. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] WinCE multithreading

2011-09-14 Thread Felipe Monteiro de Carvalho
for example, I haven't yet had a single crash due to unaligned access ... and I made no use of this keyword so far. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Felipe Monteiro de Carvalho
: http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code I want my code compiling in Delphi 7 too, so I can have problems with this? You can always use {$ifndef fpc} and {$ifdef fpc} to write code specific to Delphi or FPC -- Felipe Monteiro de Carvalho

[fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Felipe Monteiro de Carvalho
=' + ARequest.Content); With this code I receive an empty ARequest.Content Any ideas? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Felipe Monteiro de Carvalho
('[TwebLobbyServer.DataModuleRequest] ARequest.Content=' + ARequest.Content); --- HERE This is where I get an empty ARequest.Content -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Felipe Monteiro de Carvalho
, password) The asynchronous flag True when fetching is done asychronously. False when fetching is done synchronously. Did you properly encode the content ? What exactly do I need to do? Pass a header saying it is UTF-8? I am just sending simple text. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Felipe Monteiro de Carvalho
headers: openpoker3.cgi, referer: http://localhost:8080/cgi-bin/openpoker3.cgi?module=MainPage -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Felipe Monteiro de Carvalho
=MainPageAction=MyAction That didn't help. Also I was not using actions before and it worked with GET without specifying an action. I think that this part of the URL cannot be used in POST, so we would need another way to select the module. Although I might be wrong. -- Felipe Monteiro de

[fpc-pascal] fpweb and custom debug log

2011-10-17 Thread Felipe Monteiro de Carvalho
to be able to see the log messages directly in the browser if an exception happens. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc has trouble with array types

2011-10-18 Thread Felipe Monteiro de Carvalho
XlatPrime () : array of byte; const ConstXlatPrime: array[0..19] of Byte = ( $64, $73, $66, $64, $3b, $6b, $66, $6f,); begin Result := ConstXlatPrime; end; -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: fpweb and reading the contents of a request

2011-10-18 Thread Felipe Monteiro de Carvalho
how any of this could apply. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CGI under Freepascal

2011-10-18 Thread Felipe Monteiro de Carvalho
I think that fpweb is the best option, since most people seam to be using it. But the wiki has an example about how to do a more simple CGI app: http://wiki.lazarus.freepascal.org/CGI_Web_Programming The provided minimal example teaches all the basics. -- Felipe Monteiro de Carvalho

[fpc-pascal] Stack corruption setting UnicodeString Char

2011-10-19 Thread Felipe Monteiro de Carvalho
(widestr, len); I already fixed the problem by simply not setting this last widechar to #0, but now I got puzzled: Any ideas why this doesn't work? It crashes only a bit after this procedure, but I found that this was the statement which caused the problem. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Stack corruption setting UnicodeString Char

2011-10-19 Thread Felipe Monteiro de Carvalho
chars in a string calls UniqueString, which is undesirable and inneficient. Moreover, even if using the PWideChar, I believe that the correct version would be without the '@' (i.e.: PWideChar(widestr)[len] := #0), wouldn't it? Good idea! I think you found the problem. -- Felipe Monteiro de

Re: [fpc-pascal] Stack corruption setting UnicodeString Char

2011-10-19 Thread Felipe Monteiro de Carvalho
in the Pascal Widestring Manager -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] sqldb how to find a record fast with primary key

2011-10-19 Thread Felipe Monteiro de Carvalho
to the primary key in other tables, which does not match the RecNo. How can I jump fast a table to the record which has a particular PrimaryKey? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-20 Thread Felipe Monteiro de Carvalho
? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread Felipe Monteiro de Carvalho
Ping, No sqldb specific answers on this one? I did some googling and also searched for TPrimaryKey or LocalIndex in sqldb without results ... =( thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread Felipe Monteiro de Carvalho
to stablish a connection, open a table, read/write some fields, go to a different record, go to a record which has FieldX=Y? Does it support Postgres? Does it work in Mac OS X? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: RE : [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread Felipe Monteiro de Carvalho
, but I'm not sure if then I would be able to index the table and gain speed in future requests. maybe... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-22 Thread Felipe Monteiro de Carvalho
of a object is: MyObject := TMyObject.Create; try MyObject.DoSomething(); finally MyObject.Free; end; To implement this object you should implement Create, DoSomething and Destroy. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: RE : [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-22 Thread Felipe Monteiro de Carvalho
. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
]); DBComm.PQConnection.ExecuteDirect(SQLText); DBComm.SQLTransaction.Commit; Not to mention that in this second way I would have no idea how to obtain the primary key... any suggestions welcome. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist

[fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
Hello, Ok, searching some more I see that select scope_identity() could return the generated primary key. But how to get the value?  DBComm.PQConnection.ExecuteDirect(SQLText); The method above has no return value =( -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
', 1, true); ALTER TABLE ONLY GameSession ADD CONSTRAINT GameSession_pkey PRIMARY KEY (SessionId); Note that I did not invest this stuff ... I just copied from stuff to create other tables which were already in the project. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
the index automatically! o.O Which clearly it is not doing... I couldn't yet get a generic answer using SQL supported by Postgres, or whatever thing which I could reuse in sqldb. thanks, -- Felipe Monteiro de Carvalho -- Felipe Monteiro de Carvalho

Re: RE : [fpc-pascal] How to insert a record and get the primary key withsqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] Re: How to insert a record and get the primary keywith sqldb?

2011-10-22 Thread Felipe Monteiro de Carvalho
:= (SQLGameSession.Fields[0] as TLargeIntField).AsLargeInt; SQLGameSession.Close; But now I get a new error Cannot open a non-select statement o.O Regardless of the final as res; being there or not. -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Felipe Monteiro de Carvalho
am using fpc 2.4.2 ... I'll try to update ... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Felipe Monteiro de Carvalho
if it is possible with CGI), so that's what caused so much confusion for me thanks everyone, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Felipe Monteiro de Carvalho
immense dependencies for FPC, which would surely make the package impossible to install in most systems. Actually it is already impossible to install FPC RPMs in PCLinuxOS and other systems because of the text-mode IDE dependencies. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Felipe Monteiro de Carvalho
is really a no go. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
... thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
is to create an OnShowException handler for the application, and see what that prints. (normally you should get a normal error page in case of an error, not the 'premature end of script headers') It seams that this didn't help either. The OnShowException was never called. -- Felipe Monteiro de

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
(CT))0 then ProcessUrlEncoded(M, ContentFields) else if CL0 then begin {$ifdef CGIDEBUG} SendDebug('InitPostVars: unsupported content type:'+CT); {$endif} Raise Exception.CreateFmt(SErrUnsupportedContentType,[CT]); --- error here -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
If I remove the line from JavaScript which sets the content type I just get: exception at 0043004B: Unsupported content type: text/plain; charset=UTF-8. =/ -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
; but it is empty. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
There is no form and no form data here. I want to pass raw data via post. And yes, I checked that it is sent correctly. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Felipe Monteiro de Carvalho
is worng. I already have a data structure ready which I adapted, but using GET is rather inneficient, you have to encode it, so I thought that I should just pass to POST to be able to send more arbitrary data. HTTP per se should pose no restrictions to what I am sending via POST. -- Felipe Monteiro

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-11-01 Thread Felipe Monteiro de Carvalho
...@gmail.com wrote: You can send arbitrary data using MULTIPART/FORM-DATA Indeed, but I'd rather specify my own mime-type and not use any pre-defined format for packaging my data. This kind of thing just adds overhead and slowness. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] EnumToString

2011-11-01 Thread Felipe Monteiro de Carvalho
One option is RTTI: http://wiki.lazarus.freepascal.org/Runtime_Type_Information_(RTTI)#Converting_a_enumerated_type_to_a_string -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: RE : [fpc-pascal] Premature end of headers using fcl-web and POST

2011-11-01 Thread Felipe Monteiro de Carvalho
, and the native client is not subject to HTML rules. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-08 Thread Felipe Monteiro de Carvalho
I am happy to say that the RPM can now be installed cleanly in Mageia Linux (and therefore I suppose that in Mandriva and PCLinuxOS too), thats to the clever fix by Joost. Thanks a lot =) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Generics vs TCollection

2011-11-09 Thread Felipe Monteiro de Carvalho
, because I never use them except in the LCL parts that use them, my favorites are TFPList, and the generic equivalent (TFPGList or something like that). -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Felipe Monteiro de Carvalho
, but the example files there do no use the lazarus package, but rather the one from fpc. Please file a bug report. Is it best to use the lazarus/components version or the fpc version? Yes, lazarus/components The fpc version no longer exists. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Felipe Monteiro de Carvalho
which I still dont use, but will: Pen.EndCap, joint, startcap -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-10 Thread Felipe Monteiro de Carvalho
Hello, What is: fpc-2.6.0rc1.arm-linux.tar ? Is it supposed to run on arm-linux or is it a cross-compiler x86-linux - arm-linux? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Felipe Monteiro de Carvalho
? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Felipe Monteiro de Carvalho
fpvectorial uses mostly polygonal regions. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] parent class as a parameter type

2011-11-14 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pchar with more than 255 characters

2011-11-14 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] parent class as a parameter type

2011-11-15 Thread Felipe Monteiro de Carvalho
to the parameter. The example which you are mentioning has no var. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pchar with more than 255 characters

2011-11-16 Thread Felipe Monteiro de Carvalho
this in the docs: http://www.freepascal.org/docs-html/rtl/strings/strlen.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Felipe Monteiro de Carvalho
Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

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

2011-11-25 Thread Felipe Monteiro de Carvalho
problems. I don't have any patches at hand here because I always use my snapshot, which always works for me. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] OpenGL ES bitmap drawing

2011-11-25 Thread Felipe Monteiro de Carvalho
background. There do is a pixel format missmatch, but I still would expect to see something, even if a malformed image, but here I get nothing... =( I would be immensely greatful if someone could take a look and throw some hints here at what is necessary to get this working. -- Felipe Monteiro de

[fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
://stackoverflow.com/questions/1964880/cannot-find-lib-libc-so-6 Points to using -sysroot from gcc -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
a command line option to specify where the extra input file is, if there isn't already one. -k is not enough, because the link to /usr/lib/crtn.o is put into the link.res file, so we get no change to bypass that with -k -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
On Sat, Nov 26, 2011 at 1:38 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: thanks for the tips, I figured out (although I still don't know if the resulting binary works). Complementing: Yes, the binary works fine. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] OpenGL ES bitmap drawing

2011-11-26 Thread Felipe Monteiro de Carvalho
that) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
ones should be linked into the library. Unfortunately the ndk documentation is much worse then the sdk documentation. It isn't even available online for browsing. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] OpenGL ES bitmap drawing

2011-11-26 Thread Felipe Monteiro de Carvalho
('[engine_draw_frame] 10 Error='+IntToStr(Integer(lError; eglSwapBuffers(engine^.display, engine^.surface); lError := glGetError(); if lError GL_NO_ERROR then LOGW(PChar('[engine_draw_frame] 11 Error='+IntToStr(Integer(lError; end; -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] OpenGL ES bitmap drawing

2011-11-26 Thread Felipe Monteiro de Carvalho
aha, color was missing, but I added it here: // Draw a square glColor4f(1, 0, 0, 1); ... to no help -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

[fpc-pascal] JNI crash

2011-11-28 Thread Felipe Monteiro de Carvalho
): be966714 80813e00 /system/lib/libdvm.so I/DEBUG ( 69): be966718 cd58 [heap] I/DEBUG ( 69): be96671c 41056c04 I/ActivityManager( 102): Process com.pascal.lcltest (pid 15168) has died. -- Felipe Monteiro de Carvalho ___ fpc-pascal

[fpc-pascal] Re: JNI crash

2011-11-28 Thread Felipe Monteiro de Carvalho
not be Java_com_pascal_jnitest_AndroidJNITest_LCLDrawToBitmap But should be Java_com_pascal_lcltest_LCLActivety_LCLDrawToBitmap But I am still very interrested if anyone has any ideas why GetEnv crashes. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] OpenGL ES bitmap drawing

2011-11-28 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wireless configuration in Windows

2011-11-29 Thread Felipe Monteiro de Carvalho
;                              var NegotiatedVersion : DWord;                              var ClientHandle : Hwnd) : DWord; It looks like you forgot to add the calling convention: stdcall -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: JNI crash

2011-11-30 Thread Felipe Monteiro de Carvalho
Link to the related android-ndk thread: http://groups.google.com/group/android-ndk/browse_thread/thread/ba542483f062a828 -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Felipe Monteiro de Carvalho
and statistically strong, we change again too? And what about people using FPC only and depending on our Random being statistically strong, they are less important then theorical Delphi migrants? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist

Re: [fpc-pascal] Re: Why is Random(255) some 529x slower compared Delphi 7?

2011-12-08 Thread Felipe Monteiro de Carvalho
in the future need ifdefs for various delphi versions anyway. So the best solution is introducing MyRandom in your code, then no ifdefs will be required and it is guaranteed to work in future Delphi versions too. -- Felipe Monteiro de Carvalho ___ fpc

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Felipe Monteiro de Carvalho
not be utilized for encryption... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
the best approach would be to solve this. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
use it. But what do you mean exactly? Using the timeout 50? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
and then I could use it to implement a precise TTimer support in LCL-CustomDrawn-X11. If not, then it will stay like it is now until someone sends a patch to improve it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread Felipe Monteiro de Carvalho
() the application could hang in some corner cases. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread Felipe Monteiro de Carvalho
seriously doubt the battery usage concerns unless someone really measures it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Meego Harmattan (Nokia N9) and fpc

2011-12-24 Thread Felipe Monteiro de Carvalho
I read here that this should be doable with an FPC option to pass an assembler option, but I never used that. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] where are the sources for rtl.chm, fcl.chm ref.chm etc.?

2011-12-24 Thread Felipe Monteiro de Carvalho
felipe staff 1623 8 Nov 21:17 build_lcl_docs.lpi -rwxr-xr-x 1 felipe staff 3048 12 Ago 09:22 build_lcl_html.sh -rw-r--r-- 1 felipe staff 2253 8 Nov 21:17 fpdoc.css ... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Re: Finished full JVM Android application

2012-01-03 Thread Felipe Monteiro de Carvalho
-Android. LCL-CustomDrawn-Android is native and communicates via JNI with the Android Java APIs. And I don't see any reason to change it into using the JVM port even in a remote future, because it already works great. -- Felipe Monteiro de Carvalho ___ fpc

Re: [fpc-pascal] Postscriptcanvas

2012-01-15 Thread Felipe Monteiro de Carvalho
On Fri, Jan 13, 2012 at 3:31 PM, David Copeland david.copel...@jsidata.ca wrote: Is it possible to use the PostScriptCanvas unit in a non-gui program? For drawing or for printing? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread Felipe Monteiro de Carvalho
, as normally done. LCL applications do not need to be visual, just make an application without any forms. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-17 Thread Felipe Monteiro de Carvalho
, then noone would have written the code to support them in the first place) And if you dont like them, you dont need to use them. The LCL rarely uses newer compiler features. I would say the same for most code in the FCL. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Felipe Monteiro de Carvalho
If the use case is closing the main form without quitting the application, then I would prefer a property TApplication.QuitApplicationWhenMainFormCloses or something like that. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

  1   2   3   4   5   6   7   8   >