Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: Couldn't able to receive large file from webservice Pin
Richard MacCutchan8-May-12 23:09
mveRichard MacCutchan8-May-12 23:09 
GeneralRe: Couldn't able to receive large file from webservice Pin
NarVish8-May-12 23:16
NarVish8-May-12 23:16 
GeneralRe: Couldn't able to receive large file from webservice Pin
Pete O'Hanlon8-May-12 23:26
mvePete O'Hanlon8-May-12 23:26 
GeneralRe: Couldn't able to receive large file from webservice Pin
NarVish9-May-12 0:06
NarVish9-May-12 0:06 
AnswerRe: Couldn't able to receive large file from webservice Pin
Keith Barrow8-May-12 23:47
professionalKeith Barrow8-May-12 23:47 
AnswerRe: Couldn't able to receive large file from webservice Pin
Pete O'Hanlon9-May-12 0:07
mvePete O'Hanlon9-May-12 0:07 
QuestionHow do Merge cell in excel of xml? Pin
Apocalypse Now8-May-12 21:03
Apocalypse Now8-May-12 21:03 
AnswerRe: How do Merge cell in excel of xml? Pin
Richard MacCutchan8-May-12 21:57
mveRichard MacCutchan8-May-12 21:57 
GeneralRe: How do Merge cell in excel of xml? Pin
Apocalypse Now8-May-12 22:20
Apocalypse Now8-May-12 22:20 
SuggestionWhat are the references for the code bellow [Solved] Pin
jojoba20118-May-12 19:41
jojoba20118-May-12 19:41 
AnswerRe: What are the references for the code bellow Pin
Richard MacCutchan8-May-12 22:00
mveRichard MacCutchan8-May-12 22:00 
AnswerRe: What are the references for the code bellow Pin
Eddy Vluggen9-May-12 0:08
professionalEddy Vluggen9-May-12 0:08 
AnswerRe: What are the references for the code bellow Pin
Dain Ucak9-May-12 4:16
Dain Ucak9-May-12 4:16 
GeneralRe: What are the references for the code bellow Pin
jojoba20119-May-12 17:43
jojoba20119-May-12 17:43 
QuestionUser Settings Not Persisting Pin
Kevin Marois8-May-12 10:53
professionalKevin Marois8-May-12 10:53 
AnswerRe: User Settings Not Persisting Pin
SledgeHammer018-May-12 13:03
SledgeHammer018-May-12 13:03 
GeneralRe: User Settings Not Persisting Pin
Kevin Marois9-May-12 6:55
professionalKevin Marois9-May-12 6:55 
GeneralRe: User Settings Not Persisting Pin
SledgeHammer019-May-12 7:11
SledgeHammer019-May-12 7:11 
QuestionJaggedarray Null Reference Exception Pin
ariez888-May-12 10:07
ariez888-May-12 10:07 
Hi,
Below is the declaration at class level.

<pre lang="c#">int[] PossibleValues = new int[6];
int[][] JaggedArray = new int[50][];
int JaggedVar = 0;</pre>

Then in a function, I am assigning PossibleValues array to Jaggedarray like this.

[PossibleNumbers is a function that returns an array of possible numbers for a cell in a grid.]


<pre lang="c#">PossibleValues = PossibleNumbers();
JaggedArray[jaggedVar] = PossibleValues;
jaggedVar++;</pre>
The number of elements in PossibleValues in each iteration may vary,but it will never exceed 6.I dont want Jaggedarray to store zeros of PossibleValues so I changed the code to:

<pre lang="c#">PossibleValues = PossibleNumbers();
for (int i = 0; i < PossibleValues.Length; i++)
{
if (PossibleValues[i] != 0)
{
JaggedArray[jaggedVar][i] = new PossibleValues[i];
}
}
jaggedVar++;</pre>

But this gives null reference exception at
JaggedArray[jaggedVar][i] = new PossibleValues[i];

I searched it over the internet and came to know that JaggedArray remains null hence values cannot be assigned this way.How to resolve this?
Any help would be appreciated.
Thanks in advance!
AnswerRe: Jaggedarray Null Reference Exception Pin
Richard MacCutchan8-May-12 21:53
mveRichard MacCutchan8-May-12 21:53 
AnswerRe: Jaggedarray Null Reference Exception Pin
V.8-May-12 21:56
professionalV.8-May-12 21:56 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 2:49
ariez889-May-12 2:49 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 2:53
ariez889-May-12 2:53 
GeneralRe: Jaggedarray Null Reference Exception Pin
V.9-May-12 2:59
professionalV.9-May-12 2:59 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 7:15
ariez889-May-12 7:15 

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.