I've been trying to test edits to my Birth AutoTexts, and I was getting an Unhandled Exception Error in AS
After trying various different templates, I backed up AS Options, copied my Settings etc, then re-installed 7.04 from a clean download, restored Options and settings, but I was still seeing problems.
A bit more testing seemed to show that re-setting the Sample Project seemed to remove the crash, but I could force the issue to re-appear.
I had been testing a Birth Auto-Text where I wanted to check the operation with no named father. To do this, I had created a new (Blank) partner for Charlotte Carrington, then added a child (I tested male and female and different DoB's and it seemed to make no difference). I then shut FH, opened AS via a shortcut, not the plug-in, opened AutoText Template Editor using the Menu, selected the Generic (Rich Text Version) and I could happily make edits. If I then Close the Auto Text Editor, select the new child to be the subject of an entry (using the list of names top right), enter no details (ie just hit Select), then immediately go to Tools AutoText Editor and open the same Template, I get an Unhandled Exception Error.
The sample database is set as default in both FH & AS. I have options set to use Rich Text by default, and not use Templated sources.
The error log reports
Code: Select all
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 AncestralSources.clsAutoText.ParseFunction(String CurrentEntryType, String s, strucAutoTextError& AutoTextError, String& ReturnFunction, Int32& Functionlength, Boolean example, Boolean RTF, Boolean SourceTemplateField)
at AncestralSources.clsAutoText.ParseExpression(String CurrentEntryType, String s, Char StopChar, strucAutoTextError& AutoTextError, String& ReturnExpression, Int32& Expressionlength, Boolean example, Int64 AssocIndID, Boolean RTF, Boolean SourceTemplateField)
at AncestralSources.clsAutoText.ParseTextString(String CurrentEntryType, String s, strucAutoTextError& AutoTextError, Boolean Example, Int64 AssocIndID, Boolean RTF, Boolean SourceTemplateField)
at AncestralSources.frmAutoTextTemplate.GeneratePreview()
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at System.Windows.Forms.Control.set_Text(String value)
at System.Windows.Forms.TextBoxBase.set_Text(String value)
at System.Windows.Forms.TextBox.set_Text(String value)
at AncestralSources.frmAutoTextTemplate.DisplayTemplate(Int32 Index, Boolean Duplicate)
at AncestralSources.frmAutoTextTemplate.ddlTemplates_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Ancestral Sources
Assembly Version: 7.2.4.0
Win32 Version: 7.2.4.0
CodeBase: file:///C:/Program%20Files/Ancestral%20Sources/Ancestral%20Sources.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.4084.0 built by: NET48REL1
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.8.4300.0 built by: NET48REL1LAST_C
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.8.4320.0 built by: NET48REL1LAST_C
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.8.4270.0 built by: NET48REL1LAST_C
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.8.4084.0 built by: NET48REL1
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.8.4190.0 built by: NET48REL1LAST_B
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.8.4084.0 built by: NET48REL1
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.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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.