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. Processes problem.

Processes problem.

Scheduled Pinned Locked Moved C#
helpcssquestion
5 Posts 2 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.
  • J Offline
    J Offline
    Janu_M
    wrote on last edited by
    #1

    Hi I am developing a windows application in which it contains a grid and two buttons called play and delete. If user selects a row on the grid and clicks play button then all the images are shown in a slideshow. (for showing slide show iam using a a new form which it contains a picturebox.) if user selects a row on grid and clicks delete then it deletes the folder of images. THe problem is when i select a row and clicks the play button it is showing the slide show. After exiting if i select the same row and clicks delete button then it is saying the picture X is used by another process. How can I overcome this problem. Please Help me. Thanks in Advance. Ramu Medida.

    S 1 Reply Last reply
    0
    • J Janu_M

      Hi I am developing a windows application in which it contains a grid and two buttons called play and delete. If user selects a row on the grid and clicks play button then all the images are shown in a slideshow. (for showing slide show iam using a a new form which it contains a picturebox.) if user selects a row on grid and clicks delete then it deletes the folder of images. THe problem is when i select a row and clicks the play button it is showing the slide show. After exiting if i select the same row and clicks delete button then it is saying the picture X is used by another process. How can I overcome this problem. Please Help me. Thanks in Advance. Ramu Medida.

      S Offline
      S Offline
      sam
      wrote on last edited by
      #2

      if images are being shown in the Grid. it means they are being used by another process. firstly Remove that Row then those images

      J 1 Reply Last reply
      0
      • S sam

        if images are being shown in the Grid. it means they are being used by another process. firstly Remove that Row then those images

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

        THanks for your respose but the problem is not solved. Here the images are not displayed in the grid. Grid contains the path for the images folder. please help me.

        S 1 Reply Last reply
        0
        • J Janu_M

          THanks for your respose but the problem is not solved. Here the images are not displayed in the grid. Grid contains the path for the images folder. please help me.

          S Offline
          S Offline
          sam
          wrote on last edited by
          #4

          is your slideshow form opens as dialog. if yes then disopose object of that slideshowForm for extra caution use GC.Collect();

          J 1 Reply Last reply
          0
          • S sam

            is your slideshow form opens as dialog. if yes then disopose object of that slideshowForm for extra caution use GC.Collect();

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

            Thank You Very Very Very Much. My problem is solved by putting the statement GC.Collect. Once Again Thank You. Ramu Medida.:cool:

            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