Hello everyone I've been working on this for hours trying to fix it to no avail so i decided to look for some online help and found this forum by chance.

this is basically the piece of code:

Code:
            //get cards quantities
            int[] cardm1 = null;
            i = 1;

            while (i < countcardsquantity)
            {
                int m = i - 1;

                cardm1[m] = int.Parse(cardquantity[i]);

                i = i + 2;
            }
there is nothing wrong with the values of countcardsquantity and cardquantity[i] since i tested them separately but anyway countcardsquantity = 140 if you were wondering.

Anyway after trying to put message boxes everywhere i realized that anything after this line of code
Code:
cardm1[m] = int.Parse(cardquantity[i]);
wasn't showing the message box even if the message box code is actually outside the loop so i m guessing something's wrong with this line I just have no idea what the problem is...

and by the way commenting out the line made everything else work normally. So yeah I've been wondering for a while what is wrong with that simple line?

Thank you, appreciate the help.