Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-23 Thread Søren Ager

Tomas Hajny wrote:

Are you willing to contribute your changes, so we could add unit 
sockets to supported units for the OS/2 target?


Sure - as soon as it actually works... Right now it compiles but my 
program crashes :-(



Take care,
  Soren

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] compiling code causes IDE to crash

2005-05-23 Thread Tony Pelton
hi all,

i'm new to Free Pascal.

wanted to throw this out to the group, see what they thought.

i was trying to port an algo written in 'C' to pascal.

i had written this much of the included function, and for some reason,
out of some reflex, i mistakenly tried to compile it, Alt+F9.

The 'fp.exe' IDE on Windows crapped out, with the IDE "flashing" and
information about how i needed to save my files as the IDE was going
to shutdown.

RADIUS_EARTH_KILOMETERS is a 'const : Double'.

is this something i should report to someone, and if so, who/where ?

-- SNIP --
{ lat lon need to be in radians }
function XSACalcFlatEarthCoord(lat,lon : Double) : TPoint2D;
Var lat0,lon0 : Double;
Var R1, R2 : Double;
Var e : Double = .001;
begin
lat0 := 0.0;
lon0 := 0.0;

R1=RADIUS_EARTH_KILOMETERS(e)/(e*(sin(lat0))^2)^(3/2);
end;

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: compiling code causes IDE to crash

2005-05-23 Thread Tony Pelton
On 5/23/05, Tony Pelton <[EMAIL PROTECTED]> wrote:
> Var e : Double = .001;

fwiw, after _alot_ of trial/error/ide segv's, i was able to isolate
the problem to the above 'Var' declaration.

Var e : Double = 0.001;

... works much better.

*shrug*

Tony

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-23 Thread Tomas Hajny
Date sent:  Mon, 23 May 2005 10:40:07 +0200
From:   Søren Ager <[EMAIL PROTECTED]>
To: FPC-Pascal users discussions 

Subject:Re: [fpc-pascal] SizeOf(File)  <> SizeOf(FileRec)
Send reply to:  FPC-Pascal users discussions 




> Tomas Hajny wrote:
>
> > Are you willing to contribute your changes, so we could add unit
> > sockets to supported units for the OS/2 target?
>
> Sure - as soon as it actually works... Right now it compiles but my
> program crashes :-(

OK, let me know if there's anything I could help you with.
Unfortunately, PMGDB is somewhat less comfortable than VP/2 IDE. :-(

Tomas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-23 Thread Søren Ager

Tomas Hajny wrote:

OK, let me know if there's anything I could help you with. 
Unfortunately, PMGDB is somewhat less comfortable than VP/2 IDE. :-(


Thank you!!! I had not seen the PM version of GDB - it is still not the 
same as VP/2 but it is a lot better that the text mode version.



Take care,
  Søren

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-23 Thread Tomas Hajny
Date sent:  Tue, 24 May 2005 06:56:40 +0200
From:   Søren Ager <[EMAIL PROTECTED]>
To: FPC-Pascal users discussions 

Subject:Re: [fpc-pascal] SizeOf(File)  <> SizeOf(FileRec)
Send reply to:  FPC-Pascal users discussions 





> > OK, let me know if there's anything I could help you with.
> > Unfortunately, PMGDB is somewhat less comfortable than VP/2 IDE. :-(
>
> Thank you!!! I had not seen the PM version of GDB - it is still not
> the same as VP/2 but it is a lot better that the text mode version.

Yes, it is. :-) If you encounter particular issues with GDB syntax,
just ask here. BTW (just in case you didn't know), one good thing
about GDB and the current environment is the possibility of post-
mortem debugging in case it crashed completely with a core dump
("core core" in (PM)GDB).

Tomas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal