You Are Here:

Community: Developer Discussion Boards

#1 Old Strange exception on 3410 with firmware v3 - 2003-03-25, 11:11

Join Date: Mar 2003
Posts: 16
disco2002
Offline
Registered User
Hi,

My code works perfectly on both 3410 phone with firmware v4 and emulator v1.0 but hangs on the phone with firmware v3. I have the following code in MIDlet class:

try {
canvas = new GameCanvas();
} catch (Exception e) {
Display.getDisplay(this).setCurrent(new Alert(e.getMessage()));
}

GameCanvas was not designed to throw any exception but I had to put it between 'try' and 'catch' to see what's going on.

Too see how the message looks like check http://www.instantcom.net/sinisa/strange.jpg
Same things happens when using 'e.toString()' instead of 'e.getMessage()'.

The GameCanvas class is about 40k and does not have any code in the constructor. I've suspected 40k is too much for v3 to handle so I commented out most of the code to shrink it to under 32k but problem is still there.

What could be causing this?

Sinisa
Reply With Quote

#2 Old problem update - 2003-03-26, 12:00

Join Date: Mar 2003
Posts: 16
disco2002
Offline
Registered User
Same problem no matter if I use...

Display.getDisplay(this).setCurrent(new Alert("WARNING", "Blah blah", null, AlertType.ERROR));

...or...

Display.getDisplay(this).setCurrent(new Form("Blah blah"));

This makes error tracing virtually impossible.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia