Unhandled exception opening project

8 views
Skip to first unread message

gch...@gmail.com

unread,
Jan 7, 2015, 8:06:13 AM1/7/15
to yws...@googlegroups.com
Hi,

I tried to open a ywriter project in ywSynch and got an unhandled exception: object reference not set to an instance of an object.

Can anyone help?

Details:


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 ywsynch.YwChapter..ctor(XElement chapter, YwProject file)
   at ywsynch.YwProject.<.ctor>b__1(XElement c)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at ywsynch.YwProject..ctor(String filename)
   at ywsynch.FormMain.openProject(String filename)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
ywSynch
    Assembly Version: 1.10.0.0
    Win32 Version: 1.10.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Babbacombe%20Computers%20Ltd/ywSynch/ywSynch.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8008 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.7903 built by: Win9Rel
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.7903 built by: Win9Rel
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.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.


Trevor Prinn

unread,
Jan 7, 2015, 8:23:03 AM1/7/15
to yws...@googlegroups.com
I'll try and have a look at it later. I've been caught out a couple of times when Simon seems to have made items in the xml of the project file optional that used to always be there, so it might be something like that.

Could you send me a copy (to yws...@babbacom.com) of the .yw5 file that you are trying to open? It would make it a lot easier to track down the problem.
Trevor Prinn
ywSynch Author
--
You received this message because you are subscribed to the Google Groups "ywSynch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ywsynch+u...@googlegroups.com.
To post to this group, send email to yws...@googlegroups.com.
Visit this group at http://groups.google.com/group/ywsynch.
For more options, visit https://groups.google.com/d/optout.

Trevor Prinn

unread,
Jan 7, 2015, 8:35:34 AM1/7/15
to yws...@googlegroups.com
Actually, I think I have found the problem already. I think you have a chapter without any scenes in it. ywsynch isn't able to cope with that at the moment. I'll put in a fix for it, but for now (assuming that's what it is) just make sure that every chapter has at least one scene in it (an empty scene, even one marked unused, is fine).

Trevor Prinn
ywSynch Author
On 07/01/2015 13:06, gch...@gmail.com wrote:
Message has been deleted

gch...@gmail.com

unread,
Jan 7, 2015, 5:02:14 PM1/7/15
to yws...@googlegroups.com
Thanks for the quick response. I do have chapters without scenes. I'll try your suggestion and let you know if there are any problems.

Gary
Reply all
Reply to author
Forward
0 new messages