Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generic GDI+ error Pin
Alex Cutovoi25-Jul-05 4:15
Alex Cutovoi25-Jul-05 4:15 
GeneralRe: Generic GDI+ error Pin
Alomgir Miah25-Jul-05 4:34
Alomgir Miah25-Jul-05 4:34 
GeneralReleasing bitmap file after open Pin
Rick Beideman25-Jul-05 2:55
Rick Beideman25-Jul-05 2:55 
GeneralRe: Releasing bitmap file after open Pin
Dave Kreskowiak25-Jul-05 4:23
mveDave Kreskowiak25-Jul-05 4:23 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah25-Jul-05 4:31
Alomgir Miah25-Jul-05 4:31 
GeneralRe: Releasing bitmap file after open Pin
Rick Beideman25-Jul-05 4:46
Rick Beideman25-Jul-05 4:46 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah25-Jul-05 4:59
Alomgir Miah25-Jul-05 4:59 
GeneralRe: Releasing bitmap file after open Pin
Dave Kreskowiak25-Jul-05 5:32
mveDave Kreskowiak25-Jul-05 5:32 
Never have I had a problem with a Generic GDI error while using a Bitmap object. And I've created Bitmap objects from just about every imaginable source, be it a resource stream, external file, serialized network stream, XML data, SQL database, ... Come to think of it, I've never had a GDI+ error that wasn't caused by me doing something stupid, like trying to draw to the same object from two different threads at the same time.

If you have to keep the stream open, why does MSDN have an article that shows you how to get around this -> PRB: Image File Is Locked When You Set the PictureBox Image Property to a File[^]

The Bitmap class inherits from Image, so I fail to why you would have to keep the stream open for a Bitmap object and not for an Image object.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Releasing bitmap file after open Pin
Rick Beideman25-Jul-05 5:38
Rick Beideman25-Jul-05 5:38 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah25-Jul-05 5:57
Alomgir Miah25-Jul-05 5:57 
GeneralRe: Releasing bitmap file after open Pin
Dave Kreskowiak25-Jul-05 6:32
mveDave Kreskowiak25-Jul-05 6:32 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah25-Jul-05 6:58
Alomgir Miah25-Jul-05 6:58 
GeneralRe: Releasing bitmap file after open Pin
Dave Kreskowiak25-Jul-05 9:31
mveDave Kreskowiak25-Jul-05 9:31 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah25-Jul-05 12:00
Alomgir Miah25-Jul-05 12:00 
GeneralRe: Releasing bitmap file after open Pin
Dave Kreskowiak26-Jul-05 1:10
mveDave Kreskowiak26-Jul-05 1:10 
GeneralRe: Releasing bitmap file after open Pin
Alomgir Miah26-Jul-05 3:58
Alomgir Miah26-Jul-05 3:58 
GeneralNetwork Simulation Pin
harooniq25-Jul-05 2:44
harooniq25-Jul-05 2:44 
GeneralRe: Network Simulation Pin
LongRange.Shooter25-Jul-05 9:54
LongRange.Shooter25-Jul-05 9:54 
GeneralWriting Accented characters to text files Pin
SilverStag25-Jul-05 2:42
SilverStag25-Jul-05 2:42 
GeneralRe: Writing Accented characters to text files Pin
Dario Solera25-Jul-05 5:04
Dario Solera25-Jul-05 5:04 
GeneralRe: Writing Accented characters to text files Pin
SilverStag25-Jul-05 19:56
SilverStag25-Jul-05 19:56 
GeneralDataGrid events Pin
zaboboa25-Jul-05 2:21
zaboboa25-Jul-05 2:21 
GeneralRe: DataGrid events Pin
Alomgir Miah25-Jul-05 3:30
Alomgir Miah25-Jul-05 3:30 
GeneralRe: DataGrid events Pin
zaboboa25-Jul-05 3:53
zaboboa25-Jul-05 3:53 
GeneralRe: DataGrid events Pin
Alomgir Miah25-Jul-05 4:08
Alomgir Miah25-Jul-05 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.