PDA

View Full Version : Can't add images to the imagepicker


pgpg
December 22nd, 2005, 10:10 AM
I can't add new images to the imagepicker in the latest version.
I get an error saying access denied to the selected file.

pgpg
December 27th, 2005, 03:45 PM
I have done some more testing and found out that if the image I am trying to add is write protected the designer crashes. Is the desingner making any changes to the original images?

Rob H
December 27th, 2005, 03:48 PM
Probably not, but it sounds as though it is opening the file with inappropriate flags.

Ben S
December 27th, 2005, 03:48 PM
It shouldn't be. Can you send me the image?

pgpg
December 27th, 2005, 04:18 PM
It happens with all images I have tried. If I set it to write protected I get an error. If I remove write protection it works.




System.UnauthorizedAccessException: Åtkomst till sökvägen C:\test.png nekas.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at com.promixis.NRIImage..ctor(NRI parent, String filename)
at com.promixis.Forms.ImagePicker.AddImages(String[] filenames)
at com.promixis.Forms.ImagePicker.buttonItemAddImage_ Activate(Object sender, EventArgs e)
at TD.SandBar.ButtonItemBase.OnActivate()
at TD.SandBar.ButtonItem.OnActivate()
at TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)
at TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at TD.SandBar.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Ben S
December 29th, 2005, 07:52 AM
Okay, this has been corrected. Thanks for the nice find!