Villacaleb / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Animation Controller wont dispose #818

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have just updated to the latest version of SlimDX (march 2011) and I thought 
the devs might like to know that I now cant dispose an animation controller. I 
get an error that says something along the lines "object is not set to an 
instance of an object". My code worked perfectly before with the previous 
version. Any ideas are very welcome.

Original issue reported on code.google.com by daveemm...@hotmail.com on 22 Jul 2011 at 2:49

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2119.

Original comment by Mike.Popoloski on 26 Jul 2011 at 2:18

GoogleCodeExporter commented 9 years ago
I believe the change I've made should fix the issue. Try it out and let me know 
if does indeed solve the problem for you.

Original comment by Mike.Popoloski on 26 Jul 2011 at 2:19

GoogleCodeExporter commented 9 years ago
First of all, Thx for the great work.

Now, I know this is closed. But: Where can I poor guy get r2119, when I dont 
have VS2010 but only VS2008 prof and so cannot build myself as you say.

Or at least any workarounds.
For now: I tried: 
- Just not disposing AnimationController :-(
- Trying to fill something into this private objects var with sth like this:
animController.RegisterAnimationOutput(ao_name, animOutDummy);
... but that didnt work. Another nullreferenceexception

The problem is, when you load xfiles, you always have an AnimationController.

Any ideas, any hidden patches, any nightly builds anywhere?

Original comment by m...@innoc.de on 27 Sep 2011 at 10:06

GoogleCodeExporter commented 9 years ago
Unfortunately not. We had a release scheduled since early August, but the guy 
who does them kind of dropped off the radar. Hopefully in the next week or two 
it'll finally come out.

Original comment by Mike.Popoloski on 27 Sep 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Sorry, late night here in germany,
I surely meant: private outputs Variable
private:            System::Collections::Generic::List<System::Runtime::InteropServices::
GCHandle>^ outputs;

Greetings

Original comment by m...@innoc.de on 27 Sep 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Well, thx a lot for your quick answer.
I really admire your work and take it as learning base to get into .net too.

Well, if you say there will be an update in a month or two, I will be happy.
:-)

Till then I can live with:

Type t_item = item.GetType();
                    if (t_item.Name == "AnimationController")
                    {
                        Debug.WriteLine(t_item);
                    }
                    else
                        item.Dispose();

at least as long I am in debugging and development mode.

Thx again

Original comment by m...@innoc.de on 27 Sep 2011 at 10:18