Search Results

by daves0
Fri Mar 08, 2019 1:35 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

I'm happy to confirm that all issues I've run into have been resolved with this new release. Thanks much to everyone involved!
by daves0
Thu Mar 07, 2019 8:55 am
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

I'm using the .Net 2.0 dll and the C++ x64 library in Unity 5.6.3 on Linux and it's working well so far. I haven't had the chance to fully test the issues as I'm deep in the middle of something else, but hope to verify the fixes asap.

Thanks, Brian and Patrick, for your work on this!
by daves0
Wed Feb 27, 2019 3:35 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

We don't call Application.Quit() when running in the Editor. Per Unity's suggestion (sorry, I can't remember where from exactly), the following code is in my game: #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else //Application.Quit(); System.Diagnostics.Process.GetCurrentProce...
by daves0
Wed Feb 27, 2019 10:35 am
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

For consistent lockups, try something with the PhidgetManager like what I described a few messages up in this thread. That was a repeatable issue that is pretty easy to set up. Let me know if I can be of assistance, if a similar setup still works correctly for you.
by daves0
Tue Feb 26, 2019 4:26 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

thylaxene, my Unity Editor would crash out completely (not just hang) when the phidget's Open() call next occurred after a successful run from the Editor. Given things like DontDestroyOnLoad and similar trickery used to keep things "alive" within Unity, it is possible that your application...
by daves0
Wed Feb 20, 2019 4:34 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

The hard crashes appear to be happening when I call the dotnet library's Phidget.Close() function on my Phidget. At that time the logs display the following error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Phidget22.Accelerometer.OnAc...
by daves0
Tue Feb 19, 2019 7:42 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

I've found that I can cause the hard crashes by having events "flowing" when I exit my program. I am calling FinalizeLibrary() but I suspect control is never getting to that point, as I've surrounded it (and much of my exit code) with Debug.Log calls that never appear. When I run my progra...
by daves0
Mon Feb 18, 2019 5:16 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

I've noticed that the message terminate called without an active exception is showing up occasionally when the program crashes. According to h t t p s : / / stackoverflow . com/questions/7381757/c-terminate-called-without-an-active-exception this could be caused by erroneous c++ thread handling. The...
by daves0
Fri Feb 15, 2019 11:39 am
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2768306

Re: Game (unity3d) with phidgets hangs on close

This is affecting me too, almost eight years after the first bug report. If I have a PhidgetSpatial plugged into my computer via USB and create a PhidgetManager in my game and call Open() on the manager, and call Close() on the manager when the game exits ... the game crashes hard. Not calling the O...