S
Supra
at runtime i got error right away. so i am getting closer...just 1
errors in bolds. when i do step over i found same error in bold below
An unhandled exception of type 'System.NullReferenceException' occurred
in system.windows.forms.dll
Additional information: Object reference not set to an instance of an
object.
Public Class mainPirateChat
Inherits System.Windows.Forms.Form
' Private netBots As New PirateChat.ClientFactory
Private Netsock As New PirateChat.SockFactory
Private WithEvents netBots As New PirateChat.ClientFactory
' Private WithEvents Netsock As New PirateChat.SockFactory
Private clsReader As New PirateChat.clsReadWriteXML
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
netBots = Nothing
Netsock = Nothing
clsReader = Nothing
Dim frmPref As New PirateChat.frmPreferences
frmPref.MdiParent = Me
Dim szReConnect As Collection =
clsReader.GetConfigInfo("Misc", "ReConnect", " ", "PirateChat.xml")
Dim getReConnect As String
For Each getReConnect In szReConnect
bReconnect = CBool(getReConnect)
frmPref.chkReConn.Checked = bReconnect
Next
Dim szStartup As Collection =
clsReader.GetConfigInfo("Misc", "Startup", " ", "PirateChat.xml")
Dim getStartup As String
For Each getStartup In szStartup
bStartup = getStartup
frmPref.chkStartup.Checked = getStartup
Next
End Sub
regards,
happy new yrs every 1
from supra
errors in bolds. when i do step over i found same error in bold below
An unhandled exception of type 'System.NullReferenceException' occurred
in system.windows.forms.dll
Additional information: Object reference not set to an instance of an
object.
Public Class mainPirateChat
Inherits System.Windows.Forms.Form
' Private netBots As New PirateChat.ClientFactory
Private Netsock As New PirateChat.SockFactory
Private WithEvents netBots As New PirateChat.ClientFactory
' Private WithEvents Netsock As New PirateChat.SockFactory
Private clsReader As New PirateChat.clsReadWriteXML
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
netBots = Nothing
Netsock = Nothing
clsReader = Nothing
Dim frmPref As New PirateChat.frmPreferences
frmPref.MdiParent = Me
Dim szReConnect As Collection =
clsReader.GetConfigInfo("Misc", "ReConnect", " ", "PirateChat.xml")
Dim getReConnect As String
For Each getReConnect In szReConnect
bReconnect = CBool(getReConnect)
frmPref.chkReConn.Checked = bReconnect
Next
Dim szStartup As Collection =
clsReader.GetConfigInfo("Misc", "Startup", " ", "PirateChat.xml")
Dim getStartup As String
For Each getStartup In szStartup
bStartup = getStartup
frmPref.chkStartup.Checked = getStartup
Next
End Sub
regards,
happy new yrs every 1
from supra