Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 11th, 2005, 4:35 PM   #1
Illuminati
Newbie
 
Join Date: Apr 2005
Posts: 12
Rep Power: 0 Illuminati is on a distinguished road
Problem, any help please.

OK i finished off writing a program, went to run it and got a stackoverflow, ok so that can be sorted, time to debug.

Well, i set debug at the windows generated code here:
[PHP]
Public Class FormMain
Inherits System.Windows.Forms.Form
'Dim data As New data
#Region " Windows Form Designer generated code "

Public Sub New() '- BREAKPOINT HERE
MyBase.New()

'This call is required by the Windows Form Designer.

[/PHP]

Ran the program, stepped through and it read the code from the line " 'Dim data As New data " and executed it.. which then created a new instance of the data class. Notice how this line had been commented.

Well i thought maybe its just VB being stupid, so i removed the line completely. Same thing happened.

VB .NET appears to be still executing this "invisible code", is there any plausable reason for this?! the code doesnt exist but its still managing to execute it.

Thanks.
Illuminati is offline   Reply With Quote
Old May 11th, 2005, 5:14 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
I've had some wierd issues with the compiler before. I would add a debug line, and it wouldn't print. Try closing and re-opening Visual Basic. If that doesn't work, delete the .exe and .pdb from your Project's bin folder and perhaps from obj/Debug.
Dameon is offline   Reply With Quote
Old May 11th, 2005, 5:44 PM   #3
Illuminati
Newbie
 
Join Date: Apr 2005
Posts: 12
Rep Power: 0 Illuminati is on a distinguished road
good idea on the deleting the exe's

although it didnt work, lol. installed a few updates .net 1.1 etc and now it doesnt even hit any code, just gives an infinite recursion detected error (which is what it does when it hits the "invisible" code) but it doesnt even get to my code now.

this is beginnin to annoy me
Illuminati is offline   Reply With Quote
Old May 11th, 2005, 5:47 PM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Copy the code into a completely new project, compile, and see what happens.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 11th, 2005, 9:24 PM   #5
Illuminati
Newbie
 
Join Date: Apr 2005
Posts: 12
Rep Power: 0 Illuminati is on a distinguished road
copied, pasted, etc many times, didnt work.

i eventually sorted it out, not entirely sure how, but i sorted it anyway lol.

thanks for the help.
Illuminati is offline   Reply With Quote
Old May 12th, 2005, 2:42 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Congrats.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC