.ini reading error
.ini reading error
.ini reading error
.ini reading error
.ini reading error
.ini reading error .ini reading error .ini reading error .ini reading error .ini reading error .ini reading error .ini reading error .ini reading error
.ini reading error .ini reading error
.ini reading error
Go Back  Xtreme Visual Basic Talk > > > .ini reading error


Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2004, 11:10 AM
Nivex's Avatar
Nivex Nivex is offline
Banned
 
Join Date: Oct 2003
Posts: 169
Default .ini reading error


Code:
  Private Sub FrmServerSetup_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Len(ConfigFile) = 0 Then
            MsgBox("LoginServer.ini does not exist.", , "error")
        Else

            FrmMain.ServerName = ReadINI("settings", "ServerName", ConfigFile)
            FrmMain.SelChrAddr = ReadINI("settings", "SelChrAddr", ConfigFile)
            FrmMain.SelChrPort = ReadINI("settings", "SelChrPort", ConfigFile)
            FrmMain.LoginSrvPort = ReadINI("settings", "LoginSrvPort", ConfigFile)
            If FrmMain.ServerName = "" Or FrmMain.SelChrAddr = "" Or FrmMain.SelChrPort = "" Or FrmMain.LoginSrvPort = "" Then
                MsgBox("Not all of the config settings(LoginServer.ini) are correct please review them.", , "Error")
            End If
        End If

        'Let's put all the config data into the boxes so people don't worry.
        FrmMain.SelChrAddr = TextBox1.Text
        FrmMain.ServerName = TextBox2.Text
        FrmMain.SelChrPort = NumericUpDown1.Value
        FrmMain.LoginSrvPort = TextBox3.Text

    End Sub
It gives me object is not object set or something like that errror.. any ideas?
Reply With Quote
  #2  
Old 03-17-2004, 11:37 PM
DirectAllX's Avatar
DirectAllX DirectAllX is offline
Centurion
 
Join Date: Aug 2003
Location: Lima, Peru
Posts: 101
Default

NullReference??? which object does it indicate??
__________________
If something goes wrong then, YOU'RE WRONG!! the computer IS NEVER WRONG!!!
Reply With Quote
  #3  
Old 03-18-2004, 01:38 PM
Nivex's Avatar
Nivex Nivex is offline
Banned
 
Join Date: Oct 2003
Posts: 169
Default

An unhandled exception of type 'System.NullReferenceException' occurred in LoginServer.exe

Additional information: Object reference not set to an instance of an object.



on this line of code

Code:
     FrmMain.SelChrAddr = ReadINI("settings", "SelChrAddr", ConfigFile)
Reply With Quote
  #4  
Old 03-18-2004, 08:58 PM
DirectAllX's Avatar
DirectAllX DirectAllX is offline
Centurion
 
Join Date: Aug 2003
Location: Lima, Peru
Posts: 101
Default

what type is "ConfigFile"???

maybe it doesn't exists...

is it System.IO.FileStream???
__________________
If something goes wrong then, YOU'RE WRONG!! the computer IS NEVER WRONG!!!
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MSComm error 8020(Error reading comm device) duhu2000 Communications 1 08-23-2004 07:04 PM
error reading file line by line vs1784 File I/O and Registry 8 02-05-2004 01:51 PM
Runtime error 6: overflow gtzpower General 19 06-25-2003 10:16 PM
Error Handling observation leytonhouse General 3 04-28-2002 02:56 AM
Error reading file VBNeed General 1 01-14-2002 06:07 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.ini reading error
.ini reading error
.ini reading error .ini reading error
.ini reading error
.ini reading error
.ini reading error .ini reading error .ini reading error .ini reading error .ini reading error .ini reading error .ini reading error
.ini reading error
.ini reading error
 
.ini reading error
.ini reading error
 
-->