Compilation problems
Author |
Message |
Ninja
|
Posted: Fri Nov 03, 2006 11:10 pm Post subject: Compilation problems |
|
|
Hey guys, i am starting out with VB.NET and i just created a "Hello world" application but when i compile and run it it gives me the following results on the result screen, but the program itself compiles and runs perfectly fine
ERROR:
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\{LS}Ninja{SC}\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', No symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', No symbols loaded.
The thread 0xb4c has exited with code 0 (0x0).
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\{LS}Ninja{SC}\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.exe', Symbols loaded.
'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Remoting\2.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll', No symbols loaded.
The thread 0xc08 has exited with code 0 (0x0).
The thread '<No Name>' (0x5a4) has exited with code 0 (0x0).
The program '[2620] WindowsApplication1.vshost.exe: Managed' has exited with code 0 (0x0).
Is this something serious? or should i not worry about it.Thanks |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Silent Avenger
|
Posted: Fri Nov 03, 2006 11:32 pm Post subject: (No subject) |
|
|
Well if your program runs fine and your computer seems to run fine then I don't think it's a serious problem. However, you may still want to contact tech support and see how you can prevent this. |
|
|
|
|
|
Ninja
|
Posted: Fri Nov 03, 2006 11:43 pm Post subject: (No subject) |
|
|
after looking around on google for a while i came up with some information, those arent error messages they are simply the debugger information saying "No symbols loaded" sort of like an informative thing, it can be disabled if you manually edit the Project-properties information under the debugger section in VS2005 |
|
|
|
|
|
wtd
|
Posted: Sat Nov 04, 2006 11:57 am Post subject: (No subject) |
|
|
May we see the offending source code? |
|
|
|
|
|
Ninja
|
Posted: Sat Nov 04, 2006 9:04 pm Post subject: (No subject) |
|
|
Here you go
code: |
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PictureBox1.Visible = False ' hide picture
Label1.Text = CStr(Int(Rnd() * 10)) ' pick numbers
Label2.Text = CStr(Int(Rnd() * 10))
Label3.Text = CStr(Int(Rnd() * 10))
' if any number is 7 display picture and beep
If (Label1.Text = "7") Or (Label2.Text = "7") _
Or (Label3.Text = "7") Then
PictureBox1.Visible = True
Beep()
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
End Class
| [/code] |
|
|
|
|
|
Ninja
|
Posted: Sat Nov 04, 2006 9:10 pm Post subject: (No subject) |
|
|
oh by the way, do you guys know of any resources where i can get VB.net command references from, like today i was wondering how to actually close the form i created when you click on the edit button, luckily a friend of mine knew what it was and i got around the problem but i was just wondering where to get a complete command reference from. |
|
|
|
|
|
wtd
|
Posted: Sun Nov 05, 2006 4:27 pm Post subject: (No subject) |
|
|
MSDN |
|
|
|
|
|
rdrake
|
Posted: Sun Nov 05, 2006 7:40 pm Post subject: (No subject) |
|
|
Ninja wrote: oh by the way, do you guys know of any resources where i can get VB.net command references from, like today i was wondering how to actually close the form i created when you click on the edit button, luckily a friend of mine knew what it was and i got around the problem but i was just wondering where to get a complete command reference from. As wtd said, MSDN is a good reference. As for forums, here has about 1.3 million posts and here has about 2.4 million posts. You're bound to find out info on problems you're having. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Sun Nov 05, 2006 8:07 pm Post subject: (No subject) |
|
|
Also, if I may, unless you are constrained to using VB.NET by a class you're in, then I strongly suggest you use C#. It's the same library, but just so much nicer a language in which to use that library.
Oh, and try naming your variables meaningfully. "Label1" is a really bad name for a variable. What does it label?
For instance, let's say it labels an input field where a name is input.
code: | nameInputFieldLabel |
|
|
|
|
|
|
rdrake
|
Posted: Sun Nov 05, 2006 8:27 pm Post subject: (No subject) |
|
|
As I recall, VB follows a system like so: code: | txtName - Textbox
lblName - Label
frmName - Form
modName - Module | Well, you get the point. Now if you'll excuse me, I'm going to go try to forget all of this VB stuff before I go insane. |
|
|
|
|
|
Ninja
|
Posted: Sun Nov 05, 2006 11:17 pm Post subject: (No subject) |
|
|
wtd wrote: Also, if I may, unless you are constrained to using VB.NET by a class you're in, then I strongly suggest you use C#. It's the same library, but just so much nicer a language in which to use that library.
Oh, and try naming your variables meaningfully. "Label1" is a really bad name for a variable. What does it label?
For instance, let's say it labels an input field where a name is input.
code: | nameInputFieldLabel |
ya bro, actually ive been looking over c# and a friend of mine gave me all his notes, assignments and everything from his first,second term learning C#, so i got all my resources, i wanted to learn VB because my teacher is going to be teaching it soon and the idea of programming a language with primary GUI based stuff sounds cool, i have never done C# though, when i was in india our computer teacher used to do random things, C++ one day VB the other so i have some memories on VB, like i sad earlier, i want to learn as much as i can when it comes to programming music and martial arts, but as of this moment, programming is my main priority, im doing good on the guitar and bass and i have my 7'th year black belt in kung fu and ninjutsu so thats going cool too lol..thanks for the advice bro, appretitates as always |
|
|
|
|
|
wtd
|
Posted: Sun Nov 05, 2006 11:57 pm Post subject: (No subject) |
|
|
Ninja wrote: i wanted to learn VB because my teacher is going to be teaching it soon and the idea of programming a language with primary GUI based stuff sounds cool
There is nothing about VB.NET that makes it better for GUIs than C#. As mentioned earlier, they are both using the exact same libraries. It's primarily the language then that is different, and of the two, C# is the better.
If your teacher is going to be using the .Net version of VB, then learning the .Net frameworks via C# will help you tremendously. If he or she is going to be using VB6, then you should know that VB6 and VB.NET are two entirely different languages, with only some superficial similarities. |
|
|
|
|
|
Ninja
|
Posted: Mon Nov 06, 2006 12:17 am Post subject: (No subject) |
|
|
wtd wrote: Ninja wrote: i wanted to learn VB because my teacher is going to be teaching it soon and the idea of programming a language with primary GUI based stuff sounds cool
There is nothing about VB.NET that makes it better for GUIs than C#. As mentioned earlier, they are both using the exact same libraries. It's primarily the language then that is different, and of the two, C# is the better.
If your teacher is going to be using the .Net version of VB, then learning the .Net frameworks via C# will help you tremendously. If he or she is going to be using VB6, then you should know that VB6 and VB.NET are two entirely different languages, with only some superficial similarities.
i agree with you on that one, my friend is doing his MCSD in c# and he also told me that its much more powerfull then VB.Also, i think my teacher at school is teaching VB.NET but he wont be getting into it much, he will just teach basic forms and stuff and then we are on our own, just the same way it has been with java lol |
|
|
|
|
|
DKNiGHTX
|
Posted: Mon Nov 06, 2006 7:38 am Post subject: (No subject) |
|
|
Types
code: | Data Type Tag Data Type / Meaning Example
a Used to prefix other data type tags to indicate an array. asNames()
b Boolean bFinished
byt Byte bytChar
col Collection colAddressLines
ctl Control ctlElement
cur Currency curAmount
d Double dInvoiceTotal
dt Date dtInvoiceDate
e Used for instances of enumerations. eDayOfWeek
err Error errInfo
evt Used for WithEvents variable declarations. evtToolbar
h Handle (Long) to a Windows object. hWnd
i Integer iCount
l Long lSize
obj Object (also used for instances of named classes) objCustomer
s String sCustomerName
f Single fWidth
udt User-defined type udtEmployeeRecord
vnt Variant vntArgumentList |
Controls
code: | Control Tag Control Class
ani MSComCtl2.Animation
cbo VB.ComboBox
chk VB.CheckBox
cht MSChart20Lib.MSChart
cmd VB.CommandButton
ctl (Unknown class ProgID)
data VB.Data
dir VB.DirListBox
dlg MSComDlg.CommonDialog
drv VB.DriveListBox
dtp MSComCtl2.DTPicker
file VB.FileListBox
fra VB.Frame
frm VB.Form
hsb VB.HScrollBar
img VB.Image
imgcbo MSComctlLib.ImageCombo
ils MSComctlLib.ImageList
lbl VB.Label
lin VB.Line
lst VB.ListBox
lvw MSComctlLib.ListView
medt MSMask.MaskEdBox
mnu VB.Menu
mvw MSComCtl2.MonthView
ole VB.OLE
opt VB.OptionButton
pb MSComctlLib.ProgressBar
pic VB.PictureBox
rtxt RichTextLib.RichTextBox
shape VB.Shape
tab TabDlg.SSTab
tbs MSComctlLib.TabStrip
tmr VB.Timer
txt VB.TextBox
sb ComctlLib.StatusBar
slide ComctlLib.Slider
stb MSComctlLib.StatusBar
tb ComctlLib.Toolbar
tlb MSComctlLib.Toolbar
tvw MSComctlLib.TreeView
upd MSComCtl2.UpDown
vsb VB.VScrollBar
wbr SHDocVwCtl.WebBrowser |
User Controls
code: | File Type Tags Type / Meaning
frm Form module (.frm).
mod Code module (.bas).
cls Private class module (.cls).
<none> Public class module (.cls).
I Public class module (.cls) used to define an interface only.
dsr Designer module (.dsr).
uctl User control module (.ctl).
udoc User document module (.dob). |
|
|
|
|
|
|
wtd
|
Posted: Mon Nov 06, 2006 8:31 am Post subject: (No subject) |
|
|
Those may have been suggested with VB6. They are very much discouraged by Microsoft with VB.NET and C#. |
|
|
|
|
|
|
|