IDE Crashes

Hi

I have been getting Unity crashes around 20 times per day. Mostly when I am using .Net Socket objects. But today I have got a real bad one…

I try opening a scene in my project and I get many errors:

dynamic_pptr_cast<T*> (com) == NULL

m_Remapper → GetPathID (memoryID) != -1

i → second.lockCount

etc… etc…

And half the assets are missing, the whole game is shot to bits!

My productivity is really, really slow because of the number of times it crashes.

Surely this sort of stuff shouldn’t be exposed to the IDE? Even when I catch exceptions in my managed code it still crashes!

I am using Async methods with my sockets, does anybody else get these issues?

crashes of the whole mono end will take unity down with them as it runs within that environment as well. There is nothing to prevent that.

One way to solve your specific problem is developing your socket related stuff in VS.net with C# and then drop the assembly into your unity project and only using the already present functionality for example. that way you have the VS debugger at hand that will save you lots of headache.
just ensure that you do not use functionality not present in Mono 1.2.5

Yeah, that’s not a bad idea.

It seems I may have got some un-thread safe code which would explain the crashes. :sweat_smile:

I’ll keep plodding away!

Thanks

John T