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

C#

 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:18
professionalDaveyM693-Jan-10 0:18 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:33
Rob Philpott3-Jan-10 0:33 
GeneralRe: I'm Baffled Again Pin
Richard MacCutchan3-Jan-10 4:49
mveRichard MacCutchan3-Jan-10 4:49 
GeneralRe: I'm Baffled Again Pin
Roger Wright3-Jan-10 5:40
professionalRoger Wright3-Jan-10 5:40 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 2:15
professionalRoger Wright4-Jan-10 2:15 
GeneralRe: I'm Baffled Again Pin
DaveyM694-Jan-10 7:43
professionalDaveyM694-Jan-10 7:43 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 13:04
professionalRoger Wright4-Jan-10 13:04 
QuestionSystem.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes2-Jan-10 13:34
uglyeyes2-Jan-10 13:34 
AnswerRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
Abhinav S2-Jan-10 18:11
Abhinav S2-Jan-10 18:11 
GeneralRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes3-Jan-10 1:15
uglyeyes3-Jan-10 1:15 
GeneralRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes4-Jan-10 1:41
uglyeyes4-Jan-10 1:41 
QuestionBest way to populate this DataGridView Pin
BDJones2-Jan-10 6:50
BDJones2-Jan-10 6:50 
AnswerMessage Closed Pin
2-Jan-10 14:58
stancrm2-Jan-10 14:58 
QuestionRe: Best way to populate this DataGridView [modified] Pin
BDJones3-Jan-10 5:27
BDJones3-Jan-10 5:27 
AnswerRe: Best way to populate this DataGridView Pin
darkelv2-Jan-10 15:52
darkelv2-Jan-10 15:52 
QuestionWhy database.mdf is not filtered in a crystal report while connectiong a database? Pin
CoderForEver2-Jan-10 6:18
CoderForEver2-Jan-10 6:18 
Questionc# sockets [modified] Pin
ikurtz2-Jan-10 5:30
ikurtz2-Jan-10 5:30 
AnswerRe: c# sockets Pin
N a v a n e e t h2-Jan-10 6:48
N a v a n e e t h2-Jan-10 6:48 
AnswerRe: c# sockets Pin
Rob Philpott2-Jan-10 6:58
Rob Philpott2-Jan-10 6:58 
QuestionArithmetic operation resulted in an overflow. Pin
3bood.ghzawi2-Jan-10 3:12
3bood.ghzawi2-Jan-10 3:12 
AnswerRe: Arithmetic operation resulted in an overflow. Pin
#realJSOP2-Jan-10 3:39
professional#realJSOP2-Jan-10 3:39 
AnswerRe: Arithmetic operation resulted in an overflow. Pin
Alan N2-Jan-10 3:54
Alan N2-Jan-10 3:54 
Hi,
The problem here is the cast to UInt16 which fails when the IPAddress byte order reversal method returns a negative value. Overflow checking must be disabled to allow the 16 bit result which is typed as Int16 to be successfully assigned to an unsigned type. Use the unchecked keyword to do this.

val = unchecked((UInt16)IPAddress.NetworkToHostOrder(br.ReadInt16())); 


Alan.
GeneralRe: Arithmetic operation resulted in an overflow. Pin
Daniel Grunwald2-Jan-10 10:53
Daniel Grunwald2-Jan-10 10:53 
GeneralRe: Arithmetic operation resulted in an overflow. Pin
harold aptroot2-Jan-10 10:56
harold aptroot2-Jan-10 10:56 
GeneralRe: Arithmetic operation resulted in an overflow. Pin
Daniel Grunwald2-Jan-10 10:58
Daniel Grunwald2-Jan-10 10:58 

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.