Director Class Crash with the last Corona 2011.377 Build

Hello Folks,

I just try the new Corona Build 2011.377 (in Windows) and note that the director class crash in line 137 in the function fxEnded

currentView:insert(currentScreen)

looks like currentScreen hat nil value.

Any help?

Thanks,

Ramón
[import]uid: 36744 topic_id: 8418 reply_id: 308418[/import]

sorry that’s was with the Director version 1.1
with the version 1.2 is in the line no. 303
currView:insert(currScreen) [import]uid: 36744 topic_id: 8418 reply_id: 30145[/import]

I’ve also found issues recently working with Director in windows…

If anyone knows how to fix this it would be great for my exporter… Mac is perfectly fine. So perhaps the staff might have an idea about what differences in the WIN build might cause this.

TS [import]uid: 33265 topic_id: 8418 reply_id: 30157[/import]

I’ve been able to stop the Windows crashes with director in one of my games. I discovered that the issue was with a Button. Here’s how I was creating the button:

[lua]local backButton = ui.newButton{
default = “assets/images/back-button-up-skin.png”,
over = “assets/images/back-button-down-skin.png”,
text = “”,
onRelease = backButtonHandler
}[/lua]

The problem, apparently, is with setting the text to an empty string. When I remove that line entirely (since it’s already an empty string anyway), or if set it to a space " " instead of empty, the crashes stop happening. You might also cause the crash by calling button:setText(""), but I didn’t test it.

I don’t know if that will work for anyone else, but that did the trick for me. Look for empty strings in your code. Good luck! [import]uid: 38950 topic_id: 8418 reply_id: 30452[/import]