Author Topic: Unity freeze with NGUITools Refresh  (Read 2403 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Unity freeze with NGUITools Refresh
« on: September 06, 2012, 05:13:33 AM »
My program starting freezing, Unity completely froze and made it so I had to CTRL+ALT+DEL.
Finally tracked the fault down to

NGUITools.Broadcast("Refresh");

If I remove this line, my program no longer freezes. I am not sure exactly what is happening but I can only assume that maybe I have too many children in my UnityObject?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity freeze with NGUITools Refresh
« Reply #1 on: September 06, 2012, 07:02:45 AM »
Do you have some custom Refresh function somewhere on one of your scripts? Unity freezing usually implies that it got into an endless loop, so one Refresh function would call another kind of deal.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Unity freeze with NGUITools Refresh
« Reply #2 on: September 06, 2012, 08:50:30 AM »
I am not sure, perhaps. What scared me a bit is that this occured in some code I wrote last month, and then the freezing suddenly appeared there. Need to do some more investigating first.

Thanks for the answer, ArenMook :)