question

DanielShepherd-8507 avatar image
0 Votes"
DanielShepherd-8507 asked DanielZhang-MSFT commented

What is an "exception" and how do i fix it in microsoft visual studio?

i am new to these concepts like "breakpoints" and "exceptions" in programming. i need help with a "exception." i have no build errors in my code, but it wont launch the program for some reason. please help!
here is a screenshot:
90789-screenshot-2021-04-23-170409.png


windows-forms
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I suggest that you start somewhere like this topic.
Put a breakpoint in your Form1_Load method somewhere near to where you define ipPort and step through the code. The exception is telling you that you're trying to use that variable before its been assigned.


0 Votes 0 ·

i put a breakpoint near the 'form1' loading function, but it still did not work. but, IpPort is a part of NUget application for visual studio. also known as "supersimpleTCP." also, one more thing. IpPort i am pretty sure already has a defined value in the package.

0 Votes 0 ·

Hi @DanielShepherd-8507,
In order to find the cause of the problem more accurately, please provide the code in your Form1_Load to reproduce the problem.
Best Regards,
Daniel Zhang

0 Votes 0 ·

0 Answers