> In reply to your message of August 29, 2003 > > > And it has been already a longint for 5 years. > > Which pre-dates all of NT4, win2000, XP, 2003 ... Which are true 32 bit > operating systems.
NT4 is older, I run 2000 and before that its beta's on my work space for 24 hours/a week since early 2000. > I can't help wondering if the handle is somehow being changed by the type > mismatch giving rise to duplicate handles... which is bound to do strange > things. A corrupt handle will be detected, since the object on the kernel side won't be valid. (a handle is kind of an index/pointer into an object list on the kernel side, the object itself has probably some corruption detection measures) To me, it sounds more like an alignment or typing error in some record structure you use to pass a record to the kernel than a rotten handle. But first we must pinpoint the exact call. Increase the granularity of your error detection (getlasterror or so) should do that. Does somebody know something more about Winapi errorhandling? Please step forward :_) _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal