Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting Strings to Hex Pin
Guinness4Strength3-Oct-05 8:44
Guinness4Strength3-Oct-05 8:44 
AnswerRe: Converting Strings to Hex Pin
Dario Solera3-Oct-05 7:06
Dario Solera3-Oct-05 7:06 
GeneralRe: Converting Strings to Hex Pin
Guinness4Strength3-Oct-05 8:43
Guinness4Strength3-Oct-05 8:43 
GeneralRe: Converting Strings to Hex Pin
Dario Solera3-Oct-05 9:08
Dario Solera3-Oct-05 9:08 
GeneralRe: Converting Strings to Hex Pin
Guinness4Strength3-Oct-05 9:12
Guinness4Strength3-Oct-05 9:12 
GeneralRe: Converting Strings to Hex Pin
Dario Solera4-Oct-05 5:25
Dario Solera4-Oct-05 5:25 
QuestionISerializable problems Pin
g00fyman3-Oct-05 3:53
g00fyman3-Oct-05 3:53 
AnswerRe: ISerializable problems Pin
Robert Rohde3-Oct-05 7:27
Robert Rohde3-Oct-05 7:27 
You should also tell us when this error is coming (while serialization or deserialization).

I would guess its while deserializing data from an old version of this class (where there was no pings field). Thus the line this.pings = (int)info.GetValue("PingCount", typeof(int)); will fail and the error given comes because the constructor is invoked via reflection.

You should probably put a Try-Catch around this line and anaylze the exception to determine if I'm correct. If yes, then you have to decide what to do when dealing with an old instance (e.g. ignoring it and leaving pings at 0).
GeneralRe: ISerializable problems Pin
g00fyman3-Oct-05 13:47
g00fyman3-Oct-05 13:47 
GeneralRe: ISerializable problems Pin
Robert Rohde3-Oct-05 20:40
Robert Rohde3-Oct-05 20:40 
GeneralRe: ISerializable problems Pin
g00fyman3-Oct-05 20:59
g00fyman3-Oct-05 20:59 
QuestionPolar Graph in c#?? Pin
parvinder sehrawat3-Oct-05 3:30
parvinder sehrawat3-Oct-05 3:30 
AnswerRe: Polar Graph in c#?? Pin
Robert Rohde3-Oct-05 7:20
Robert Rohde3-Oct-05 7:20 
QuestionWriting code for Credit Card Reader in C# Pin
CharlyBrownson3-Oct-05 3:05
CharlyBrownson3-Oct-05 3:05 
AnswerRe: Writing code for Credit Card Reader in C# Pin
g00fyman3-Oct-05 4:09
g00fyman3-Oct-05 4:09 
GeneralRe: Writing code for Credit Card Reader in C# Pin
CharlyBrownson3-Oct-05 14:25
CharlyBrownson3-Oct-05 14:25 
GeneralRe: Writing code for Credit Card Reader in C# Pin
g00fyman3-Oct-05 15:44
g00fyman3-Oct-05 15:44 
QuestionC# and authenticating with LDAP Pin
ehuysamer3-Oct-05 2:49
ehuysamer3-Oct-05 2:49 
QuestionPassing Passwords ARGS Pin
har04mich3-Oct-05 2:30
har04mich3-Oct-05 2:30 
AnswerRe: Passing Passwords ARGS Pin
ehuysamer4-Oct-05 4:25
ehuysamer4-Oct-05 4:25 
QuestionGDI+ Problemo Pin
XeoN-Kc3-Oct-05 2:05
XeoN-Kc3-Oct-05 2:05 
AnswerRe: GDI+ Problemo Pin
leppie3-Oct-05 3:12
leppie3-Oct-05 3:12 
AnswerRe: GDI+ Problemo Pin
Andrew Kirillov3-Oct-05 3:44
Andrew Kirillov3-Oct-05 3:44 
GeneralRe: GDI+ Problemo Pin
XeoN-Kc3-Oct-05 7:55
XeoN-Kc3-Oct-05 7:55 
GeneralRe: GDI+ Problemo Pin
Andrew Kirillov3-Oct-05 9:40
Andrew Kirillov3-Oct-05 9:40 

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.