|
-
May 15th, 2021, 08:17 AM
#5
Re: Error on creating user control object
 Originally Posted by pourkascheff
How can I rectify it?
You're obviously doing some bad maths to get that text in the first place. I suspect that you are doing a percentage calculation somewhere and converting the result to a String but the result is Double.NaN. You're probably dividing by zero but a proper debug will tell you for sure.
You shouldn't need us to tell you to do a proper debug in the first place. The exception info you posted tells you exactly what the issue is and where it occurred. Did you even read it before posting? You should have immediately placed a breakpoint on that line 127 and seen for yourself what the issue was. You could have then worked backwards to see where the bad data was coming from and what you could do to prevent. That's all stuff you should be doing before posting here, then only posting if you can't work it out.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|