Click here to Skip to main content
16,004,833 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 6:46
mvePete O'Hanlon5-Jul-12 6:46 
Questionhow to bind datasource to treeview control Pin
mahendraprabu.m4-Jul-12 4:48
mahendraprabu.m4-Jul-12 4:48 
QuestionRe: how to bind datasource to treeview control Pin
Richard MacCutchan4-Jul-12 4:58
mveRichard MacCutchan4-Jul-12 4:58 
QuestionRe: how to bind datasource to treeview control Pin
Pete O'Hanlon4-Jul-12 6:45
mvePete O'Hanlon4-Jul-12 6:45 
Generali m getting an error while using array, please help me Pin
somasekhara7774-Jul-12 1:56
somasekhara7774-Jul-12 1:56 
SuggestionRe: i m getting an error while using array, please help me Pin
Eddy Vluggen4-Jul-12 2:05
professionalEddy Vluggen4-Jul-12 2:05 
AnswerRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:16
markovl4-Jul-12 2:16 
AnswerRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:16
mvePete O'Hanlon4-Jul-12 2:16 
For those who can't read minds, the exception you are getting is an out of bounds exception. The area that you are hitting this exception is here:
C#
(a[i, j + 1] * b[i + 1, j])
The reason you are hitting this is because j+1 is 2 after the first iteration of j, which is outside of the bounds of the array. As I'm not sure what effect you are aiming at here, I can't really offer any concrete solution other than to say that you need to think through your logic here.

BTW - what length do you think is represented as a.Length or b.Length. It's not the 2 you're expecting; it's 4. Also, you are using <= in your conditions and it should be < only.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:21
markovl4-Jul-12 2:21 
GeneralRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:32
mvePete O'Hanlon4-Jul-12 2:32 
AnswerRe: i m getting an error while using array, please help me Pin
Luc Pattyn4-Jul-12 11:36
sitebuilderLuc Pattyn4-Jul-12 11:36 
GeneralProblem with Writing FileStream Pin
Software20074-Jul-12 0:01
Software20074-Jul-12 0:01 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 0:21
mveRichard MacCutchan4-Jul-12 0:21 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 0:29
mvePete O'Hanlon4-Jul-12 0:29 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 3:47
mveRichard MacCutchan4-Jul-12 3:47 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 4:05
mvePete O'Hanlon4-Jul-12 4:05 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 4:20
mveRichard MacCutchan4-Jul-12 4:20 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 4:40
mvePete O'Hanlon4-Jul-12 4:40 
GeneralRe: Problem with Writing FileStream Pin
Luc Pattyn4-Jul-12 1:33
sitebuilderLuc Pattyn4-Jul-12 1:33 
GeneralRe: Problem with Writing FileStream Pin
Software20074-Jul-12 7:16
Software20074-Jul-12 7:16 
GeneralRe: Problem with Writing FileStream Pin
Trak4Net4-Jul-12 7:47
Trak4Net4-Jul-12 7:47 
GeneralRe: Problem with Writing FileStream Pin
Luc Pattyn4-Jul-12 8:02
sitebuilderLuc Pattyn4-Jul-12 8:02 
GeneralRe: Problem with Writing FileStream Pin
Software20074-Jul-12 11:07
Software20074-Jul-12 11:07 
GeneralRe: Problem with Writing FileStream Pin
Trak4Net4-Jul-12 11:29
Trak4Net4-Jul-12 11:29 
GeneralRe: Problem with Writing FileStream Pin
Software20074-Jul-12 11:46
Software20074-Jul-12 11:46 

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.