Crashes on SDK 2011.377 (Win) - How to fix it

We just found out that there is an issue with the 2011.377 Window version, where most of the sample codes cause the SDK to crash immediately.

This is caused by the following line:

[lua]local StatusText = display.newText( “”, screenW/2, screenH-20, native.SystemFont, 12 )[/lua]

So obviously, creating empty texts (with an empty text string) causes the 377 build to crash without a warning.

This can be fixed easily -just edit the sample codes (you’ll find the newText line just on top of each sample code) and insert a space character between the quotes like below:

[lua]local StatusText = display.newText( " ", screenW/2, screenH-20, native.SystemFont, 12 )[/lua]

We already contacted Ansca to let them know and will also update all samples codes with the next release.
[import]uid: 10504 topic_id: 8174 reply_id: 308174[/import]

Yes, this is the solution, but this is a bug and it should not be solved by updating samples codes, rather by fixing it in Corona codes. [import]uid: 9058 topic_id: 8174 reply_id: 29123[/import]

Agree, but by updating this line in your sample codes you will still be able to use them until a fixed build is available. So it might be useful to know. [import]uid: 10504 topic_id: 8174 reply_id: 29150[/import]