Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I am getting error like "Not enough memory" error message and Windows Phone 8 Emulator does not start in Windows 8.1

Could you please give me solution or suggestion

Thanks in advance
Posted
Comments
[no name] 26-Sep-15 5:56am    
I have found one code project link and resolved in my issues.
http://www.codeproject.com/Articles/748116/How-to-solve-Not-enough-memory-error-and-Windows-P

1 solution

Quote:
Not enough memory
That is a clear message telling you that the memory (RAM) is not enough for the application to start.

Now, there are two possible ways to fix this.

1. Increase the RAM for emulator.
2. Decrease the consumption of RAM by the application.

I would love to suggest you the second option, do not increase the RAM because if you do. You can somehow possibly make sure your application runs, but what if a client does not have options to increase their RAM? They would leave the application as soon as they install it.

Try keeping the RAM same but start by cutting short the variable (global ones specifically, and the static ones also). Make sure you are only keeping the variables that are required. If there are bitmaps and graphics objects being used, make sure you cut short them also. Because they are also stored in the memory. Finally, what sort of application is this that needs so much of the RAM?

Are you sure there is no loop that re-creates the objects in the memory? Perhaps a memory-leak is present. This is the only solution. I repeat, do not fix the problem by increasing the RAM size of your emulator, try fixing the problem with the RAM provided!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Sep-15 5:57am    
Makes sense, a 5.
—SA
Afzaal Ahmad Zeeshan 26-Sep-15 5:59am    
Thank you, Sergey.
[no name] 26-Sep-15 6:04am    
Thanks Afzaal Ahmad for your valuable suggestion.
Afzaal Ahmad Zeeshan 26-Sep-15 6:06am    
You can also mark it as solution if it helps. :-)
[no name] 26-Sep-15 6:12am    
ok sure

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900