Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use common files on source code level ? Pin
S. Senthil Kumar7-Dec-05 1:38
S. Senthil Kumar7-Dec-05 1:38 
GeneralRe: How to use common files on source code level ? Pin
fracalifa7-Dec-05 8:38
fracalifa7-Dec-05 8:38 
QuestionUse of PersianClanedar as current culture in .NET 2.0 (HELP) Pin
Mohammad Mir mostafa7-Dec-05 0:55
Mohammad Mir mostafa7-Dec-05 0:55 
QuestionUrgent: convert XML file in a excel one Pin
Sasuko7-Dec-05 0:33
Sasuko7-Dec-05 0:33 
QuestionFinalizer problem Pin
Bob Stanneveld7-Dec-05 0:29
Bob Stanneveld7-Dec-05 0:29 
AnswerRe: Finalizer problem Pin
mav.northwind7-Dec-05 1:14
mav.northwind7-Dec-05 1:14 
AnswerRe: Finalizer problem Pin
S. Senthil Kumar7-Dec-05 1:28
S. Senthil Kumar7-Dec-05 1:28 
QuestionPublish COM class from inside a WindowsForms application? Pin
mav.northwind6-Dec-05 23:13
mav.northwind6-Dec-05 23:13 
QuestionCommunicating with Macromedia Flash in .Net Pin
Hadi Riazi6-Dec-05 21:32
Hadi Riazi6-Dec-05 21:32 
Questionsave aimage from the form in .jpeg format Pin
dhol6-Dec-05 20:21
dhol6-Dec-05 20:21 
QuestionConvert int to int[ ]? Pin
MudkiSekhon6-Dec-05 20:12
MudkiSekhon6-Dec-05 20:12 
AnswerRe: Convert int to int[ ]? Pin
S. Senthil Kumar6-Dec-05 20:29
S. Senthil Kumar6-Dec-05 20:29 
Questionsocket-client Pin
Ankit Aneja6-Dec-05 19:41
Ankit Aneja6-Dec-05 19:41 
AnswerRe: socket-client Pin
Vikram A Punathambekar6-Dec-05 21:59
Vikram A Punathambekar6-Dec-05 21:59 
Please format your code snippets using PRE and CODE blocks. It makes it easier for people to help you.

The problem is that client[] cl=new client[5]; merely creates an array of 5 references to client objects. It does NOT create 5 client objects. So, before you do anything at all with your array, you should do
for(int i = 0; i < cl.Length; i++)
{
    cl[i] = new client();
}


Typically, this code should go in the ctor of the class which contains the array, in this case, listen.


Cheers,
Vikram.
"When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
GeneralRe: socket-client Pin
Ankit Aneja6-Dec-05 22:31
Ankit Aneja6-Dec-05 22:31 
QuestionSynchronization Require inStatic Function Call! Pin
majidbhutta6-Dec-05 17:54
majidbhutta6-Dec-05 17:54 
AnswerRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 1:33
S. Senthil Kumar7-Dec-05 1:33 
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 3:33
majidbhutta7-Dec-05 3:33 
GeneralRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 4:12
S. Senthil Kumar7-Dec-05 4:12 
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 4:26
majidbhutta7-Dec-05 4:26 
GeneralRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 4:35
S. Senthil Kumar7-Dec-05 4:35 
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 5:07
majidbhutta7-Dec-05 5:07 
QuestionI don't want to display Relation name on DataGrid Pin
dhtuan6-Dec-05 16:21
dhtuan6-Dec-05 16:21 
QuestionTreeView CheckBoxes, but not their children Pin
meatago6-Dec-05 14:28
meatago6-Dec-05 14:28 
QuestionSkeleton Key Cryptography Pin
MrEyes6-Dec-05 13:10
MrEyes6-Dec-05 13:10 

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.