"Arnold Reinders" <✉somewhere.com> wrote in message news:✉forums.codegear.com...
> It appears to be threadsafe, each thread processing his own index. I > have tested this code very often. However, very rarely I get a illegal > memory read/write. Are there things I overlook? Should I read some > articles (i couldn't find them)?
Technically, nothing about it is thread-safe. You should always provide a lock around multi-threaded access to shared resources. But as long as neither bitmap is ever being resized or having its underlying handles regenerated, in other thread while you are reading the Scanline[property] or modifying its contents, then you should be ok.
-- Remy Lebeau (TeamB)