----- Original Message ----- 
From: "Olle Raab" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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... )


_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to