• Post Reply Bookmark Topic Watch Topic
  • New Topic

OutofMemory Error Troubleshooting  RSS feed

 
Vaibhav Gargs
Ranch Hand
Posts: 116
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to tackle outofmemory issues?
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give more information on your problem and if you are getting a runtime error please show us what it is.
 
Vaibhav Gargs
Ranch Hand
Posts: 116
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:Please give more information on your problem and if you are getting a runtime error please show us what it is.


I am trying to learn on how to tackle such issues if encountered at any time? And, what are programming best practices to avoid such issues?
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How you tackle the situation depends on what the situation is. It could be a case of assigning more memory or finding and fixing a memory leak or changing your design etc etc.
 
Fred Kleinschmidt
Bartender
Posts: 572
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tow things can help:
1. Look for very large array declarations, especially when you declare them dynamically (using the 'new' operator).
2. Do you know ow much memory your platform has?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!