title: Unity- Standalone build run out of memory
body: <p>So I already asked this question on the unity forums but that didn't help me a lot :/. Today I decided to give my game a try with friends so basically I created a server so other clients/friends could connect to it. After about 20 minutes of playing my game crashed and I quickly checked task manager and my game was using about 3.5 GB of RAM! <a href="http://i.stack.imgur.com/2F0KM.png" rel="nofollow">PHOTO HERE</a> When I looked at the log it said something like this:</p>
  
  <pre><code>Unity Player [version: Unity 4.6.1f1_d1db7a1b5196]
  
  mono.dll caused an Access Violation (0xc0000005)
    in module mono.dll at 0023:101071a1.
  
  Error occurred at 2016-07-04_163050.
  C:\Users\Cooler Master\Desktop\TL\TL.exe, run by Cooler Master.
  77% memory in use.
  0 MB physical memory [1814 MB free].
  0 MB paging file [1039 MB free].
  0 MB user address space [68 MB free].
  Write to location 00000000 caused an access violation.
  </code></pre>
  
  <p>So in my game there is something that keeps eating my RAM. It takes about 3MB per second of ram when the game is running. I found some information on internet about Resources.UnloadUnusedAssets but I don't know how to write a script like that! I knew how to write in c# but only the easy scripts like GUI,Newtorkinf,Physics etc.. Also I downloaded unity pro from kickasstorrent only to see profiler window but that didn't help me at all</p>
  
  <p>Thank very much for any reply !
  Also if you want to check out the game and see what's happening : <a href="http://gamejolt.com/games/thuglifealpha/61660" rel="nofollow">http://gamejolt.com/games/thuglifealpha/61660</a></p>
  
  <p>Thanks again! :)</p>