ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Unhandled Exception Has Occured in Your Application

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Unhandled Exception Has Occured in Your Application

Postby Bad-People » Thu Apr 14, 2016 1:27 am

Very new to ADRIFT and encountering a problem. I'm trying to create a static container in the first room but if I on the object screen if I try to click "Apply" or "Ok" I get an error message that says "Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately."

"Value cannot be null.
Parameter name: key."

I have all the fields filled out including article, prefix, and name. I click continue and everything seems to be working so far but I'm worried it's causing me problems I don't see yet.
Bad-People
 
Posts: 14
Joined: Thu Apr 14, 2016 1:18 am

Re: Unhandled Exception Has Occured in Your Application

Postby Campbell » Thu Apr 14, 2016 8:00 am

Hi. Are you running 5.0.34.1, and do you have the standard library set in Settings > Libraries?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4618
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Unhandled Exception Has Occured in Your Application

Postby Bad-People » Thu Apr 14, 2016 11:22 am

It says 5.0.34 at the bottom and I do have standard library set. As it turns out I had a location window open but it was covered up by the main window so I didn't realize it. After I closed it the message stopped coming up.

However I have since encountered a similar problem. When I try to test the game I'll click "run adventure" and I get the same error message except the header is "Splash" and instead of saying "Value cannot be null/ Parameter name: key" it says "Object reference not set to an instance of an object". Then I play the game but everything seems to work okay.
Bad-People
 
Posts: 14
Joined: Thu Apr 14, 2016 1:18 am

Re: Unhandled Exception Has Occured in Your Application

Postby P/o Prune » Thu Apr 14, 2016 12:11 pm

I'm waiting for an answer to that one too :angel:
I deleted and reinstalled Adrift and the runner and ever since, I've got that message.
D-Day V.5 in progress 86Kb (On backburner)
Anno 1700 First beta test in progress.
User avatar
P/o Prune
Site Admin
 
Posts: 4146
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 23

Re: Unhandled Exception Has Occured in Your Application

Postby Campbell » Thu Apr 14, 2016 3:28 pm

Could one of you post the stack trace please?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4618
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Unhandled Exception Has Occured in Your Application

Postby P/o Prune » Thu Apr 14, 2016 3:56 pm

This is what I get....

System.NullReferenceException: Objektreferencen er ikke indstillet til en forekomst af et objekt.
ved ADRIFT.frmRunner.SaveDataInLayoutXML(Size RunnerWindowSize, FormWindowState RunnerWindowState, SizeModeEnum PictureSizeMode)
ved ADRIFT.frmRunner.frmRunner_Resize(Object sender, EventArgs e)
ved System.Windows.Forms.Control.OnResize(EventArgs e)
ved System.Windows.Forms.Form.OnResize(EventArgs e)
ved System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
ved System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
ved System.Windows.Forms.Control.UpdateBounds()
ved System.Windows.Forms.Control.WndProc(Message& m)
ved System.Windows.Forms.ScrollableControl.WndProc(Message& m)
ved System.Windows.Forms.ContainerControl.WndProc(Message& m)
ved System.Windows.Forms.Form.WndProc(Message& m)
ved ADRIFT.frmRunner.WndProc(Message& m)
ved System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
ved System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Indlæste assemblies **************
mscorlib
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
run500
Assemblyversion: 5.0.34.1
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
WindowsBase
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1073.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Core
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1075.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Xml
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1064.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Infragistics4.Shared.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.Misc.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.UltraWinDock.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.UltraWinEditors.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.UltraWinStatusBar.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.UltraWinTabControl.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.UltraWinToolbars.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
Infragistics4.Win.v13.2
Assemblyversion: 13.2.20132.2098
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
zlib.net
Assemblyversion: 1.0.5.0
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
run500
Assemblyversion: 5.0.34.1
Win32-version: 5.0.34.1
CodeBase: file:///C:/Program%20Files/ADRIFT/run500.exe
----------------------------------------
System.Drawing
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assemblyversion: 10.0.0.0
Win32-version: 14.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
UIAutomationProvider
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------
Accessibility
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xaml
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1073.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Windows.Forms.resources
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_da_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Deployment
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Deployment.resources
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment.resources/v4.0_4.0.0.0_da_b03f5f7f11d50a3a/System.Deployment.resources.dll
----------------------------------------
mscorlib.resources
Assemblyversion: 4.0.0.0
Win32-version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_da_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** JIT-fejlfinding **************
Hvis du vil aktivere JIT-fejlfinding, skal værdien jitDebugging indstilles
i afsnittet system.windows.forms i konfigurationsfilen
for programmet eller computeren.
Programmet skal desuden kompileres med fejlfinding
aktiveret.

Eksempel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
D-Day V.5 in progress 86Kb (On backburner)
Anno 1700 First beta test in progress.
User avatar
P/o Prune
Site Admin
 
Posts: 4146
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 23

Re: Unhandled Exception Has Occured in Your Application

Postby Campbell » Thu Apr 14, 2016 4:40 pm

Ah, that one is fixed already in the upcoming release.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4618
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 1 guest