Subject | Re: FreePascal client access errors |
---|---|
Author | realjimbeam |
Post date | 2010-09-16T12:15:23Z |
--- In firebird-support@yahoogroups.com, "hvlad" <hvlad@...> wrote:
regards,
jb
> --- In firebird-support@yahoogroups.com, "realjimbeam" <realjimbeam@> wrote:Thanks, I'll fiddle with the code based on your hints below first & go to fb-devel if required.
> >
> > Hi all,
> >
> > I wonder if this is the right group to post questions regarding problems with accessing Firebird 2.1.3 using the FreePascal compiler (64 bit) on Windows. FreePascal support guys suggest the client library/embedded Firebird is crashing.
>
> Such questions should be asked in fb-devel list.
>Correct. Apparently you can use a PtrInt that varies depending on architecture (http://wiki.freepascal.org/Integer).
> After quick look at ibase40.pp i found that it defines ISC_STATUS as Long. There should be sizeof(ISC_STATUS) = sizeof(Pointer), i.e. ISC_STATUS should be 4-byte on 32-bit and 8-byte on 64-bit.
> I don't know what is Long in FreePascal but guess it is always defined as 4-byte integer, correct ?
>Thanks a lot for the hints, I'll go digging through the code!
> Also look at ibase60.inc:
>
> Type
> ...
> ISC_STATUS = clong; // wrong for x64
> ISC_INT64 = clonglong;
>
>
> Regards,
> Vlad
regards,
jb