[TIMOB-23717] Windows: Ti.UI.ImageView.toImage() is executed before an image is loaded
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-04T07:18:38.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 5.4.0 |
Components | Windows |
Labels | qe-5.4.0 |
Reporter | Zakhar Zhuravlev |
Assignee | Gary Mathews |
Created | 2016-08-03T13:16:22.000+0000 |
Updated | 2016-08-05T23:32:46.000+0000 |
Description
5_4_X 5.4.0.v20160802165655
*CODE*
var win = Ti.UI.createWindow({backgroundColor: 'purple'}),
img = Ti.UI.createImageView({image: 'Logo.png'});
img.toImage(function (blob) {
Ti.API.info('success');
});
win.add(img);
win.open();
*RESULT*
[ERROR] : Application Error: "Windows.Graphics.Imaging: One or more pointer arguments are null."
[ERROR] : Error: unknown exception
master: https://github.com/appcelerator/titanium_mobile_windows/pull/801
5_4_X: https://github.com/appcelerator/titanium_mobile_windows/pull/803
Verified as fixed, now receive "success" returned in the logs, instead of the error message. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201607250649 Ti SDK: 5.4.0.v20160804185318 Appc NPM: 4.2.7 Appc Core: 5.4.0-38 Node: v4.4.4 *Closing Ticket.*