Comments on: Combine buttonMode = true and a mouse click to leak memory https://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/ Archive of older blog posts written by Josh Tynjala about Flash, Flex, and ActionScript Wed, 26 Jun 2013 02:52:46 +0000 hourly 1 https://wordpress.org/?v=4.9.9 By: Josh Tynjala https://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/#comment-18606 Tue, 11 Oct 2011 23:57:39 +0000 http://joshblog.net/?p=599#comment-18606 Vizio, according to the bug report, the player version was 10.0.12.36. No idea what SDK version it was, since it’s been over two years.

]]>
By: Vizio https://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/#comment-18601 Tue, 11 Oct 2011 23:21:12 +0000 http://joshblog.net/?p=599#comment-18601 Hi Josh,

I thought I had the same problem several months ago (I also avidly commented on the bug you opened and written a blog post 🙂 ), but now I’m pretty sure I was doing stuff wrong. It seems to be fixed in Flash Player 10.1 compiling using the FlexSDK 4.1.

Anyway do you remember exactly which flash player version and flex SDK version you were using when you found the problem?

cheers

]]>
By: Peter https://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/#comment-16605 Mon, 05 Sep 2011 08:29:10 +0000 http://joshblog.net/?p=599#comment-16605 Fantastic. I am having exactly the same issues and have spent many frustrated hours with the profiler and tearing at my hair. 2 years on and the bug is still there.

What happens if you set buttonMode to false just before you remove it?

]]>
By: Graham https://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/#comment-16337 Wed, 31 Aug 2011 00:46:50 +0000 http://joshblog.net/?p=599#comment-16337 Hi there. I just wanted to say thanks for posting this! I was having a hell of a time debugging a memory leak in an Away3D-based game that I’m working on when I stumbled upon your buttonMode theory. I was basically at my wits end thinking that the problem was with Away3D, but when I saw this post I thought I’d try removing the buttonMode references to an in-game menu’s buttons. Low and behold it fixed the problem! The garbage collector was then able to swoop in and clear the Sprite containing the Away3D view from memory. Praise the Lord! 🙂 After some further testing I determined that changing the buttonMode to false just before removing the clip from the stage also fixed the problem. That way I still get the nice little hand cursor. See if it works for you too.

]]>