[fpc-pascal] WinCE multithreading

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Sep 14 19:36:29 CEST 2011


On 14 Sep 2011, at 19:16, Fabio Luis Girardi wrote:

> I'm debugging and I have doubt: I'm using records and pointers to
> records. On WinCE wiki, the use of unaligned only shows with pointers
> to integer. And with recods, I must do
> 
> unalinged(myrec^).member
> 
> or
> 
> unalinged(myrec^.member)


If the pointer itself is stored at a potentially unaligned address, you need unaligned(myrec). If the record the pointer points to is stored at a potentially unaligned address, you need unaligned(myrec^.member). If both are the case, you need unaligned(unaligned(myrec)^.member)

I'm fairly certain that unaligned(myrec^).member won't do anything.


Jonas


More information about the fpc-pascal mailing list