larryh@tekgvs.TEK.COM (Larry Hutchinson) (10/20/87)
I have a dim recolection that this has been covered before and it might also be covered in one of the few technical notes that I a missing, so I appologize in advance if that is the case. At any rate, I specalize in re-inventing the wheel and wasting mucho hours discovering system bugs that everyone else already seems to know about. Anyway, I have found what I consider a bug in the SFGetFile package. It appears that the DlgHook routine is not called with a stream of null 'events' if there are window update events pending. This will happen if you have a dialog box as a lead-in to SFGetFile. My fix was to call my outer loop until the event queue was empty and then call SFGetFile. (This is the proper thing to do anyway since it avoids those ugly white bloches from un-updated windows.) I suspect that the folks from Apple will claim that this is not a bug because there are events in the queue and we don't want SFGetFile to lie, do we? To that, I say "horsepucky!". Larry Hutchinson, Tektronix, Inc. PO Box 500, MS 50-383, Beaverton, OR 97077 { decvax,allegra }!tektronix!tekgvs!larryh PS System 3.2 or 4.2a4.