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;
|
|