Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
Dave Kreskowiak29-Dec-09 18:08
mveDave Kreskowiak29-Dec-09 18:08 
QuestionWeird Debugging Problem Pin
#realJSOP29-Dec-09 0:10
professional#realJSOP29-Dec-09 0:10 
AnswerRe: Weird Debugging Problem Pin
Keith Barrow29-Dec-09 2:02
professionalKeith Barrow29-Dec-09 2:02 
AnswerRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 2:35
Ben Fair29-Dec-09 2:35 
GeneralRe: Weird Debugging Problem Pin
Luc Pattyn29-Dec-09 2:45
sitebuilderLuc Pattyn29-Dec-09 2:45 
GeneralRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 3:07
Ben Fair29-Dec-09 3:07 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 2:50
professional#realJSOP29-Dec-09 2:50 
GeneralRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 3:11
Ben Fair29-Dec-09 3:11 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 3:59
professional#realJSOP29-Dec-09 3:59 
GeneralRe: Weird Debugging Problem [modified] Pin
Keith Barrow29-Dec-09 3:38
professionalKeith Barrow29-Dec-09 3:38 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 4:02
professional#realJSOP29-Dec-09 4:02 
GeneralRe: Weird Debugging Problem Pin
Keith Barrow29-Dec-09 4:40
professionalKeith Barrow29-Dec-09 4:40 
AnswerRe: Weird Debugging Problem Pin
Saksida Bojan29-Dec-09 3:07
Saksida Bojan29-Dec-09 3:07 
GeneralRe: Weird Debugging Problem Pin
#realJSOP29-Dec-09 4:04
professional#realJSOP29-Dec-09 4:04 
GeneralRe: Weird Debugging Problem Pin
ProtoBytes29-Dec-09 8:43
ProtoBytes29-Dec-09 8:43 
Questionhow to move multipoint button at run time Pin
krunal2528-Dec-09 23:22
krunal2528-Dec-09 23:22 
AnswerRe: how to move multipoint button at run time Pin
Luc Pattyn29-Dec-09 1:11
sitebuilderLuc Pattyn29-Dec-09 1:11 
QuestionError: A Generic Error occured in GDI+ Pin
Udayaraju28-Dec-09 23:00
Udayaraju28-Dec-09 23:00 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Luc Pattyn29-Dec-09 1:15
sitebuilderLuc Pattyn29-Dec-09 1:15 
GeneralRe: Error: A Generic Error occured in GDI+ Pin
Ben Fair29-Dec-09 3:28
Ben Fair29-Dec-09 3:28 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Hristo-Bojilov29-Dec-09 1:24
Hristo-Bojilov29-Dec-09 1:24 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Ben Fair29-Dec-09 3:23
Ben Fair29-Dec-09 3:23 
Along the lines of the other recommendations, taking the image data and constructing a Bitmap of it seems to be extraneous. If you have the image data already, then there is no benefit in using that data to construct a Bitmap other than being able to invoke Bitmap.Save(). All you really need to do is write the data directly to disk:

using (FileStream fs = new FileStream(Server.MapPath(@"~\UserPhoto.bmp"), FileMode.CreateNew))
{
    fs.Write(Data, 0, Data.Length);
}


This also has the benefit of removing GDI from the equation. So, if you still get an exception you will atleast be able to catch it as some sort of IO Exception and get more meaningful information about the problem.

Hold on a second here... Don't you think you might be putting the horse ahead of the cart?

Questionsetinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala28-Dec-09 22:54
krinaljariwala28-Dec-09 22:54 
AnswerRe: setinputtodefaultaudiodevice() not working in xp Pin
#realJSOP28-Dec-09 23:58
professional#realJSOP28-Dec-09 23:58 
GeneralRe: setinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala29-Dec-09 0:03
krinaljariwala29-Dec-09 0:03 

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.