Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Object variable or With block variable not set error

jynxyjynxy Member Posts: 1
Hi,
Been getting this error with my program. Using framework 2.0.

[code]System.NullReferenceException: Object variable or With block variable
not
set.
at
Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object
Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean
RValueBase, CallType CallType)
at


Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSetComplex(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean
RValueBase)
at gmailworker.Form1.Button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at
System.Windows.Forms.Control.PreProcessControlMessageInternal(Control
target, Message& msg)
at
System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG&
msg)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
CodeBase:

----------------------------------------
AxInterop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:

----------------------------------------
Interop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase:[/code]


Also, getting this one:

[code]Message: Thread was being aborted.
Stack Trace: at
System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd,
Int32 msg, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32
wparam, Int32 lparam)
at System.Windows.Forms.ComboBox.get_SelectedIndex()
at System.Windows.Forms.ComboBox.get_Text()
at GmailAccountCreator.Form1.threadtask()[/code]

Thanks in advance!

Comments

  • seancampbellseancampbell Pennsylvania, USAMember Posts: 684 ✭✭✭
    I'd love to help you, but all I know this far is that your having errors. Looks like a nullreference error (common mistake is forgetting to initialize a class object after declaring it). And a threading error, but that error message is not really detailed.

    Can you post the code that is crashing? That will probably help.
Sign In or Register to comment.