Leudassdf Posted May 13, 2012 at 12:06 PM Report #454955 Posted May 13, 2012 at 12:06 PM Boas Pessoal! Neste momento tenho um form com 829,500. O que acontece e que ao maximizar o form aparece-me este erro extenço. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at WindowsApplication1.Form1.ChangeLocation() in H:\Draganddrop\Draganddrop\Draganddrop\Form1.vb:line 459 at WindowsApplication1.Form1.Form1_Resize(Object sender, EventArgs e) in H:\Draganddrop\Draganddrop\Draganddrop\Form1.vb:line 432 at System.Windows.Forms.Control.OnResize(EventArgs e) at System.Windows.Forms.Form.OnResize(EventArgs e) at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) at System.Windows.Forms.Control.UpdateBounds() at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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) ************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.269 (RTMGDR.030319-2600) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- Draganddrop Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///H:/Draganddrop/Draganddrop/Draganddrop/bin/Debug/Draganddrop.exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 built by: RTMRel CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.269 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.269 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.276 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll ---------------------------------------- Microsoft.VisualBasic.PowerPacks.Vs Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. Alguem tem ideia do que pode estar a causar o mesmo?
José Lopes Posted May 13, 2012 at 09:14 PM Report #455195 Posted May 13, 2012 at 09:14 PM O método do resize deve estar para aí a despoletar um evento que está a estourar..... Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!
Leudassdf Posted May 13, 2012 at 09:31 PM Author Report #455207 Posted May 13, 2012 at 09:31 PM O método do resize deve estar para aí a despoletar um evento que está a estourar..... Ja criei novo codigo sem a parte da form resize e acontece o mesmo. Deve ter algum problema ao criar as pic e as labels pelo codigo nao?
Tuntankamon Posted May 15, 2012 at 08:48 AM Report #455657 Posted May 15, 2012 at 08:48 AM O que tens nestas linhas, do form1? line 459 line 432
Leudassdf Posted May 15, 2012 at 07:45 PM Author Report #455859 Posted May 15, 2012 at 07:45 PM Gostaria so de saber como e que eu vejo o numero das linhas?
José Lopes Posted May 15, 2012 at 08:56 PM Report #455897 Posted May 15, 2012 at 08:56 PM Tens duas hipóteses... Ou vais contanto...... ou olhas para a barra de status do lado inferior direito.... Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!
Caça Posted May 15, 2012 at 10:50 PM Report #455940 Posted May 15, 2012 at 10:50 PM Ou vai as opções do editor que ele coloca-as do lado esquerdo. 1 Report Pedro Martins Não respondo a duvidas por PM
José Lopes Posted May 16, 2012 at 07:58 PM Report #456193 Posted May 16, 2012 at 07:58 PM Ou vai as opções do editor que ele coloca-as do lado esquerdo. Boa dica....desconhecia ;-) Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!
edmolko Posted May 17, 2012 at 11:38 AM Report #456364 Posted May 17, 2012 at 11:38 AM Se fizeres duplo-clique na barra de status do lado inferior direito em cima da label "Ln XXX", introduzes o nº da linha e o cursor vai para lá 😉
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now