|
-
May 13th, 2016, 10:26 PM
#1
Thread Starter
Lively Member
[RESOLVED] Cant Debug.... Accidentally clicked on something? (Debugging issue)
I was working on this for quite some time then tried to debug it, and it wont run. I have debugged it a ton of times before this. Would anyone have a clue as to why this is happening? You can see the "stop" button but no form comes up in debug mode. Also when I create a "release" version it will not run as well. PS: This has nothing to do with the above but does clear up some troubleshooting aspects.... I reformatted my PC just yesterday as it was long past due. The debugging issue happened before i reformatted so the install of VB 2015 is fresh, FYI.
Bigger Picture: Here
Last edited by CHEEZEnCRACKERS; May 13th, 2016 at 10:46 PM.
-
May 14th, 2016, 05:04 AM
#2
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
-
May 14th, 2016, 10:32 AM
#3
Thread Starter
Lively Member
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
 Originally Posted by jmcilhinney
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
I found out it is something with the code not allowing it to execute. Im going to try your break-point suggestion.
-
May 14th, 2016, 11:14 AM
#4
Thread Starter
Lively Member
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
 Originally Posted by jmcilhinney
If you place a breakpoint on the Load event handler of the startup form, does it get hit? What about a breakpoint on the Startup event of the application?
Ok, the problem is this piece of code:
Code:
Dim num As Double = 1
Dim idealWrap As Double
While ((cordDiamIN * num) / coreDiamIN * 100D) <= 100D
num += 1
End While
Does anyone see a prob with it? It doesn't give me any errors.
-
May 14th, 2016, 01:02 PM
#5
Hyperactive Member
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
I tested it seems to be working but I set the cordDiamIN and coreDiamIN both to doubles it's possible yours might be set as something else that might be the issue not sure though. If those are currently strings or something else then you can convert them to doubles using a code like this.
vb.net Code:
While ((CDbl(cordDiamIN) * num) / CDbl(coreDiamIN) * 100D) <= 100D num += 1 End While
Last edited by Vexslasher; May 14th, 2016 at 01:12 PM.
-
May 14th, 2016, 01:27 PM
#6
Thread Starter
Lively Member
Re: Cant Debug.... Accidentally clicked on something? (Debugging issue)
[QUOTE=Vexslasher;5046433]I tested it seems to be working but I set the cordDiamIN and coreDiamIN both to doubles it's possible yours might be set as something else that might be the issue not sure though. If those are currently strings or something else then you can convert them to doubles using a code like this.
Thanks the the response Vex. I found out what it was. Stepped into code and found cordDiamIN was = 0 so I put the While loop nested in an If statement so once the numbers got their proper values it triggered properly.
Thanks for all the responses. LOL, i had originally thought i clicked on something...
Last edited by CHEEZEnCRACKERS; May 14th, 2016 at 02:05 PM.
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
|