Click here to Skip to main content
15,902,772 members
Home / Discussions / C#
   

C#

 
QuestionSingleton ? Pin
Christian Graus24-Aug-04 16:06
protectorChristian Graus24-Aug-04 16:06 
AnswerRe: Singleton ? Pin
Heath Stewart24-Aug-04 16:11
protectorHeath Stewart24-Aug-04 16:11 
QuestionHashtable error: "Object reference not set to an instance of ans object."! ??? Pin
gman4424-Aug-04 15:04
gman4424-Aug-04 15:04 
AnswerRe: Hashtable error: "Object reference not set to an instance of ans object."! ??? Pin
Charlie Williams24-Aug-04 15:33
Charlie Williams24-Aug-04 15:33 
GeneralRe: Hashtable error: "Object reference not set to an instance of ans object."! ??? Pin
Heath Stewart24-Aug-04 15:53
protectorHeath Stewart24-Aug-04 15:53 
GeneralRe: Hashtable error: "Object reference not set to an instance of ans object."! ??? Pin
Charlie Williams24-Aug-04 16:35
Charlie Williams24-Aug-04 16:35 
AnswerRe: Hashtable error: "Object reference not set to an instance of ans object."! ??? Pin
Heath Stewart24-Aug-04 15:51
protectorHeath Stewart24-Aug-04 15:51 
AnswerRe: Hashtable error: "Object reference not set to an instance of ans object."! ??? Pin
Jay Shankar24-Aug-04 16:09
Jay Shankar24-Aug-04 16:09 
While adding the object in the HashTable hash you have used
hash(tmp[0], tmp[1])
where tmp[0] is a string and also the key value for string object tmp[1]
where as while accessing the hash value you are using hash[1], here key u r using as int (value 1). This is the cause of the error.

Replace the line 613 as below.

if(hash.ContainsKey("1"))
{
	//where "1" is the key
	string str  = hash["1"].ToString();

}

Regards,

Jay
GeneralC# CreateGraphics() Pin
Moon Boy24-Aug-04 13:01
Moon Boy24-Aug-04 13:01 
GeneralRe: C# CreateGraphics() Pin
Charlie Williams24-Aug-04 13:33
Charlie Williams24-Aug-04 13:33 
GeneralRe: C# CreateGraphics() Pin
Jay Shankar24-Aug-04 15:19
Jay Shankar24-Aug-04 15:19 
GeneralRe: C# CreateGraphics() Pin
Moon Boy24-Aug-04 16:52
Moon Boy24-Aug-04 16:52 
GeneralRe: C# CreateGraphics() Pin
leppie24-Aug-04 19:57
leppie24-Aug-04 19:57 
GeneralRe: C# CreateGraphics() Pin
Jay Shankar24-Aug-04 21:30
Jay Shankar24-Aug-04 21:30 
GeneralC# UserControl Pin
markjuggles24-Aug-04 11:20
markjuggles24-Aug-04 11:20 
GeneralRe: C# UserControl Pin
Nick Parker24-Aug-04 11:32
protectorNick Parker24-Aug-04 11:32 
GeneralRe: C# UserControl Pin
Charlie Williams24-Aug-04 11:52
Charlie Williams24-Aug-04 11:52 
GeneralRe: C# UserControl Pin
markjuggles24-Aug-04 14:27
markjuggles24-Aug-04 14:27 
QuestionC# - How to Zip file on the Web Server? Pin
HyVong24-Aug-04 9:45
HyVong24-Aug-04 9:45 
AnswerRe: C# - How to Zip file on the Web Server? Pin
Not Active24-Aug-04 9:52
mentorNot Active24-Aug-04 9:52 
GeneralRe: C# - How to Zip file on the Web Server? Pin
Heath Stewart24-Aug-04 10:46
protectorHeath Stewart24-Aug-04 10:46 
GeneralRe: C# - How to Zip file on the Web Server? Pin
HyVong26-Aug-04 4:38
HyVong26-Aug-04 4:38 
GeneralRe: C# - How to Zip file on the Web Server? Pin
HyVong26-Aug-04 5:36
HyVong26-Aug-04 5:36 
AnswerRe: C# - How to Zip file on the Web Server? Pin
Anonymous24-Aug-04 10:03
Anonymous24-Aug-04 10:03 
AnswerRe: C# - How to Zip file on the Web Server? Pin
Nick Parker24-Aug-04 10:38
protectorNick Parker24-Aug-04 10:38 

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.