Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Memory Leak using Flash....

Memory Leak using Flash....

Scheduled Pinned Locked Moved C#
questionadobetoolsperformancehelp
7 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jbradshaw
    wrote on last edited by
    #1

    I have a program that is running on a kiosk. I'm using the Shockwave dll to play flash files. It appears as if the more complex the flash file is (more action script) there's a memory leak until eventually the program crashes. This program has the flash player on the screen and loads file after file without closing down. So if it's not really releasing all of the memory, which is what it appears to be doing, how can I clear out the memory? If need be what I would do is after playing a file, I would destroy the object, cleanup the memory and then create a new one. In looking around the web, I have not yet been able to find how to destroy the object, clean up the memory and then recreate the object. Can somebody please help? Thanks. Jeff.

    P 1 Reply Last reply
    0
    • J jbradshaw

      I have a program that is running on a kiosk. I'm using the Shockwave dll to play flash files. It appears as if the more complex the flash file is (more action script) there's a memory leak until eventually the program crashes. This program has the flash player on the screen and loads file after file without closing down. So if it's not really releasing all of the memory, which is what it appears to be doing, how can I clear out the memory? If need be what I would do is after playing a file, I would destroy the object, cleanup the memory and then create a new one. In looking around the web, I have not yet been able to find how to destroy the object, clean up the memory and then recreate the object. Can somebody please help? Thanks. Jeff.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Effectively, have 2 instances running - when one is finished with unload it and load a new instance in a new app domain and show the background instance in place.

      I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      J 1 Reply Last reply
      0
      • P Pete OHanlon

        Effectively, have 2 instances running - when one is finished with unload it and load a new instance in a new app domain and show the background instance in place.

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        J Offline
        J Offline
        jbradshaw
        wrote on last edited by
        #3

        I don't understand what you mean by unload it and load a new instance. Do you mean unload the whole program? There is other stuff going on on the screen. The flash player is only part of what is visible on the screen. Jeff.

        P 1 Reply Last reply
        0
        • J jbradshaw

          I don't understand what you mean by unload it and load a new instance. Do you mean unload the whole program? There is other stuff going on on the screen. The flash player is only part of what is visible on the screen. Jeff.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          No - I was thinking you'd have the Flash part in a separate AppDomain - you could overlay this over the top by controlling the Z Order. Release the App Domain, and reclaim the memory.

          I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

          Forgive your enemies - it messes with their heads

          My blog | My articles | MoXAML PowerToys | Onyx

          J 1 Reply Last reply
          0
          • P Pete OHanlon

            No - I was thinking you'd have the Flash part in a separate AppDomain - you could overlay this over the top by controlling the Z Order. Release the App Domain, and reclaim the memory.

            I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

            Forgive your enemies - it messes with their heads

            My blog | My articles | MoXAML PowerToys | Onyx

            J Offline
            J Offline
            jbradshaw
            wrote on last edited by
            #5

            What do you mean by AppDomain? BTW - don't know if it matters this is a Windows App. J.

            P 1 Reply Last reply
            0
            • J jbradshaw

              What do you mean by AppDomain? BTW - don't know if it matters this is a Windows App. J.

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Are you using .NET (you should be if you are posting in the C# forum)? Look up Application Domains.

              I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Onyx

              J 1 Reply Last reply
              0
              • P Pete OHanlon

                Are you using .NET (you should be if you are posting in the C# forum)? Look up Application Domains.

                I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Onyx

                J Offline
                J Offline
                jbradshaw
                wrote on last edited by
                #7

                Pete, I'm still trying to solve this. I'm using C# .Net 1.1 (Don't ask!) on a Windows App. Any help would be greatly appreciated. Jeff.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups