Hi,
Are you still troubled by the exception?
If I encounter such error when convert a string to an int value, I will set a breakpoint at that line, run the program, when the breakpoint is hit, check the value of parametri[0] to make sure it is a sequence of digits.
By the way, Int32.TryParse method provides a friendly way to do the conversion, a "false" instead of an exception will be returned if the given string is not a valid int value.
Thanks,
Eric
Please remember to mark helpful replies as answers and unmark them if they provide no help.