Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
QuestionWindows Phone 7 passing multiple items between pages Pin
Paul Harsent29-Dec-10 8:06
Paul Harsent29-Dec-10 8:06 
AnswerRe: Windows Phone 7 passing multiple items between pages Pin
Pete O'Hanlon29-Dec-10 9:09
mvePete O'Hanlon29-Dec-10 9:09 
GeneralRe: Windows Phone 7 passing multiple items between pages Pin
Paul Harsent29-Dec-10 10:47
Paul Harsent29-Dec-10 10:47 
GeneralRe: Windows Phone 7 passing multiple items between pages Pin
Pete O'Hanlon29-Dec-10 10:49
mvePete O'Hanlon29-Dec-10 10:49 
QuestionProblem with reading Bytes Pin
Honeyboy_2029-Dec-10 7:49
Honeyboy_2029-Dec-10 7:49 
AnswerRe: Problem with reading Bytes Pin
Honeyboy_2029-Dec-10 7:50
Honeyboy_2029-Dec-10 7:50 
GeneralRe: Problem with reading Bytes Pin
Richard MacCutchan29-Dec-10 9:23
mveRichard MacCutchan29-Dec-10 9:23 
GeneralRe: Problem with reading Bytes Pin
Luc Pattyn29-Dec-10 9:34
sitebuilderLuc Pattyn29-Dec-10 9:34 
Hi,

your code is hard to read, you should use PRE tags instead of CODE tags, as that would preserve formatting and indentation.
You also should HTML-escape the < and > and & signs, possibly using the widgets the edit page offers. That way the generic lists would show properly. You could still edit and improve the existing message.

Here are some comments:

1.
When the data is numeric, it is just silly to convert it to string for comparison purposes. You really should be using something like
if (myIntOrMyByte==0x55)...

and not mix decimal and hexadecimal all the time. C# knows about hex literals!

2.
Is this an official standard you're implementing? I'm not familiar with double 0x55 and double 0xCC as special markers. And what makes one so sure they will never appear in the data?

3.
If you're getting exceptions, you should watch the stack traceback; for a debug build it holds class names, file names *and* line numbers, pointing to the exact line that bombs. And if you can't figure it out, show the exact exception message and indicate the line where it happens.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Season's Greetings to all CPians.


AnswerRe: Problem with reading Bytes Pin
carbon_golem29-Dec-10 8:34
carbon_golem29-Dec-10 8:34 
GeneralRe: Problem with reading Bytes Pin
Honeyboy_2029-Dec-10 8:57
Honeyboy_2029-Dec-10 8:57 
GeneralRe: Problem with reading Bytes Pin
Henry Minute29-Dec-10 9:29
Henry Minute29-Dec-10 9:29 
GeneralRe: Problem with reading Bytes Pin
carbon_golem29-Dec-10 10:30
carbon_golem29-Dec-10 10:30 
AnswerRe: Problem with reading Bytes Pin
carbon_golem29-Dec-10 12:47
carbon_golem29-Dec-10 12:47 
GeneralRe: Problem with reading Bytes Pin
Roger Wright2-Jan-11 18:09
professionalRoger Wright2-Jan-11 18:09 
Questionchanging a table name in dataset Pin
Ramkithepower29-Dec-10 5:58
Ramkithepower29-Dec-10 5:58 
AnswerRe: changing a table name in dataset Pin
Sandesh M Patil29-Dec-10 6:06
Sandesh M Patil29-Dec-10 6:06 
GeneralRe: changing a table name in dataset Pin
Ramkithepower29-Dec-10 22:52
Ramkithepower29-Dec-10 22:52 
GeneralRe: changing a table name in dataset Pin
Sandesh M Patil30-Dec-10 0:36
Sandesh M Patil30-Dec-10 0:36 
QuestionNot your normal timeout... Pin
Pualee29-Dec-10 4:15
Pualee29-Dec-10 4:15 
AnswerRe: Not your normal timeout... Pin
Ravi Sant29-Dec-10 4:25
Ravi Sant29-Dec-10 4:25 
AnswerRe: Not your normal timeout... Pin
Ravi Sant29-Dec-10 4:27
Ravi Sant29-Dec-10 4:27 
GeneralRe: Not your normal timeout... Pin
Pualee29-Dec-10 4:48
Pualee29-Dec-10 4:48 
GeneralRe: Not your normal timeout... Pin
Ravi Sant29-Dec-10 8:25
Ravi Sant29-Dec-10 8:25 
AnswerRe: Not your normal timeout... Pin
Dave Kreskowiak29-Dec-10 6:30
mveDave Kreskowiak29-Dec-10 6:30 
QuestionShare the App_Themes folder between multiple sites Pin
anderslundsgard29-Dec-10 4:14
anderslundsgard29-Dec-10 4:14 

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.