This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

either a pim error or a stupid mistake  RSS feed

 
arjan pronk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys, I've got a smal problem in my code here and was hoping one of you could spot it. It could be one of two things it's either the pim method where i'm doing something wrong or the thread in which it runs.

Thanks

Arjan




I'm calling the thread from another class .




[ May 21, 2008: Message edited by: arjan pronk ]
 
Tim Holloway
Bartender
Posts: 18608
68
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm being lazy and not actually looking at the code too closely, but an OutOfMemoryError is frequently caused by one of 2 things:

1. Infinite recursive calls

2. "Ping-pong" calls where code A posts an immediate (un-queued) event to code B, which invokes code A, which posts to code B and so forth. Which is just infinite recursion in cahoots with the event manager.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!