RE : RE : [fpc-pascal] XML_XSD export was: Timezone information in adatasetdatetimefield?

2011-07-26 Thread Ludo Brands
Attached the patch with the changes against git. Ludo I'm getting an http://www.w3.org/2001/XMLSchema:element not taken into account in this context (freely translated from French) error. Fixed this by adding xs:sequence between xs:complexType and xs:choice maxOccurs=unbounded

[fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Lukasz Sokol
On 26/07/2011 00:23, Paul Nicholls wrote: I didn't know that freepascal handled binary formatted numbers?!? % cheers, Paul [pun] yeah don't tell anyone, we don't want them to play games with pointers ;) like the c-programmers do ;) [/pun] L.

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-26 Thread Reinier Olislagers
On 25-7-2011 21:48, José Mejuto wrote: Hello FPC-Pascal, Monday, July 25, 2011, 12:54:13 PM, you wrote: RO Correct. Would you happen to have some cross platform code readily RO available that spits out either: RO 1. Offset from UTC for a certain (historical or future) date/time RO 2.

[fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread herux
Hi, I use RSA encryption library lockbox turbo power. in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}. but when I compile it on ubuntu 64bit, there is an error when compiling component/LockBox/LbCipher.pas(708,10) Error: Unknown identifier EBX

RE : RE : RE : [fpc-pascal] XML_XSD export was: Timezone information inadatasetdatetimefield?

2011-07-26 Thread Ludo Brands
Did some further testing. Adding sequence wasn't necessary. xs:element name=table parenting to xs:choice maxOccurs=unbounded minOccurs=0 instead of xs:complexType is the right solution. This corresponds also with your ADO.Net sample. Patch attached. Ludo Attached the patch with the changes

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Mark Morgan Lloyd
Jorge Aldo G. de F. Junior wrote: Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : [Snip] A library for network calculations would have to include IPv6, and ideally would interwork with (the equivalent of)

Re: RE : RE : [fpc-pascal] XML_XSD export was: Timezone information in adatasetdatetimefield?

2011-07-26 Thread Reinier Olislagers
You don't even let me sleep... ;) Thanks, Ludo. Applied in mercurial commit 48 2af395d3102c Some questions: 1: newb alert: if I do patch -i xmlxsd.diff.txt fpxmlxsdexport.pp I get patching file `fpxmlxsdexport.pp' patch: `' expected at line 12 of patch Maybe some kind of line ending issue?

RE : RE : RE : [fpc-pascal] XML_XSD export was: Timezone informationin adatasetdatetimefield?

2011-07-26 Thread Ludo Brands
Thanks, Ludo. Applied in mercurial commit 48 2af395d3102c The patch was improved in a later message... Some questions: 1: newb alert: if I do patch -i xmlxsd.diff.txt fpxmlxsdexport.pp I get patching file `fpxmlxsdexport.pp' patch: `' expected at line 12 of patch Maybe some kind

Re: [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
At Tuesday, 26.07.2011 on 10:13 herux wrote: Hi, I use RSA encryption library lockbox turbo power. in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}. but when I compile it on ubuntu 64bit, there is an error when compiling

Re: RE : RE : RE : [fpc-pascal] XML_XSD export was: Timezone informationin adatasetdatetimefield?

2011-07-26 Thread Reinier Olislagers
On 26-7-2011 10:42, Ludo Brands wrote: Thanks, Ludo. Applied in mercurial commit 48 2af395d3102c The patch was improved in a later message... You're right. Did a cut and paste from a few lines below and didn't pay attention to the double convert. Ludo As per mercurial commit 52:

RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Ludo Brands
Hi, I use RSA encryption library lockbox turbo power. in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}. but when I compile it on ubuntu 64bit, there is an error when compiling component/LockBox/LbCipher.pas(708,10) Error: Unknown

Re: RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread herux
thanks for the info for you guys, where can I read the complete freepascal asm document for 64bit ? - - -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/compiling-turbo-power-lockbox-on-ubuntu-64-tp4634016p4634787.html Sent from the Free Pascal - General

Re: RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
At Tuesday, 26.07.2011 on 15:31 herux wrote: thanks for the info for you guys, where can I read the complete freepascal asm document for 64bit ? Assembler is not FreePascal specific. But before you rewrite that Assembler into x86_64 compatible Intel assembler, you better rewrite it into

[fpc-pascal] Jpeglib thread safe?

2011-07-26 Thread Shaun Simpson
Hi, Looking around I have read that the C equivalent Jpeglib is not thread safe. I believe that the Pascal code is derived from the C. Is the Free Pascal implementation of Jpeglib is thread safe? I am using a class similar to FPReadJPEG and FPWriteJPEG from multiple threads, do I need

Re: RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread herux
I was thinking about the best alternative yes, I think you're right. better to write it into native. thank you - - -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/compiling-turbo-power-lockbox-on-ubuntu-64-tp4634016p4635040.html Sent from the Free Pascal -

Re: [fpc-pascal] Jpeglib thread safe?

2011-07-26 Thread Max Vlasov
On Tue, Jul 26, 2011 at 6:40 PM, Shaun Simpson shaun.simp...@crsltd.comwrote: Hi, ** ** Looking around I have read that the C equivalent Jpeglib is not thread safe. I believe that the Pascal code is derived from the C. ** ** Is the Free Pascal implementation of Jpeglib is

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Jorge Aldo G. de F. Junior
I dont like to take local variable initialization for granted. Even if the manual says that its guaranteed that a local variable will start with 0, i prefer to initialize everything to a known value myself. An aditional Move $varaddress, 00 at startup wont slow things down noticeably when your

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread waldo kitty
On 7/26/2011 15:27, Jorge Aldo G. de F. Junior wrote: I dont like to take local variable initialization for granted. Even if the manual says that its guaranteed that a local variable will start with 0, i prefer to initialize everything to a known value myself. +1000~ this is