×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    16

    Unhappy Weird IllegalArgumentException

    Hi folks,

    I have a weird problem with a 3650. The game I'm developing works fine for a few plays, but after that, on the paint loop of the in game part (at least that's where I think it is, because if I comment out the contents of the function, it seems to work fine) an IllegalArgumentException is thrown.

    However, no matter where I put a try/catch block, it doesn't catch the exception.

    I've tried putting it round the paint loop, the whole game loop and even in startApp, but to no avail.

    Anyone got any suggestions?

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    16
    Don't you just love those moments of clarity when you realise just how much of a muppet you've been...

    I was trapping an exception on creating my images and if it failed, it tried again, by using a recursive call to the function. So, after a while, it got stuck in an infinite loop and then eventually crapped out and forced the exception to interupt the MIDlet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •