Search Results

by thylaxene
Tue Mar 12, 2019 6:47 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Yep that worked for me! Thanks for tracking down the work around. I can now say goodbye to my Python hack for testing in the Editor.

Haven't tested a build yet. But fingers crossed.

Cheers.
by thylaxene
Fri Mar 08, 2019 2:27 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Unfortunately I'm having no luck using the latest .NET 4.6 DLL with Unity 2018.3 under macOS using Mono 4.xx Equivalent. I've installed the latest drivers and tried several different .NET DLLs and I either get an instant crash or spinning beach ball of death when I call into the plugin.

Cheers.
by thylaxene
Wed Mar 06, 2019 5:31 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Which version of the DLL are you using from .NET? I'm getting instant Unity crash as soon as I call into the DLL. Like to make sure I'm using the right one.

Cheers.
by thylaxene
Mon Mar 04, 2019 3:40 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Thank you for the fixes and clarification! I look forward to the release.

Cheers.
by thylaxene
Wed Feb 27, 2019 4:49 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Ah that makes sense. I added that call in desperation. :) I'll remove it and sees what happens.

Cheers.
by thylaxene
Wed Feb 27, 2019 4:29 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Here is my clean up code: private void OnDestroy() { CleanUp(); } private void CleanUp() { if (_reader == null) return; _reader.Tag -= ReaderOnTag; _reader.Close(); _reader = null; Phidget.FinalizeLibrary(0); } I use OnDestroy because it is called both when Play mode ends and on Application.Quit is ...
by thylaxene
Tue Feb 26, 2019 4:17 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

There is certainly an issue with the Editor not releasing the Phidget library or something after use. When I connect and test in the Editor the RFID reader via the DLL I'll get a reading off tags fine during play mode. But once I exit play mode, even with proper cleanup I will hang Unity Editor on a...
by thylaxene
Wed Feb 20, 2019 4:21 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

Can we trouble you for an example of best practise, code flow? For example here: https://phidgetseducation.edunext.io/courses/course-v1:phidgetseducation+104+2018_T1/courseware/f7820c1a3e8a479c86ae358b31a1bb83/67f997e3a0254f6d86d925393549d651/3?activate_block_id=block-v1%3Aphidgetseducation%2B104%2B...
by thylaxene
Tue Feb 19, 2019 7:24 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

OK great thanks for the response. I will try that and report back.

Cheers.
by thylaxene
Mon Feb 18, 2019 5:40 pm
Forum: C#.NET
Topic: Game (unity3d) with phidgets hangs on close
Replies: 60
Views: 2820694

Re: Game (unity3d) with phidgets hangs on close

The Phidget code is certainly using its own thread. Easily seen when trying call non-thread safe code within Unity Editor. So I suspect it is related to improper cleanup after use. Or not releasing the port. Or something. Ideally they need to open source the DLL. So we can at least have a go at fixi...