Philippe Renaud
asked on
Executable Error
Hello, im re-writing a question because I went in wrong zone. Im started it as new here:
I did an application VB.NET with VS 2008. the app is running perfectly when I run my SQL and VS as administrator. Also, running perfeclty when I press the run button.
Now, when I try to execute via the EXE file inside the folder DEBUG, im having an error somewhere in the app that does not show up when I press the run button inside VS2008...
Also that EXE i did run as Administrator so I dont understand, whats the damn difference??
My Error is (see in code snippet)
and line 13 is :
If getPanel("panelInner0").Ve rticalScro ll.Visible = True Then
by the way, i tried to put in comment that IF and i had no more error.
but i still dont understand why the EXE dont like that if and inside VS2008 its fine... ?!?!
I did an application VB.NET with VS 2008. the app is running perfectly when I run my SQL and VS as administrator. Also, running perfeclty when I press the run button.
Now, when I try to execute via the EXE file inside the folder DEBUG, im having an error somewhere in the app that does not show up when I press the run button inside VS2008...
Also that EXE i did run as Administrator so I dont understand, whats the damn difference??
My Error is (see in code snippet)
and line 13 is :
If getPanel("panelInner0").Ve
by the way, i tried to put in comment that IF and i had no more error.
but i still dont understand why the EXE dont like that if and inside VS2008 its fine... ?!?!
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at xx.frmCart.frmCart_Load(Object sender, EventArgs e) in C:\Users\Admin\Documents\Visual Studio 2008\Projects\xx\xx\frmCart.vb:line 13
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
maybe it is just a timing problem. have you tried to move that code into the Activate event when you are sure that the controls are fully loaded?
and again, Are you trying to run your application on the same or from another one? If it is another one, you are probably missing a component. If you are running from the same PC, an object was not set. Can you tell which object it is?
and again, Are you trying to run your application on the same or from another one? If it is another one, you are probably missing a component. If you are running from the same PC, an object was not set. Can you tell which object it is?
ASKER
>> have you tried to move that code into the Activate event when you are sure that the controls are fully loaded?
what do you mean Activate Event .. ?
Yes its on the SAME PC.
I cant tell which object...
what do you mean Activate Event .. ?
Yes its on the SAME PC.
I cant tell which object...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh ok Yes I will try that
ASKER
Thanks
If careful examination of the code does not reveal where that might be, you will have to resort to writing a log file to trace the program flow.