[fpc-pascal]Apple Mac pointer problem
Skybuck@home.nl
skybuck at home.nl
Fri Sep 24 18:46:10 CEST 2004
----- Original Message -----
From: "Olle Raab" <olle.r at automagika.se>
To: <fpc-pascal at lists.freepascal.org>
Sent: Friday, September 24, 2004 3:57 PM
Subject: Re: [fpc-pascal]Apple Mac pointer problem
04-09-24 09.44, skrev Stephen Downs följande:
>
> Thanks for everyones input (Harold - it a Mac thing !!). I'm away for a
couple
> of days now so won't be able to follow up until next week but I guess I
need
> to read up on alignment of binary data.
>
> I assume from what you are saying is that Ptr(testDataHdl^) is the right
way
> to do it in FreePascal but I need to check on how the data is read into
the
> structure.
If the problem is the alignment, you can try to read element by element.
What about using the 'packed' directive ?
testData = record
testIndex : packed array [0..12] of integer;
end;
Wouldn't that solve any alignment problems ?
Or doesn't free pascal have a 'packed' directive ?
Or is it a reallllly strange mac problem ? :)
Bye,
Skybuck
( Gjez... outlook still uses the wrong default mail account... weird...
maybe it s because the mailing list uses my other mail account to sent mail
to... )
More information about the fpc-pascal
mailing list