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. Low Virtual memory problem with Memory Stream?

Low Virtual memory problem with Memory Stream?

Scheduled Pinned Locked Moved C#
graphicsdata-structuresperformancehelpquestion
5 Posts 5 Posters 0 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.
  • D Offline
    D Offline
    DeepOceans
    wrote on last edited by
    #1

    Hi, I'm facing a problem while transmitting a live video on LAN using memory stream object. But when I run application,after some time,my system prompt me "Low virtual memory". Actually the reason is the Memory stream.As there are two ways to convert the BMP into Byte ARRAY i.e Stream or File so tell me any solution or any other better way to convert Bitmap object into ByteArray. Thanx and plzzzzzzzzzz reply

    Shanzay

    A P 2 Replies Last reply
    0
    • D DeepOceans

      Hi, I'm facing a problem while transmitting a live video on LAN using memory stream object. But when I run application,after some time,my system prompt me "Low virtual memory". Actually the reason is the Memory stream.As there are two ways to convert the BMP into Byte ARRAY i.e Stream or File so tell me any solution or any other better way to convert Bitmap object into ByteArray. Thanx and plzzzzzzzzzz reply

      Shanzay

      A Offline
      A Offline
      AtulRane
      wrote on last edited by
      #2

      [Message Deleted]

      S 1 Reply Last reply
      0
      • D DeepOceans

        Hi, I'm facing a problem while transmitting a live video on LAN using memory stream object. But when I run application,after some time,my system prompt me "Low virtual memory". Actually the reason is the Memory stream.As there are two ways to convert the BMP into Byte ARRAY i.e Stream or File so tell me any solution or any other better way to convert Bitmap object into ByteArray. Thanx and plzzzzzzzzzz reply

        Shanzay

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        Is this with a single stream? Are you sure that you are properly disposing of your stream objects after you have used them?

        1 Reply Last reply
        0
        • A AtulRane

          [Message Deleted]

          S Offline
          S Offline
          Simon P Stevens
          wrote on last edited by
          #4

          AtulRane wrote:

          You can solve your problem by increasing the size of virtual memory.

          Don't do this. If you are running out of virtual memory after you app has been running for a while, it's because your app has a memory leak. Make sure you are disposing of objects properly when they are done with. Use a tool like SysInternals process monitor to check how much memory your app is using, and if it is increasing over time.

          Simon

          P 1 Reply Last reply
          0
          • S Simon P Stevens

            AtulRane wrote:

            You can solve your problem by increasing the size of virtual memory.

            Don't do this. If you are running out of virtual memory after you app has been running for a while, it's because your app has a memory leak. Make sure you are disposing of objects properly when they are done with. Use a tool like SysInternals process monitor to check how much memory your app is using, and if it is increasing over time.

            Simon

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            Simon Stevens wrote:

            Don't do this. If you are running out of virtual memory after you app has been running for a while, it's because your app has a memory leak.

            Exactly, increasing virtual memory is only going to buy a little more time, not much.

            Simon Stevens wrote:

            Use a tool like SysInternals process monitor to check how much memory your app is using

            Or just use the Performance monitor in Administrative Tools.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            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