Viewlets.Load causes Unhandled Exception


Running Viewlets.Load("test.xml") on line 91 of the Tutorial.vslab causes the following exception:
Closed Feb 13, 2011 at 3:20 PM by cisterni
Closed because of VS2010 new implementation


DannyAsher wrote Jul 1, 2008 at 11:10 AM

Unhandled Exception:
Unhandled Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List1.Enumerator.MoveNext()
at Microsoft.FSharp.Collections.IEnumerable.takeOuter@741@741[A,B](ConcatEnumerator
2 x@741)
at Microsoft.FSharp.Collections.IEnumerable.ConcatEnumerator2.System-Collections-IEnumerator-MoveNext()
at Microsoft.FSharp.Collections.IEnumerator.to_array[T,U](T e)
at Microsoft.FSharp.Core.Operators.using[T,U](T ie, FastFunc
2 f)
at VSLabFSICore.PopulateHiddenList@546.Invoke(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

Session termination detected. Press Enter to restart.

(sorry - no edit in Codeplex! and using Firefox so added comment)

this is caused when the Load function tries to recreate the 'first 3D function'.

Keep up the good work and let me know if I can help further!


cisterni wrote Jul 5, 2008 at 5:18 PM

Thanks Danny, we have to check race conditions on the Viewlets list which is a shared data structure. I already improved the situation but you have to wait to see the release since I'm implementing the Package notion.

wrote Feb 13, 2011 at 3:20 PM

wrote Feb 13, 2013 at 10:48 PM

wrote May 16, 2013 at 3:19 AM