WinXP Home Can't Use Subfolder as Source for Picture
-
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
-
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
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.”
-
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.”
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
-
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
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.”
-
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.”
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