Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 05:31, schrieb Marcos Douglas: On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt wrote: On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP

Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-29 Thread Reinier Olislagers
On 28-3-2012 12:22, Reinier Olislagers wrote: > On 28-3-2012 11:36, Sven Barth wrote: >> Am 28.03.2012 11:12, schrieb Reinier Olislagers: >>> On 28-3-2012 11:04, Sven Barth wrote: >> (b) Maybe nobody needed it yet. I myself might be the first one at all >> who wanted to interface with Oracle on Win

Re: [fpc-pascal] Request redirection + login session in fpweb

2012-03-29 Thread michael
On Wed, 28 Mar 2012, leledumbo wrote: I'm currently building a web app using HTTP server application project + fpweb + tiopf (with sqlite backend). However, I'm stuck in this scenario: Imagine a user log's in to my web app, which could be done from any page (it's part of the layout), how can

[fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread J.-c. Chu
Hi, Could somebody explain why SizeOf() cannot be used in the definition of generic arrays? I know this is a current limitation of Delphi, but will it be possible to have this feature in Free Pascal first? -- Best Regards, J.-c. Chu ___ fpc-pascal mai

Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-29 Thread LacaK
Reinier Olislagers wrote / napísal(a): On 28-3-2012 12:22, Reinier Olislagers wrote: On 28-3-2012 11:36, Sven Barth wrote: Am 28.03.2012 11:12, schrieb Reinier Olislagers: On 28-3-2012 11:04, Sven Barth wrote: (b) Maybe nobody needed it yet. I myself might be the firs

Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-29 Thread Sven Barth
Am 29.03.2012 10:13, schrieb LacaK: Reinier Olislagers wrote / napísal(a): On 28-3-2012 12:22, Reinier Olislagers wrote: On 28-3-2012 11:36, Sven Barth wrote: Am 28.03.2012 11:12, schrieb Reinier Olislagers: On 28-3-2012 11:04, Sven Barth wrote: (b) Maybe nobody needed it yet. I myself m

Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread Sven Barth
Am 29.03.2012 10:14, schrieb J.-c. Chu: Hi, Could somebody explain why SizeOf() cannot be used in the definition of generic arrays? I know this is a current limitation of Delphi, but will it be possible to have this feature in Free Pascal first? Can you give a concrete example what you want

Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread J.-c. Chu
type TBytesOverlay = array [0..SizeOf(T) - 1] of Byte On March 29, 2012, Sven Barth wrote: > Am 29.03.2012 10:14, schrieb J.-c. Chu: >> Hi, >> >> Could somebody explain why SizeOf() cannot be used in the definition of >> generic arrays? I know this is a current limitation of Delphi, but will >>

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mark Morgan Lloyd
Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a client using Win7 so, I talked about this on lazarus-br list and asked to somebody do the test on Win7 and t

Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread Sven Barth
Am 29.03.2012 10:39, schrieb J.-c. Chu: type TBytesOverlay = array [0..SizeOf(T) - 1] of Byte As the following does work: type TBytesOverlayLongint = array[0..SizeOf(LongInt) - 1] of Byte; Your code should work as well, as e.g. TBytesOverlay should result in the above code. So please repo

Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread J.-c. Chu
Bug report filed at . Also, another, possibly related bug has been filed at . On March 29, 2012, Sven Barth wrote: > Your code should work as well, as e.g. TBytesOverlay should > result in the above code

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 4:17 AM, Sven Barth wrote: > > Am 29.03.2012 05:31, schrieb Marcos Douglas: > >> On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt >>  wrote: >>> >>> >>> >>> >>> On Wed, 28 Mar 2012, Marcos Douglas wrote: >>> Hi, I think SysUtils.GetEnvironmentVariable ha

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: > >> I know that I have to define the environment variable before or after >> starting the application or IDE. >> As I said, works in WinXP... but I had a little problem with a client >> using Win7 so, I talked about

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:06, schrieb Marcos Douglas: The application is installed and the system variable is created. The application and others process should be use this variable just calling SysUtils.GetEnvironmentVariable. Then let a FPC program print all passed environment variables as a test: ==

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mattias Gaertner
Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: >[...]> > === output end === > > > > Please note that in "cmd" the following are different: > > > > set FOO=bar > > => "FOO" -> "bar" > > set FOO = bar > > => "FOO " -> " bar" > > set FOO= bar > > => "FOO" -> " bar" > > set FOO =bar >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread michael . vancanneyt
On Thu, 29 Mar 2012, Marcos Douglas wrote: On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a c

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:16, schrieb Mattias Gaertner: Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: >[...]> > === output end === > > > > Please note that in "cmd" the following are different: > > > > set FOO=bar > > => "FOO" -> "bar" > > set FOO = bar > > => "FOO " -> " bar" > >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth wrote: > Am 29.03.2012 13:06, schrieb Marcos Douglas: > >> The application is installed and the system variable is created. The >> application and others process should be use this variable just >> calling SysUtils.GetEnvironmentVariable. > > > Then let

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:16 AM, Mattias Gaertner wrote: > > Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: > >>[...]> > === output end === >> > >> > Please note that in "cmd" the following are different: >> > >> > set FOO=bar >> >  => "FOO" -> "bar" >> > set FOO = bar >> >  => "FOO "

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:29, schrieb Marcos Douglas: On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth wrote: Am 29.03.2012 13:06, schrieb Marcos Douglas: The application is installed and the system variable is created. The application and others process should be use this variable just calling SysUtils.Ge

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:17 AM, wrote: > > > On Thu, 29 Mar 2012, Marcos Douglas wrote: > >> On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd >> wrote: >>> >>> Marcos Douglas wrote: >>> I know that I have to define the environment variable before or after starting the application or

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mark Morgan Lloyd
Marcos Douglas wrote: On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a client using Win7 so, I t

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:32 AM, Sven Barth wrote: > Am 29.03.2012 13:29, schrieb Marcos Douglas: > >> On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth >>  wrote: >>> >>> Am 29.03.2012 13:06, schrieb Marcos Douglas: >>> The application is installed and the system variable is created. The appl

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:45 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: >> >> On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd >> wrote: >>> >>> Marcos Douglas wrote: >>> I know that I have to define the environment variable before or after starting the application or IDE. >

[fpc-pascal] Re: Request redirection + login session in fpweb

2012-03-29 Thread leledumbo
Thanks, Michael. This framework is great, it just needs proper documentation... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Request-redirection-login-session-in-fpweb-tp5602126p5603802.html Sent from the Free Pascal - General mailing list archive at Nabble.co

[fpc-pascal] Re: Request redirection + login session in fpweb

2012-03-29 Thread leledumbo
I've tried it out, but the session doesn't seem to be shared among modules, is it correct that I set CreateSession to true for all modules? Please try the updated project (attached). The authentication is handled by ModAuth, but the login form (or welcome message + logout link) is handled by ModLa

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Chad Berchek
Works fine for me on Windows 7. Here's the Windows version details: Windows 7 Pro, 64-bit, with Service Pack 1. The "ver" command shows 6.1.7601. I tested 3 cases: 1. Setting the environment variable using the "set" command in a command line prompt then immediately running the test program. 2

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 9:41 PM, Chad Berchek wrote: > > Works fine for me on Windows 7. Here's the Windows version details: > > Windows 7 Pro, 64-bit, with Service Pack 1. The "ver" command shows > 6.1.7601. > > I tested 3 cases: > 1. Setting the environment variable using the "set" command in a

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread waldo kitty
On 3/29/2012 21:26, Marcos Douglas wrote: Thanks for the test. We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). The env variable was added before I start the application, always. and this is from command line (cmd.exe, command.exe or *shell) ?? or in the user or system environmen