Project: titanium
Issue TIMOB-18325: Windows: Module crashes at destructor
TitaniumKit Module instance crashes as soon as its destructor is fired. {code} javascript 'use strict'; for (var i = 0; i < 1000; i++) { var b = Ti.UI.createButton({ top: 20, bottom: 20, width: 200, height: Ti.UI.SIZE }); b = null; } {code} This crashes at UI::Button destructor. Tested on Windows Store app, 100% reproducible. {code} 000000533 DEBUG: UI::createButton. 000001067 DEBUG: Button::ctor Initialize. 000001068 DEBUG: Button::ctor CallAsConstructor. 000000534 DEBUG: UI::createButton. 000001069 DEBUG: Button::dtor. First-chance exception at 0x54E60262 (TitaniumKit.dll) in Issue34.exe: 0xC0000005: Access violation reading location 0xDDDDDDDD. Unhandled exception at 0x54E60262 (TitaniumKit.dll) in Issue34.exe: 0xC0000005: Access violation reading location 0xDDDDDDDD. {code} I'll push a new PR which demonstrates this issue.
Story points: 8