Application Quits after pressing buttons a number of times

Bug report submitted.

Had this problem in a larger project so made a simple one to test.

Two scenes each with one single button which when pressed loads the other screen. Press buttons 25 times and the app on the iTouch quits back to home. Happens every time.

Only code I have in place is:

using UnityEngine;
using System.Collections;

public class button2 : MonoBehaviour {


public Texture2D buttonMenu;
public GUIStyle buttonStyle;

	void OnGUI()
	{
		if (GUI.Button (new Rect (353,30,103,35), buttonMenu,buttonStyle))
		Application.LoadLevel(0);
		
		
	}
}

Any ideas why this could be happening or has anyone else experienced similar ?

thanks

Simplified it even more but still have the same issue:

void OnGUI()
	{
		
		if (GUI.Button (new Rect (353,30,103,35), "button 1"))
		Application.LoadLevel(1);
		
		
	}

have uploaded this simple project. I would be very grateful if someone else could test it whilst I am waiting for Unity to get back to me)

http://cid-e8f747676dcb50c6.skydrive.live.com/self.aspx/Public/buttonTest.zip

thanks

Yes, I can confirm that it also crashes on my iPhone.

gr.jakko

thank you for taking the time to check that for me jakko, much appreciated.

I guess from this then that others will have the same issue?

yupp, serious memory leak

explains why other apps regularily crash since I started to work with Unity

thx dreamora - that was my best guess so hopefully Unity will get around to the bug report sometime today(ish)

thanks

crashes on my iPhone 2G …

Have you sent this to Unity through the bug reporter tool?

Also, what does the crash log say?

@bliprob - yes sent last Thursday evening. Case number 47840. No reply as yet.

there is no crash log. iTouch/iPhone quits back to home and if run in debug mode (Xcode) then Xcode just gets an interrupt and the iPhone freezes until debugging is ended.

hoping to get a reply soon as this is stopping us releasing our first game.

Is this resolved for you after the hotfix?

FWIW, the bug record cited above shows a status of fixed as of the 1.0.1 release.

Yes it did fix our crashing issue.