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. .NET (Core and Framework)
  4. WinXP Home Can't Use Subfolder as Source for Picture

WinXP Home Can't Use Subfolder as Source for Picture

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestioncsharpdata-structuresdebugging
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.
  • H Offline
    H Offline
    Hypermommy
    wrote on last edited by
    #1

    Hi all, I have this .NET 2.0 application. At several points during the application it asks the user to load a picture from their computer. Basically the code uses an open file dialog box to get the path and then copies that picture from that path into a section in my program's folder. Works great on my XP Pro development machine and on Vista. And it works great if the user is selecting a picture from their desktop. However, if the user goes to My Computer and then clicks on My Pictures the program bombs and "locks up" (according to the user). I can't recreate the error here but I've managed to capture the sequence. I'm pretty sure both of these errors hit when the system "locks up". This also happens if they go to any other folder's subfolder. I have no idea how to overcome this or what is even causing it or what to even search on. Help?

    Exception Message: External component has thrown an exception.
    Stack Trace: at System.Windows.Forms.UnsafeNativeMethods.GetOpenFileName(OPENFILENAME_I ofn)
    at System.Windows.Forms.OpenFileDialog.RunFileDialog(OPENFILENAME_I ofn)
    at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
    at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
    at System.Windows.Forms.CommonDialog.ShowDialog()
    at FirstTimeUser.frmGatherPersInfo.btnLoad_Click(Object sender, EventArgs e)

    Exception Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Stack Trace: at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(HandleRef hWnd)
    at System.Windows.Forms.UnsafeNativeMethods.DestroyWindow(HandleRef hWnd)
    at System.Windows.Forms.NativeWindow.DestroyHandle()
    at System.Windows.Forms.Control.DestroyHandle()
    at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
    at System.Windows.Forms.Form.ShowDialog()
    at MyHealtheFile.modMain.main()

    Denise "Hypermommy" Duggan

    H 1 Reply Last reply
    0
    • H Hypermommy

      Hi all, I have this .NET 2.0 application. At several points during the application it asks the user to load a picture from their computer. Basically the code uses an open file dialog box to get the path and then copies that picture from that path into a section in my program's folder. Works great on my XP Pro development machine and on Vista. And it works great if the user is selecting a picture from their desktop. However, if the user goes to My Computer and then clicks on My Pictures the program bombs and "locks up" (according to the user). I can't recreate the error here but I've managed to capture the sequence. I'm pretty sure both of these errors hit when the system "locks up". This also happens if they go to any other folder's subfolder. I have no idea how to overcome this or what is even causing it or what to even search on. Help?

      Exception Message: External component has thrown an exception.
      Stack Trace: at System.Windows.Forms.UnsafeNativeMethods.GetOpenFileName(OPENFILENAME_I ofn)
      at System.Windows.Forms.OpenFileDialog.RunFileDialog(OPENFILENAME_I ofn)
      at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
      at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
      at System.Windows.Forms.CommonDialog.ShowDialog()
      at FirstTimeUser.frmGatherPersInfo.btnLoad_Click(Object sender, EventArgs e)

      Exception Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
      Stack Trace: at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(HandleRef hWnd)
      at System.Windows.Forms.UnsafeNativeMethods.DestroyWindow(HandleRef hWnd)
      at System.Windows.Forms.NativeWindow.DestroyHandle()
      at System.Windows.Forms.Control.DestroyHandle()
      at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
      at System.Windows.Forms.Form.ShowDialog()
      at MyHealtheFile.modMain.main()

      Denise "Hypermommy" Duggan

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Not that it helps you, but one of my dev boxes runs XP Home and I have no problems with this.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      H 1 Reply Last reply
      0
      • H Henry Minute

        Not that it helps you, but one of my dev boxes runs XP Home and I have no problems with this.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        H Offline
        H Offline
        Hypermommy
        wrote on last edited by
        #3

        I'm wondering if it has something to do with the specific service pack installed. Would you mind telling me what SP you're running?

        Denise "Hypermommy" Duggan

        H 1 Reply Last reply
        0
        • H Hypermommy

          I'm wondering if it has something to do with the specific service pack installed. Would you mind telling me what SP you're running?

          Denise "Hypermommy" Duggan

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Currently SP3, but I've upgraded as the SPs have been released and also any HotFixes as I'm notified by Automatic Updates. My box is not on a network, I don't know if that makes any difference.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          H 1 Reply Last reply
          0
          • H Henry Minute

            Currently SP3, but I've upgraded as the SPs have been released and also any HotFixes as I'm notified by Automatic Updates. My box is not on a network, I don't know if that makes any difference.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            H Offline
            H Offline
            Hypermommy
            wrote on last edited by
            #5

            I don't think so as this box is not on a network either. But I'll have to check what the SPs and hotfixes fixed as that may be part of it.

            Denise "Hypermommy" Duggan

            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