Quantcast
Channel: Questions in topic: "httpwebrequest"
Viewing all articles
Browse latest Browse all 190

System.Threading.Thread use causing error on player exit in OSX

$
0
0

I'm using System.Threading.Thread to handle HttpWebRequests and in OSX standalone builds a system-level error occurs (complete with a "Report to Apple" window). No noticeable errors occur in Windows standalone builds or in the Editor (in OSX). I added a check in OnApplicationQuit that checks if any of the threads I've created are still alive, and it reports that there aren't any. The relevant area of the console log is presented below:

Total Object count 291 (Before unload 135)    

Live threads at quit: 0 out of 1 created.
UnityEngine.Debug:Log(Object)
DatabaseConnection:OnApplicationQuit()

(Filename: /Users/build/builds/unity-26/unity-2.6.x/Projects/../Runtime/Export/Generated/BaseClass.cpp Line: 1783)

Cleanup player

** ERROR **: file error.c: line 62 (SetLastError): assertion failed: (ret == 0)
aborting...

** ERROR **: file error.c: line 62 (SetLastError): assertion failed: (ret == 0)
aborting...

Again, I don't see this error in the Editor or Windows standalone builds. Suggestions on how I can properly clean up my program on exit would be appreciated.


Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>