But since we're talking about behavior in the OS not the VCL or compiler, more pertinent perhaps is the OS:
I'm running on a fully SP'd and updated Windows XP Are you running Vista/Windows 7 by any chance > -----Original Message----- > From: delphi-boun...@delphi.org.nz [mailto:delphi- > boun...@delphi.org.nz] On Behalf Of Karl Reynolds > Sent: Tuesday, 16 February 2010 4:19 p.m. > To: NZ Borland Developers Group - Delphi List > Subject: Re: [DUG] Is it a bug in latest version of Delphi? > > > r := SendMessage(Listbox1.Handle, LB_GETITEMDATA, 100, 0); > > if GetLastError <> 0 then > > RaiseLastOSError; > > > > if r = -1 then > > ShowMessage('oops'); > > > > > > Will yield only the "oops" message, no OS error. > > Tested this code too. I get a system error, "invalid index". > > How odd. > > Cheers, > Karl > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-requ...@delphi.org.nz with > Subject: unsubscribe _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe