Re: [fpc-pascal] Firebird embedded supported on Windows 64 by SEH patch

2013-03-09 Thread Paul Ishenin
09.03.13, 15:49, Reinier Olislagers пишет: Sergei Gorelkin enabled Win64 SEH support in trunk r23732: * Make Win64 SEH support enabled by default. If necessary to disable, compiler should be cycled with OPT=-dDISABLE_WIN64_SEH. Mantis #24012. Does win32 SEH differs much from 64 bit version?

Re: [fpc-pascal] Firebird embedded supported on Windows 64 by SEH patch

2013-03-09 Thread Sven Barth
Am 09.03.2013 09:36 schrieb Paul Ishenin paul.ishe...@gmail.com: 09.03.13, 15:49, Reinier Olislagers пишет: Sergei Gorelkin enabled Win64 SEH support in trunk r23732: * Make Win64 SEH support enabled by default. If necessary to disable, compiler should be cycled with

Re: [fpc-pascal] Sigsegv with refcounting interface

2013-03-09 Thread Jonas Maebe
On 09 Mar 2013, at 02:37, Joao Morais wrote: On Fri, Mar 8, 2013 at 4:09 PM, Flávio Etrusco flavio.etru...@gmail.com wrote: procedure addintf(const aintf: IUnknown); (...) addintf(TInterfacedObject.Create); (...) It's a pity, but I don't know whether it's fixable (or if needs to

Re: [fpc-pascal] Firebird embedded supported on Windows 64 by SEH patch

2013-03-09 Thread Florian Klaempfl
Am 09.03.2013 08:49, schrieb Reinier Olislagers: Sergei Gorelkin enabled Win64 SEH support in trunk r23732: * Make Win64 SEH support enabled by default. If necessary to disable, compiler should be cycled with OPT=-dDISABLE_WIN64_SEH. Mantis #24012. Is it usefull to make DISABLE_WIN64_SEH a

[fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
I don't know whether anybody can help me with this one, but I'm working on something where I need a program to be able to create login-capable database users on-the-fly. I was hoping to be able to use either PostgreSQL or Firebird as the backend, but while Postgres is working fine Firebird is

Re: [fpc-pascal] Firebird embedded supported on Windows 64 by SEH patch

2013-03-09 Thread Reinier Olislagers
On 9-3-2013 13:51, Florian Klaempfl wrote: Am 09.03.2013 08:49, schrieb Reinier Olislagers: Sergei Gorelkin enabled Win64 SEH support in trunk r23732: * Make Win64 SEH support enabled by default. If necessary to disable, compiler should be cycled with OPT=-dDISABLE_WIN64_SEH. Mantis #24012.

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Tony Whyman
Mark, You should be able to do this using the Firebird Services API. IBX exposes this API under the Firebird Admin tab and the TIBSecurityService class is what you are looking for. This has methods to DisplayUsers, which gets info on all users and puts it into an array property. Adduser,

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Ludo Brands
On 03/09/2013 02:08 PM, Mark Morgan Lloyd wrote: I don't know whether anybody can help me with this one, but I'm working on something where I need a program to be able to create login-capable database users on-the-fly. I was hoping to be able to use either PostgreSQL or Firebird as the

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Ludo Brands
On 03/09/2013 03:03 PM, Tony Whyman wrote: Mark, You should be able to do this using the Firebird Services API. IBX exposes this API under the Firebird Admin tab and the TIBSecurityService class is what you are looking for. This has methods to DisplayUsers, which gets info on all users

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 03/09/2013 02:08 PM, Mark Morgan Lloyd wrote: I don't know whether anybody can help me with this one, but I'm working on something where I need a program to be able to create login-capable database users on-the-fly. I was hoping to be able to use either PostgreSQL or

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Tony Whyman
Mark, I did something like this a few years ago and the Services API is your friend - but it is not standard SQL... Regards Tony Whyman MWA On 09/03/13 14:38, Mark Morgan Lloyd wrote: Thanks Ludo and Tony, I'll take a look at that a bit later in the day but I'm sure I'll have more questions.

Re: [fpc-pascal] Firebird embedded supported on Windows 64 by SEH patch

2013-03-09 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: Is it usefull to make DISABLE_WIN64_SEH a command line switch? From my perspective: no, as it breaks using external dlls whose errors/exceptions incorrectly bubble up through to FPC. However, perhaps Sergei has another opinion... Probably

Re: [fpc-pascal] Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
Tony Whyman wrote: Mark, I did something like this a few years ago and the Services API is your friend - but it is not standard SQL... [Nod] I suspect that the key is the way that Firebird documents various activities as differing subsets of SQL, i.e. defining a table is one subset,

[fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Reinier Olislagers
On 9-3-2013 17:31, Mark Morgan Lloyd wrote: Tony Whyman wrote: Mark, I did something like this a few years ago and the Services API is your friend - but it is not standard SQL... [Nod] I suspect that the key is the way that Firebird documents various activities as differing subsets of

Re: [fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 9-3-2013 17:31, Mark Morgan Lloyd wrote: [Nod] I suspect that the key is the way that Firebird documents various activities as differing subsets of SQL, i.e. defining a table is one subset, accessing it is another, managing users a third and so on. I could have

[fpc-pascal] Set size limit

2013-03-09 Thread Daniel Gaspary
Hi, I am trying to create a Set Type... TMyEnum = (me1, me2, me3); // more than 500 elements TMySet = set of TMyEnum; ...but I get the following error: Error: illegal type declaration of set elements [1] The problem seems to be that TMyEnum has more than 256 elements. Can I specify

Re: [fpc-pascal] Set size limit

2013-03-09 Thread Jonas Maebe
On 09 Mar 2013, at 21:52, Daniel Gaspary wrote: The problem seems to be that TMyEnum has more than 256 elements. Can I specify such Set with some compiler option ? No. My fpc is pre 2.6, any change on new versions concerning Sets limits? No.

Re: [fpc-pascal] What's a unit?

2013-03-09 Thread 印場 乃亜
Hi, On 2013/02/19, at 22:53, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Mark Morgan Lloyd said: Does a unit- rather than something it contains- have any sort of representation which is recognisably distinct from an object? Maybe. But what it certain doesn't have is

Re: [fpc-pascal] differences between .pp and .pas files

2013-03-09 Thread 印場 乃亜
Hi, I also always use .pas, but the idea of using .pp for sources only intended to compile in FPK and .pas for more portable source code is interesting. The only problem is there is no free Delphi for me to test with anymore, right? Since FreePascal works on nearly every platform, I don't

Re: [fpc-pascal] Exe file names (was:differences between .pp and .pas files)

2013-03-09 Thread 印場 乃亜
Joao, I think you had better be careful what you say. Someone will rename their entire /usr/bin directory and wonder why the system stops working! You can rename executables you create, but don't change the names of standard ones! Anyway you can tell what programs unix will *try* to run

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-09 Thread 印場 乃亜
Hi, On 2013/02/28, at 9:16, Simon Kissel sc...@untergrund.net wrote: I still believe FPC should leave the delphi compatible idea, or clearly state that it means compatible with Delphi 7 for legacy purposes and nothing newer. Then innovate the rest of the language on its own in a Pascal-like

[fpc-pascal] Re: Connecting to Firebird using FPC/Lazarus over a LAN with user creation privilege

2013-03-09 Thread Reinier Olislagers
On 9-3-2013 19:56, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 9-3-2013 17:31, Mark Morgan Lloyd wrote: It identifies itself as 2.5, and by that I explicitly mean that I'm querying it rather than trusting any claims by the Debian package maintainer, and according to the