Click here to Skip to main content
15,894,630 members
Home / Discussions / C#
   

C#

 
AnswerRe: Ugly error Pin
nc3b30-Jan-06 22:06
nc3b30-Jan-06 22:06 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:11
nc3b30-Jan-06 22:11 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:27
Colin Angus Mackay30-Jan-06 22:27 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:29
nc3b30-Jan-06 22:29 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:46
Colin Angus Mackay30-Jan-06 22:46 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:48
nc3b30-Jan-06 22:48 
GeneralRe: Ugly error Pin
Colin Angus Mackay30-Jan-06 22:50
Colin Angus Mackay30-Jan-06 22:50 
AnswerRe: Ugly error Pin
Ingo30-Jan-06 22:46
Ingo30-Jan-06 22:46 
Hi!

First I would use a 'try-catch' just like:

try {
-your code-
} catch (Exception expt) {
System.Windows.Forms.MessageBox.Show(expt.ToString());
} // try-catch

The Next Point is that inline-code is easy to programm but hard to debug, so it's no good style to do everytrhing in a single line. So split your code:

string[] strArrayGot = Got.Split(":".ToCharArray(),2);
TO[num].Receive(strArrayGot[1]);

The next thing you have todo is watch your debugger. Then you can find out where the program exists.

I just talk about your variable names. But its hard to read. What the hell is TO and what about TOS? And listBox1 isn't a good name, too. What is handled there? The Number '1'?

Ok, you can programm that way, but it's hard to read and hard to find errors, so you should try to code a little bit more readable.

Hope I didn't dumbfounded you, was just an idea.

Greetings,
Ingo




-- modified at 4:47 Tuesday 31st January, 2006
GeneralRe: Ugly error Pin
nc3b30-Jan-06 22:56
nc3b30-Jan-06 22:56 
GeneralRe: Ugly error Pin
Ingo30-Jan-06 23:08
Ingo30-Jan-06 23:08 
GeneralRe: Ugly error Pin
nc3b30-Jan-06 23:11
nc3b30-Jan-06 23:11 
GeneralRe: Ugly error Pin
Ingo30-Jan-06 23:22
Ingo30-Jan-06 23:22 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 6:52
nc3b31-Jan-06 6:52 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 7:07
nc3b31-Jan-06 7:07 
GeneralRe: Ugly error Pin
S. Senthil Kumar31-Jan-06 15:50
S. Senthil Kumar31-Jan-06 15:50 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 21:41
nc3b31-Jan-06 21:41 
QuestionInstantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar30-Jan-06 20:08
Vikram A Punathambekar30-Jan-06 20:08 
AnswerRe: Instantiating a class from a third party DLL and calling methods on it Pin
Kodanda Pani30-Jan-06 20:42
Kodanda Pani30-Jan-06 20:42 
GeneralRe: Instantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar30-Jan-06 21:59
Vikram A Punathambekar30-Jan-06 21:59 
AnswerRe: Instantiating a class from a third party DLL and calling methods on it Pin
S. Senthil Kumar31-Jan-06 15:57
S. Senthil Kumar31-Jan-06 15:57 
GeneralRe: Instantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar31-Jan-06 16:18
Vikram A Punathambekar31-Jan-06 16:18 
QuestionGet html flow when the page is called Pin
porgy30-Jan-06 19:51
porgy30-Jan-06 19:51 
AnswerRe: Get html flow when the page is called Pin
leppie30-Jan-06 20:33
leppie30-Jan-06 20:33 
GeneralRe: Get html flow when the page is called Pin
porgy31-Jan-06 9:21
porgy31-Jan-06 9:21 
QuestionLaunch Mail Recipient programmatically Pin
NewbieDude30-Jan-06 19:37
NewbieDude30-Jan-06 19:37 

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.