I'll give it a shot. I've wrapped the whole method in
try
{
...
}catch( Exception e )
{
StringBuilder b = new StringBuilder();
b.append( "modl.length = " ).append( modl.length );
b.append( "\nproj.length = " ).append( proj.length );
b.append( "\nfrustum.length = " ).append( frustum.length );
for( int i = 0; i < frustum.length; i++ )
{
b.append( "\n\tfrustum[ " ).append( i ).append( " ].length = " )
.append( frustum[ i ].length );
}
throw new RuntimeException( b.toString(), e );
}
I'll send this to the reporting users, see what they can come up with.
Can anyone think of anything else worth logging?
Cheers!
Ryan McNally
On Jan 19, 12:27 pm, Frank Weiss <[email protected]> wrote:
> Ok its statically verifiable. I still suggest try catching the exception and
> logging diagnostics.
> On Jan 19, 2011 2:35 AM, "RyanMcNally" <[email protected]> wrote:
>
>
>
>
>
>
>
> > Does anyone have any suggestions on what diagnostics to add? The code
> > is statically verifiable not to throw AIOOBEs, so I've got no idea
> > what to check for at runtime.
>
> > Given that there is no threading, the arrays are defined exactly once,
> > and the same indices are successfully written to 8 lines earlier and
> > read from 2 lines earlier, I don't know what to check for.
>
> > On Jan 18, 10:07 pm, Frank Weiss <[email protected]> wrote:
> >> I suggest catching the AIOBE and adding your own diagnostics, via a
> toast,
> >> log, or analytics code.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en