[TIMOB-20256] Windows: Reduce memory consumption at TitaniumKit startup
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-02-03T01:35:55.000+0000 |
| Affected Version/s | Release 5.1.0 |
| Fix Version/s | Release 5.2.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2016-01-20T12:37:37.000+0000 |
| Updated | 2017-03-16T21:59:48.000+0000 |
Description
According to [Application Verifier](https://msdn.microsoft.com/en-us/library/windows/hardware/ff538115%28v=vs.85%29.aspx) for Windows Phone, bad memory allocation due to heap corruption and "out of memory" error has been observed. This may be a root cause of crash at application startup (TIMOB-20197). I'm observing that one of "out of memory" error occurs at
Titanium::ApplicationBuilder constructor. Because we are instantiating every Titanium object in there, we may have a chance to reduce memory consumption by delaying instantiation of them. We might be able to instantiate them on demand.
https://github.com/appcelerator/titanium_mobile_windows/pull/539
Closing ticket as fixed.