Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

-28482 Errors When Selecting Markers

Q: I am trying to select markers, but my code is crashing inside Q3WindowRectPick_New with this error: -28482, kQ3ErrorInvalidObject. Since my frame is in local screen coordinates and looks correct, why am I getting an invalid object from Q3WindowRectPick_New (unless the data is incorrect). It doesn't seem likely that the data is incorrect, since it's so simple.

A: Your code isn't really crashing. The debug version of the library is letting you know that you are doing something it can't deal with. The problem is that you cannot sort on a window pick rect, so the line:

myWPPickData.data.sort = kQ3PickSortNearToFar;

should read:

myWPPickData.data.sort = kQ3PickSortNone;

[Jun 01 1995]