Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
AnswerRe: Uncloseable window Pin
Rahul.RK1-Jul-07 22:20
Rahul.RK1-Jul-07 22:20 
GeneralRe: Uncloseable window Pin
ruanr1-Jul-07 22:36
ruanr1-Jul-07 22:36 
AnswerRe: Uncloseable window Pin
Luc Pattyn1-Jul-07 23:56
sitebuilderLuc Pattyn1-Jul-07 23:56 
GeneralRe: Uncloseable window Pin
Vasudevan Deepak Kumar2-Jul-07 1:44
Vasudevan Deepak Kumar2-Jul-07 1:44 
GeneralRe: Uncloseable window Pin
Dan Neely2-Jul-07 2:01
Dan Neely2-Jul-07 2:01 
QuestionWebService Query Pin
Iftekhar Naim1-Jul-07 21:43
Iftekhar Naim1-Jul-07 21:43 
AnswerRe: WebService Query Pin
nitikin2-Jul-07 0:22
nitikin2-Jul-07 0:22 
QuestionNameValueCollection.GetValues(string Key) Pin
SakthiSurya1-Jul-07 21:18
SakthiSurya1-Jul-07 21:18 
Hi,

When i use this NVC.GetValues(KeyName), at times i am getting the following

error,

Void Copy(System.Array, Int32, System.Array, Int32, Int32, Boolean) :

Source array was not long enough. Check srcIndex and length, and the array's
lower bounds.

and

i am getting NullReferenceException when i use NVC.AllKeys with the
following message,

System.String BaseGetKey(Int32) ~ NRE ~ Object reference not set to an
instance of an object.


I cant predict the reason.

Here is my code snippet,

public void ProcessData(MyNVC procNVC)
{
if (procNVC.Count > 0)
{
try
{

string[] KeyArray = procNVC.AllKeys;

foreach (string skey in KeyArray)
{
string[] sVals = procNVC.GetValues(skey);
if (sVals.Length > 0)
{
sbuild.Append(skey + procNVC.Sum(sVals) + ';');
}
}
}
catch (ArgumentException oARG)
{
log.Info(oARG.TargetSite + " ~ ARG ~ " + oARG.Message);
}
catch (NullReferenceException oNRE)
{
log.Info(oNRE.TargetSite.ToString() + " ~ NRE ~ " + oNRE.Message);
}
catch (Exception oEXcpn)
{
log.Info(oEXcpn.StackTrace + " ~ EXCPn ~ " + oEXcpn.Message);
}

if (sbuild.Length > 0)
{
SendToClient(sbuild.ToString());
sbuild.Remove(0, sbuild.Length);
}
}
else
log.Info("No Elements in Collection:" );
}

With Thanks and Regards
Sakthi.










Questiondesign time element support [modified] Pin
Matglas1-Jul-07 20:52
Matglas1-Jul-07 20:52 
QuestionDataGridView:Retrieve the first column of the selected row Pin
Waskira1-Jul-07 20:46
Waskira1-Jul-07 20:46 
AnswerRe: DataGridView:Retrieve the first column of the selected row Pin
sidbaruah1-Jul-07 21:26
sidbaruah1-Jul-07 21:26 
GeneralRe: DataGridView:Retrieve the first column of the selected row Pin
Waskira1-Jul-07 22:02
Waskira1-Jul-07 22:02 
GeneralRe: DataGridView:Retrieve the first column of the selected row [modified] Pin
Waskira1-Jul-07 22:48
Waskira1-Jul-07 22:48 
QuestionSerial Program I dont understand Pin
mercenary011-Jul-07 20:09
mercenary011-Jul-07 20:09 
QuestionHow to Call a delay with C# Pin
mercenary011-Jul-07 19:46
mercenary011-Jul-07 19:46 
AnswerRe: How to Call a delay with C# Pin
Martin#1-Jul-07 19:50
Martin#1-Jul-07 19:50 
AnswerRe: How to Call a delay with C# Pin
Sathesh Sakthivel1-Jul-07 19:50
Sathesh Sakthivel1-Jul-07 19:50 
QuestionDebuging in VS2005 Pin
Glen Harvy1-Jul-07 19:38
Glen Harvy1-Jul-07 19:38 
AnswerRe: Debuging in VS2005 Pin
Vikram A Punathambekar1-Jul-07 20:05
Vikram A Punathambekar1-Jul-07 20:05 
GeneralRe: Debuging in VS2005 Pin
Glen Harvy1-Jul-07 20:20
Glen Harvy1-Jul-07 20:20 
GeneralRe: Debuging in VS2005 Pin
Martin#1-Jul-07 20:11
Martin#1-Jul-07 20:11 
GeneralRe: Debuging in VS2005 Pin
Vikram A Punathambekar1-Jul-07 23:46
Vikram A Punathambekar1-Jul-07 23:46 
GeneralRe: Debuging in VS2005 Pin
Vikram A Punathambekar1-Jul-07 23:48
Vikram A Punathambekar1-Jul-07 23:48 
GeneralRe: Debuging in VS2005 Pin
Martin#1-Jul-07 23:49
Martin#1-Jul-07 23:49 
AnswerRe: Debuging in VS2005 Pin
sidbaruah1-Jul-07 21:28
sidbaruah1-Jul-07 21:28 

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.