[fpc-devel] Some more THandle problems
Marco van de Voort
marcov at stack.nl
Sat Nov 20 14:30:07 CET 2010
In our previous episode, Sergei Gorelkin said:
> > 2. THandleStream has a field FHandle which is defined as Integer. Now
> > this handle is filled either by the constructor which takes an Integer
> > as well or by e.g. TFileStream which gets its handle from
> > FileOpen/FileCreate. Those return a THandle and you might guess what
> > happens if a value >= 2^32 is returned. ^^
> >
> 1 and 2 fixed in rev. 16383
Is it wise to recycle thandle for that? Windows has a system where all
handles are of the same type, but other systems might not. (and have
different handles for e.g. dynloaded shared libs and files).
More information about the fpc-devel
mailing list