nemocean
nemocean

Reputation: 179

Corona SDK and starting app

I'm learning Corona SDK and I have one problem: my applications starting twice with Corona Simulator. Is that right? I'm creating main.lua with

print("test")

and getting in console something like

Windows simulator build date: Aug 27 2012 @ 17:37:09


Copyright (C) 2009-2012  C o r o n a   L a b s   I n c .
        Version: 2.0.0
        Build: 2012.894
test

Copyright (C) 2009-2012  C o r o n a   L a b s   I n c .
        Version: 2.0.0
        Build: 2012.894
test

Why so? It's problem, because my socket client on start connects to server two times. What's wrong?

Upd: I'm using IntelliJ IDEA with Lua plugin for starting project and "C:\Program Files (x86)\Corona Labs\Corona SDK\Corona Simulator.exe" as Lua interpreter

Upvotes: 1

Views: 529

Answers (2)

TheBestBigAl
TheBestBigAl

Reputation: 1230

I once had a similar problem because I had the simulator settings configured to restart when it detected file changes. One of my functions saved to an external file on startup (i.e. changed it) and so it restarted over and over.

Is there something in your code that could be writing to a file? Or is it literally just the one print function at the moment?

Upvotes: 1

Bo Dash
Bo Dash

Reputation: 113

This might fix it.make sure you are installing two Corona SDKs. Then uninstall it completely,and install it again.

Upvotes: 0

Related Questions