Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

FreePascal and InterBase/Firebird problem under Windows

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jilani Khaldi

Hi all,
under Linux the FreePascal/InterBase60 example works fine but under Windows it gives me this error:

Connecting to testdb.gdb: OK.
Starting Transaction : OK.
Allocating statement : OK.
Runtime error 201 at 0x0040141D
0x0040141D
0x00401A49

I have tried to modify something in the source code but I couldn't solve it. Some help is needed. Thanx.

jilani

Reply by email

Pierre Muller
to Jilani Khaldi
Jilani Khaldi wrote 9 lines
Hi all, under Linux the FreePascal/InterBase60 example works fine but under Windows it gives me this error: Connecting to testdb.gdb: OK. Starting Transaction : OK. Allocating statement : OK. Runtime error 201 at 0x0040141D 0x0040141D 0x00401A49

This is a Range Check error
that you have in your program because you use -Cr option (might be in your config file).
try to use -gl to recompile both your program
and the Interbase packages
this will add line info
in the backtrace.
It could be a simple longint to dword conversion
problem...

I have tried to modify something in the source code but I couldn't solve it. Some help is needed. Thanx.

Reply by email

Jilani Khaldi
to Pierre Muller
Show quoted text 18 lines
>under Linux the FreePascal/InterBase60 example works fine but under Windows it gives me this error: > >Connecting to testdb.gdb: OK. >Starting Transaction : OK. >Allocating statement : OK. >Runtime error 201 at 0x0040141D > 0x0040141D > 0x00401A49 This is a Range Check error that you have in your program because you use -Cr option (might be in your config file). try to use -gl to recompile both your program and the Interbase packages this will add line info in the backtrace. It could be a simple longint to dword conversion problem...

That is. I just have put {$R-} directive and it run without error.

Thank you.

jilani

Reply by email

Sebastian Günther
to Jilani Khaldi
That is. I just have put {$R-} directive and it run without error.

hmmm... this only makes it working, but doesn't solve the real problem. Can you try to use $R+ with heap trace enabled nevertheless, so that we can track down this issue? Thanks

- Sebastian

Reply by email

Jilani Khaldi
to Sebastian Günther
hmmm... this only makes it working, but doesn't solve the real problem. Can you try to use $R+ with heap trace enabled nevertheless, so that we can track down this issue?

The error 201 appears again, so the problem has been only hidden with $R-.

/jilani

Reply by email