x


Bug or better way? web player crashes/hangs if sending WWW OnApplicationQuit

I want to inform my online DB that a player has disconnected from the web player (they closed Firefox or whatever), and send some stats along with that. But my JScript OnApplicationQuit handler which sends this WWW request seems to be causing problems. Mac/Firefox will often hang, or look like it's closed, but Firefox is still running and eating up resources. Windows/Chrome often crashes, although Windows/Firefox hasn't done that (yet). I did report this.

But I do need to get this event and data out to my server. Is there another option?

more ▼

asked Feb 09 '11 at 12:38 AM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If Unity doesn't want to handle it for some reason, maybe you could make that final report from the webpage that is hosting the webplayer. Just make a quick Application.ExternalCall() or even Application.ExternalEval() to launch that final message-in-a-bottle?

more ▼

answered Sep 10 '11 at 04:08 AM

MattMaker gravatar image

MattMaker
71 1 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x815
x592
x527
x4

asked: Feb 09 '11 at 12:38 AM

Seen: 1456 times

Last Updated: Sep 10 '11 at 04:08 AM