You Are Here:

Community: Developer Discussion Boards

#1 Old java.lang.OutOfMemoryError: connection - 2009-03-14, 12:54

Join Date: Jan 2009
Posts: 88
littleson
Offline
Regular Contributor
hi,
i want to call one midlet from another midlet. but i am getting this error.
'java.lang.OutOfMemoryError: connection'. Both the midlet's are in a single package.
Any help will be greatly appreciated.
Reply With Quote

#2 Old Re: java.lang.OutOfMemoryError: connection - 2009-03-14, 16:12

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
What do you mean by "call one midlet from another"?

What are you actually doing, and on what device/emulator?

Cheers,
Graham.
Reply With Quote

#3 Old Re: java.lang.OutOfMemoryError: connection - 2009-03-16, 05:35

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by littleson View Post
hi,
i want to call one midlet from another midlet. but i am getting this error.
'java.lang.OutOfMemoryError: connection'. Both the midlet's are in a single package.
Any help will be greatly appreciated.
Hi,
You can simply call one midlet from another....
How you are calling the same...?
In the second midlet,what you are doing...?


Thanks

R a j - The K e r n e l
Reply With Quote

#4 Old Re: java.lang.OutOfMemoryError: connection - 2009-03-16, 08:06

Join Date: Jan 2009
Posts: 88
littleson
Offline
Regular Contributor
hi,
thanks for your reply..
i am using netbeans 6.0
both my midlets are stored as separate files
'hello.java' and 'reply.java'..Both are in the same project..i want to call reply.java from hello.java..
by calling i mean that reply.java must execute...i.e 'reply.java' has a form which must be displayed..
thank you..
Reply With Quote

#5 Old Re: java.lang.OutOfMemoryError: connection - 2009-03-16, 12:11

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
Not sure why you're getting an OutOfMemory.

Will the be in different JARs? If not, why are they separate MIDlets? There is no specific method for launching one MIDlet from another. If you want to display a Form, simply create it, and call setCurrent().

Cheers,
Graham.
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