<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>NModel Work Item Rss Feed</title><link>http://www.codeplex.com/NModel/WorkItem/List.aspx</link><description>NModel Work Item Rss Description</description><item><title>Closed Issue: An action term created in the stepper reaches the model with modified arguments [3662]</title><link>http://nmodel.codeplex.com/workitem/3662</link><description>An action term created in the stepper and passed to the model from a class implementing the IStepper interface sometimes reaches the model with modified values. The action sometimes gets replaced in the WeakCache with an earlier instantiation of arguments. The error sometimes occurs on .Net but did not occur with the same code on Mono.&lt;br /&gt;</description><author>jpe</author><pubDate>Thu, 16 May 2013 08:33:25 GMT</pubDate><guid isPermaLink="false">Closed Issue: An action term created in the stepper reaches the model with modified arguments [3662] 20130516083325A</guid></item><item><title>Created Issue: Null 'namespace' bug [9955]</title><link>http://nmodel.codeplex.com/workitem/9955</link><description>Compiler may generate class &amp;#39;__StaticArrayInitTypeSize&amp;#61;&amp;#37;d&amp;#39; with null namespace but ReflectionHelper.IsCompilerGenerated returns &amp;#39;false&amp;#39;.&lt;br /&gt;ReflectionHelper.IsInModel method fails on this class.&lt;br /&gt;</description><author>victorsamun</author><pubDate>Thu, 23 Feb 2012 08:39:45 GMT</pubDate><guid isPermaLink="false">Created Issue: Null 'namespace' bug [9955] 20120223083945A</guid></item><item><title>Created Issue: Mpv.exe crashes in Windows 7 x64 due to GLEE [7024]</title><link>http://nmodel.codeplex.com/workitem/7024</link><description>This issue was discovered by minhquang104 in thread  &amp;#91;discussion&amp;#58;224398&amp;#93;.&lt;br /&gt; &lt;br /&gt;Mpv.exe crashes in Windows 7 x64 with the following error message. The MPV window remains blank with a red cross on it.&lt;br /&gt;&lt;br /&gt;The problem does not occur in fresh installation of Windows 7 x64, but is introduced by recent Windows updates.&lt;br /&gt;&lt;br /&gt;The problem is related to how the GLEE library uses Windows native GDI API.&lt;br /&gt;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42; Exception Text &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;System.ArgumentException&amp;#58; Parameter is not valid.&lt;br /&gt;   at System.Drawing.Graphics.set_Transform&amp;#40;Matrix value&amp;#41;&lt;br /&gt;   at Microsoft.Glee.GraphViewerGdi.GViewer.DotOnPaint&amp;#40;Graphics g, Boolean forPrinting&amp;#41;&lt;br /&gt;   at System.Windows.Forms.Control.PaintWithErrorHandling&amp;#40;PaintEventArgs e, Int16 layer, Boolean disposeEventArgs&amp;#41;&lt;br /&gt;   at System.Windows.Forms.Control.WmPaint&amp;#40;Message&amp;#38; m&amp;#41;&lt;br /&gt;   at System.Windows.Forms.Control.WndProc&amp;#40;Message&amp;#38; m&amp;#41;&lt;br /&gt;   at System.Windows.Forms.Control.ControlNativeWindow.WndProc&amp;#40;Message&amp;#38; m&amp;#41;&lt;br /&gt;   at System.Windows.Forms.NativeWindow.Callback&amp;#40;IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42; Loaded Assemblies &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;mscorlib&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4952 &amp;#40;win7RTMGDR.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;Microsoft.NET&amp;#47;Framework64&amp;#47;v2.0.50727&amp;#47;mscorlib.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;mpv&lt;br /&gt;    Assembly Version&amp;#58; 1.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.0.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;mpv.exe&lt;br /&gt;----------------------------------------&lt;br /&gt;NModel&lt;br /&gt;    Assembly Version&amp;#58; 1.0.21029.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.21029.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;NModel.DLL&lt;br /&gt;----------------------------------------&lt;br /&gt;NModel.Visualization&lt;br /&gt;    Assembly Version&amp;#58; 1.0.21029.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.21029.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;NModel.Visualization.DLL&lt;br /&gt;----------------------------------------&lt;br /&gt;System.Windows.Forms&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System.Windows.Forms&amp;#47;2.0.0.0__b77a5c561934e089&amp;#47;System.Windows.Forms.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;System&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System&amp;#47;2.0.0.0__b77a5c561934e089&amp;#47;System.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;System.Drawing&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System.Drawing&amp;#47;2.0.0.0__b03f5f7f11d50a3a&amp;#47;System.Drawing.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;Microsoft.GLEE.Drawing&lt;br /&gt;    Assembly Version&amp;#58; 1.2.0.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.0.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;Microsoft.GLEE.Drawing.DLL&lt;br /&gt;----------------------------------------&lt;br /&gt;NewsReaderModel&lt;br /&gt;    Assembly Version&amp;#58; 0.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 0.0.0.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Users&amp;#47;minhquang104&amp;#47;Desktop&amp;#47;Quang&amp;#47;NModel&amp;#47;Samples&amp;#47;NewsReader&amp;#47;bin&amp;#47;NewsReaderModel.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;System.Configuration&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System.Configuration&amp;#47;2.0.0.0__b03f5f7f11d50a3a&amp;#47;System.Configuration.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;System.Xml&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System.Xml&amp;#47;2.0.0.0__b77a5c561934e089&amp;#47;System.Xml.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;Accessibility&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;Accessibility&amp;#47;2.0.0.0__b03f5f7f11d50a3a&amp;#47;Accessibility.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;Microsoft.Glee.GraphViewerGDI&lt;br /&gt;    Assembly Version&amp;#58; 1.2.0.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.0.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;Microsoft.Glee.GraphViewerGDI.DLL&lt;br /&gt;----------------------------------------&lt;br /&gt;Microsoft.GLEE&lt;br /&gt;    Assembly Version&amp;#58; 1.2.0.0&lt;br /&gt;    Win32 Version&amp;#58; 1.0.0.0&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Program&amp;#37;20Files&amp;#37;20&amp;#40;x86&amp;#41;&amp;#47;NModel&amp;#47;bin&amp;#47;Microsoft.GLEE.DLL&lt;br /&gt;----------------------------------------&lt;br /&gt;System.Design&lt;br /&gt;    Assembly Version&amp;#58; 2.0.0.0&lt;br /&gt;    Win32 Version&amp;#58; 2.0.50727.4927 &amp;#40;NetFXspW7.050727-4900&amp;#41;&lt;br /&gt;    CodeBase&amp;#58; file&amp;#58;&amp;#47;&amp;#47;&amp;#47;C&amp;#58;&amp;#47;Windows&amp;#47;assembly&amp;#47;GAC_MSIL&amp;#47;System.Design&amp;#47;2.0.0.0__b03f5f7f11d50a3a&amp;#47;System.Design.dll&lt;br /&gt;----------------------------------------&lt;br /&gt;</description><author>jpe</author><pubDate>Tue, 24 Aug 2010 12:57:00 GMT</pubDate><guid isPermaLink="false">Created Issue: Mpv.exe crashes in Windows 7 x64 due to GLEE [7024] 20100824125700P</guid></item><item><title>Created Issue: ct without logfile crashes at end [5158]</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=5158</link><description>Run failed. Object reference not set to an instance of an object.&lt;br /&gt;   at NModel.Conformance.ConformanceTester.AddMetricsToEndOfLog&amp;#40;&amp;#41; in c&amp;#58;&amp;#92;programs&lt;br /&gt;&amp;#92;NModel&amp;#92;src&amp;#92;NModel&amp;#92;Conformance&amp;#92;ConformanceTesterMetrics.cs&amp;#58;line 70&lt;br /&gt;&lt;br /&gt;AddMetricsToEndOfLog calls sw.WriteLine&amp;#40;&amp;#34;&amp;#41;&amp;#34;&amp;#41; but should use WriteLine&amp;#40;sw,&amp;#34;&amp;#41;&amp;#34;&amp;#41;&lt;br /&gt;</description><author>jgoertz</author><pubDate>Wed, 06 Jan 2010 07:32:26 GMT</pubDate><guid isPermaLink="false">Created Issue: ct without logfile crashes at end [5158] 20100106073226A</guid></item><item><title>Created Issue: mp2dot adds line break - bug? [5152]</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=5152</link><description>I&amp;#39;m using mp2dot which was compiled by gmcs - Mono C&amp;#35; compiler version 2.4.2.3 on a Ubuntu Karmic Koala installation - Linux kernel 2.6.31.16&amp;#58; mp2dot &amp;#47;dot&amp;#58;editor.dot &amp;#47;r&amp;#58;Test.dll Editor.Factory.Create, where Test.dll was compiled by the same gmcs.&lt;br /&gt;&lt;br /&gt;The output file editor.dot then contains a line break which throws an error in  in the graphviz dot-tools dot, neato and also in xdot.&lt;br /&gt;&lt;br /&gt;Might be minor but it seems to me to be a bug.&lt;br /&gt;</description><author>mathume</author><pubDate>Tue, 05 Jan 2010 17:01:29 GMT</pubDate><guid isPermaLink="false">Created Issue: mp2dot adds line break - bug? [5152] 20100105050129P</guid></item><item><title>Commented Feature: State variables using mp2dot? [3242]</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3242</link><description>I&amp;#39;ve discussed this with the other developers and for now we will handle it like this&amp;#58;  you can submit the file&amp;#40;s&amp;#41; you added or changed and we will evaluate them, test them, and &amp;#40;if all is well&amp;#41; merge them into the source code repository.  &lt;br /&gt;&lt;br /&gt;I will create a Work Item in the Issue Tracker for this.    Then &amp;#40;I think&amp;#41; you can attach your files to that work item.&lt;br /&gt;&lt;br /&gt;Jon&lt;br /&gt;Comments: ** Comment from web user: mathume ** &lt;p&gt;Hello there&amp;#33; Thanks for your great work. Are there any advances on this item and how can I use the functionality with mp2dot&amp;#63;&lt;/p&gt;</description><author>mathume</author><pubDate>Mon, 21 Dec 2009 20:15:58 GMT</pubDate><guid isPermaLink="false">Commented Feature: State variables using mp2dot? [3242] 20091221081558P</guid></item><item><title>Closed Issue: Isomorphism checking does not support composition</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=2939</link><description>Isomorphism checking code in NModel release 1.0.21029.0 does not support model composition. Symptoms are errors like described in http&amp;#58;&amp;#47;&amp;#47;www.codeplex.com&amp;#47;NModel&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;42719&lt;br /&gt;Comments: Fixed in change set 23295.</description><author>jpe</author><pubDate>Sun, 17 May 2009 20:00:58 GMT</pubDate><guid isPermaLink="false">Closed Issue: Isomorphism checking does not support composition 20090517080058P</guid></item><item><title>Commented Issue: An action term created in the stepper reaches the model with modified arguments</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3662</link><description>An action term created in the stepper and passed to the model from a class implementing the IStepper interface sometimes reaches the model with modified values. The action sometimes gets replaced in the WeakCache with an earlier instantiation of arguments. The error sometimes occurs on .Net but did not occur with the same code on Mono.&lt;br /&gt;Comments: ** Comment from web user: jpe ** &lt;p&gt;A fix is uploaded in change set 23445.&lt;/p&gt;</description><author>jpe</author><pubDate>Sun, 17 May 2009 19:58:52 GMT</pubDate><guid isPermaLink="false">Commented Issue: An action term created in the stepper reaches the model with modified arguments 20090517075852P</guid></item><item><title>Created Issue: An action term created in the stepper reaches the model with modified arguments</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3662</link><description>An action term created in the stepper and passed to the model from a class implementing the IStepper interface sometimes reaches the model with modified values. The action sometimes gets replaced in the WeakCache with an earlier instantiation of arguments. The error sometimes occurs on .Net but did not occur with the same code on Mono.&lt;br /&gt;</description><author>jpe</author><pubDate>Sun, 17 May 2009 19:56:25 GMT</pubDate><guid isPermaLink="false">Created Issue: An action term created in the stepper reaches the model with modified arguments 20090517075625P</guid></item><item><title>Commented Issue: Finding Type of sort in a models' composition</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3255</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I was trying to create a product out of two models that reside in two different assemblies. &lt;br /&gt;When executing the mpv utility I have got the &amp;#8220;No default type for sort ...&amp;#8221; exception.&lt;br /&gt;&lt;br /&gt;I looked at the source code and I think that I have found the cause of the problem. &lt;br /&gt;I have implemented a few changes in the source code of NModel which solved my issue.&lt;br /&gt;It seems now that the composition of these two different assemblies works. &lt;br /&gt;I compared it with a composition of the same two models but with an implemented architecture of a model and a feature &amp;#40;which works without any issues with the original NModel source&amp;#41; and it looks that I get the same results.&lt;br /&gt;&lt;br /&gt;I am attaching the code changes I did.&lt;br /&gt;Since these code-changes touch the NModel internals, I would appreciate it if you could check it and make sure that it doesn&amp;#39;t hurt the NModel intended design or functionality.&lt;br /&gt;&lt;br /&gt;Obviously, if you find these changes beneficial, please feel free to use and implement them in Nmodel.&lt;br /&gt;&lt;br /&gt;The package includes the summary of the code-changes &amp;#40;Ofer_sortType_codeChanges.cs.txt file&amp;#41; and the updated file itself &amp;#40;InterpretationContext.cs under the NModel directory&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;Comments: ** Comment from web user: jpe ** &lt;p&gt;Hi&amp;#33;&lt;/p&gt;&lt;p&gt;&amp;#62; I think that the WebApplication continued to work before the code I added because it happens only in few&lt;br /&gt;&amp;#62; occasions that &amp;#39;User&amp;#39; and &amp;#39;Password&amp;#39; are not found.&lt;/p&gt;&lt;p&gt;The sample worked fine before the patch and the User and Password enums were successfully cast to the CompoundTerm type.&lt;/p&gt;&lt;p&gt;The sample stops working because the patch finds the WebModel.User enum type but the library fails to later use that information to convert value of type WebModel.User into a CompoundTerm. The issue lies in that value types and objects are treated slightly differently.&lt;/p&gt;&lt;p&gt;Please note that the error produced is&lt;/p&gt;&lt;p&gt;     Unable to cast object of type &amp;#39;WebModel.User&amp;#39; to type &amp;#39;NModel.Terms.CompoundTerm&amp;#39;.&lt;/p&gt;&lt;p&gt;and it has nothing to do with String.&lt;br /&gt;I agree that it is more appropriate to use .ToString&amp;#40;&amp;#41; instead of &amp;#40;string&amp;#41; cast to return a string value of a compound term argument but it is _not_ the cause of the error in this case. The error occurs when an attempt is made in the harness namespace to cast  the first action argument to an enumeration defined in the model namespace. Just to illustrate, the action is&lt;/p&gt;&lt;p&gt;        Login_Start&amp;#40;User&amp;#40;&amp;#34;VinniPuhh&amp;#34;&amp;#41;, Password&amp;#40;&amp;#34;Correct&amp;#34;&amp;#41;&amp;#41;&lt;/p&gt;&lt;p&gt;And the piece of code &lt;/p&gt;&lt;p&gt;      &amp;#40;&amp;#40;CompoundTerm&amp;#41;action&amp;#91;0&amp;#93;&amp;#41;&amp;#91;0&amp;#93;.ToString&amp;#40;&amp;#41;&lt;/p&gt;&lt;p&gt;should result in a string containing &amp;#34;VinniPuhh&amp;#34;.  Your suggested Stepper.cs fix will return &amp;#39;User&amp;#40;&amp;#34;VinniPuhh&amp;#34;&amp;#41;&amp;#39; and will break the code.&lt;/p&gt;&lt;p&gt;One possible fix is to exclude value types from the sort types for now by adding the following lines in front of the return statement in the getSortTypeFromAppDomainAssemblies&amp;#40;&amp;#41; function&amp;#58;&lt;/p&gt;&lt;p&gt; &amp;#43;           &amp;#47;&amp;#47; Value types need different handling &lt;br /&gt; &amp;#43;           if &amp;#40;thisSortType &amp;#33;&amp;#61; null &amp;#38;&amp;#38; thisSortType.IsValueType&amp;#41;&lt;br /&gt; &amp;#43;               thisSortType &amp;#61; null&amp;#59;&lt;br /&gt;                &lt;br /&gt;            return thisSortType&amp;#59;&lt;br /&gt; &lt;br /&gt; This fix will keep the multiple dll-s support that is required for the example provided in the thread.&lt;br /&gt;   I have not touched the InterpretationContext part of the code before therefore it is coming along slowly. Let&amp;#39;s add and keep as much functionality as possible without breaking any old one unless it can be shown that the old functionality was broken. Currently the treating of enums needs some further work in the context of multiple dlls. &lt;br /&gt;   The fix suggested here was tested with the WebApplication example and it works as it used to with it.&lt;/p&gt;</description><author>jpe</author><pubDate>Sun, 17 May 2009 15:48:18 GMT</pubDate><guid isPermaLink="false">Commented Issue: Finding Type of sort in a models' composition 20090517034818P</guid></item><item><title>Commented Issue: Finding Type of sort in a models' composition</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3255</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I was trying to create a product out of two models that reside in two different assemblies. &lt;br /&gt;When executing the mpv utility I have got the &amp;#8220;No default type for sort ...&amp;#8221; exception.&lt;br /&gt;&lt;br /&gt;I looked at the source code and I think that I have found the cause of the problem. &lt;br /&gt;I have implemented a few changes in the source code of NModel which solved my issue.&lt;br /&gt;It seems now that the composition of these two different assemblies works. &lt;br /&gt;I compared it with a composition of the same two models but with an implemented architecture of a model and a feature &amp;#40;which works without any issues with the original NModel source&amp;#41; and it looks that I get the same results.&lt;br /&gt;&lt;br /&gt;I am attaching the code changes I did.&lt;br /&gt;Since these code-changes touch the NModel internals, I would appreciate it if you could check it and make sure that it doesn&amp;#39;t hurt the NModel intended design or functionality.&lt;br /&gt;&lt;br /&gt;Obviously, if you find these changes beneficial, please feel free to use and implement them in Nmodel.&lt;br /&gt;&lt;br /&gt;The package includes the summary of the code-changes &amp;#40;Ofer_sortType_codeChanges.cs.txt file&amp;#41; and the updated file itself &amp;#40;InterpretationContext.cs under the NModel directory&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;Comments: ** Comment from web user: oriver ** &lt;p&gt;The added code &amp;#40;search for a type in other assemblies&amp;#41; to the Type NModel.Internals.InterpretationContext. DefaultSortType&amp;#40;Symbol sort&amp;#41; is being executed only if this type is not found by all the previous search tries. This means that without this added code, if the execution reached that point, the method would throw an exception. &lt;br /&gt;I did see that there are few times that the types &amp;#39;User&amp;#39; and &amp;#39;Password&amp;#39; are not found and that is why it reaches the search I added, which finds them. &lt;br /&gt;I think that the WebApplication continued to work before the code I added because it happens only in few occasions that &amp;#39;User&amp;#39; and &amp;#39;Password&amp;#39; are not found. &lt;br /&gt;I didn&amp;#39;t go to deep into that, to understand what are the occasions  that these types are not found in the first place and why now that they are found the behavior is changed, but I think that I solved this issue&amp;#58;  &lt;/p&gt;&lt;p&gt;It seems to me that the casting from eNum the way it is done in the Stepper of the WebApplication is wrong.&lt;/p&gt;&lt;p&gt;The original casting in the stepper is&amp;#58; &lt;br /&gt;&amp;#40;string&amp;#41;&amp;#40;&amp;#40;CompoundTerm&amp;#41;action&amp;#91;0&amp;#93;&amp;#41;&amp;#91;0&amp;#93;&lt;/p&gt;&lt;p&gt;If you change all the places that have this kind of casting to&amp;#58;&lt;br /&gt;action&amp;#91;0&amp;#93;.ToString&amp;#40;&amp;#41;&lt;/p&gt;&lt;p&gt;Everything works again.&lt;/p&gt;&lt;p&gt;So, for instance, the line&amp;#58;&lt;br /&gt;modelUserToRealUser.TryGetValue&amp;#40;&amp;#40;string&amp;#41;&amp;#40;&amp;#40;CompoundTerm&amp;#41;action&amp;#91;0&amp;#93;&amp;#41;&amp;#91;0&amp;#93;,out userName&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;Should be&amp;#58;&lt;br /&gt;modelUserToRealUser.TryGetValue&amp;#40;action&amp;#91;0&amp;#93;.ToString&amp;#40;&amp;#41;,out userName&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;And also the switch line&amp;#58;&lt;br /&gt;switch &amp;#40;&amp;#40;string&amp;#41;&amp;#40;&amp;#40;CompoundTerm&amp;#41;action&amp;#91;1&amp;#93;&amp;#41;&amp;#91;0&amp;#93;&amp;#41;&lt;/p&gt;&lt;p&gt;Should be&amp;#58;&lt;br /&gt;switch &amp;#40;action&amp;#91;1&amp;#93;.ToString&amp;#40;&amp;#41;&amp;#41;&lt;/p&gt;&lt;p&gt;I am attaching the updated file so you can review it.&lt;br /&gt;&lt;/p&gt;</description><author>oriver</author><pubDate>Sun, 17 May 2009 07:46:13 GMT</pubDate><guid isPermaLink="false">Commented Issue: Finding Type of sort in a models' composition 20090517074613A</guid></item><item><title>Commented Issue: Finding Type of sort in a models' composition</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3255</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I was trying to create a product out of two models that reside in two different assemblies. &lt;br /&gt;When executing the mpv utility I have got the &amp;#8220;No default type for sort ...&amp;#8221; exception.&lt;br /&gt;&lt;br /&gt;I looked at the source code and I think that I have found the cause of the problem. &lt;br /&gt;I have implemented a few changes in the source code of NModel which solved my issue.&lt;br /&gt;It seems now that the composition of these two different assemblies works. &lt;br /&gt;I compared it with a composition of the same two models but with an implemented architecture of a model and a feature &amp;#40;which works without any issues with the original NModel source&amp;#41; and it looks that I get the same results.&lt;br /&gt;&lt;br /&gt;I am attaching the code changes I did.&lt;br /&gt;Since these code-changes touch the NModel internals, I would appreciate it if you could check it and make sure that it doesn&amp;#39;t hurt the NModel intended design or functionality.&lt;br /&gt;&lt;br /&gt;Obviously, if you find these changes beneficial, please feel free to use and implement them in Nmodel.&lt;br /&gt;&lt;br /&gt;The package includes the summary of the code-changes &amp;#40;Ofer_sortType_codeChanges.cs.txt file&amp;#41; and the updated file itself &amp;#40;InterpretationContext.cs under the NModel directory&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;Comments: ** Comment from web user: jpe ** &lt;p&gt;Apparently this patch has a side effect to the ConformanceTester functionality.&lt;/p&gt;&lt;p&gt;When this patch is applied ConformanceTester stops working in some cases. For example the WebApplication sample. Without this patch it works fine with the current revision 23333, but with it it produces the following error&amp;#58;&lt;/p&gt;&lt;p&gt;Initialize&lt;br /&gt;Login_Start&lt;br /&gt;TestResult&amp;#40;239, Verdict&amp;#40;&amp;#34;Failure&amp;#34;&amp;#41;, &amp;#34;Unable to cast object of type &amp;#39;WebModel.User&amp;#39; to type &amp;#39;NModel.Terms.CompoundTerm&amp;#39;.&amp;#34;,&lt;br /&gt;    Trace&amp;#40;&lt;br /&gt;        Initialize&amp;#40;&amp;#41;,&lt;br /&gt;        Login_Start&amp;#40;User&amp;#40;&amp;#34;OleBrumm&amp;#34;&amp;#41;, Password&amp;#40;&amp;#34;Incorrect&amp;#34;&amp;#41;&amp;#41;&lt;br /&gt;    &amp;#41;&lt;/p&gt;&lt;p&gt;The generation of this error can be traced down to the following function and line in ConformanceTester&amp;#58;&lt;/p&gt;&lt;p&gt;        static void CallTheImplementation&amp;#40;object implAndActionAndRes&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            object&amp;#91;&amp;#93; args &amp;#61; &amp;#40;object&amp;#91;&amp;#93;&amp;#41;implAndActionAndRes&amp;#59;&lt;br /&gt;            try&lt;br /&gt;            &amp;#123;&lt;br /&gt; --&amp;#62;&amp;#62;         Action implAction &amp;#61; &amp;#40;&amp;#40;IStepper&amp;#41;args&amp;#91;0&amp;#93;&amp;#41;.DoAction&amp;#40;&amp;#40;Action&amp;#41;args&amp;#91;1&amp;#93;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#40;&amp;#40;ImplementationResultWrapper&amp;#41;args&amp;#91;2&amp;#93;&amp;#41;.implAction &amp;#61; implAction&amp;#59;&lt;br /&gt;            &amp;#125;&lt;/p&gt;&lt;p&gt;            catch &amp;#40;Exception e&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#40;&amp;#40;ImplementationResultWrapper&amp;#41;args&amp;#91;2&amp;#93;&amp;#41;.exception &amp;#61; e&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;This corresponds to invoking the DoAction of the IStepper interface. The concrete adapter has a &lt;/p&gt;&lt;p&gt;using WebModel&amp;#59;&lt;/p&gt;&lt;p&gt;line to access the enumerations defined in the model. But the exception is thrown when calling the following line in the WebApplication&amp;#47;Adapter&amp;#47;Stepper.cs file&amp;#58;&lt;/p&gt;&lt;p&gt;                    modelUserToRealUser.TryGetValue&amp;#40;&amp;#40;string&amp;#41;&amp;#40;&amp;#40;CompoundTerm&amp;#41;action&amp;#91;0&amp;#93;&amp;#41;&amp;#91;0&amp;#93;,out userName&amp;#41;&amp;#59; &amp;#47;&amp;#47;&amp;#34;Vinnipuhh&amp;#34; -&amp;#62; &amp;#34;user1&amp;#34;&lt;/p&gt;&lt;p&gt;It needs to be investigated further how to solve the issue.&lt;/p&gt;</description><author>jpe</author><pubDate>Mon, 11 May 2009 23:59:33 GMT</pubDate><guid isPermaLink="false">Commented Issue: Finding Type of sort in a models' composition 20090511115933P</guid></item><item><title>Closed Issue: Prevent action labels from obscure one another in dot and svg files</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3264</link><description>Adding spaces at the beginning and ending of action labels to prevent labels from obscure one another in dot and svg files.&lt;br /&gt;The changed NModel file is under the NModel directory.&lt;br /&gt;&lt;br /&gt;Attaching the model of the RPS game &amp;#40;the one with deadlocks in the design&amp;#41;&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;Comments: Ofer's changes are included in source code change set 22530, committed Mar 17, 2009</description><author>jon</author><pubDate>Thu, 26 Mar 2009 21:24:24 GMT</pubDate><guid isPermaLink="false">Closed Issue: Prevent action labels from obscure one another in dot and svg files 20090326092424P</guid></item><item><title>Closed Feature: State variables using mp2dot?</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3242</link><description>I&amp;#39;ve discussed this with the other developers and for now we will handle it like this&amp;#58;  you can submit the file&amp;#40;s&amp;#41; you added or changed and we will evaluate them, test them, and &amp;#40;if all is well&amp;#41; merge them into the source code repository.  &lt;br /&gt;&lt;br /&gt;I will create a Work Item in the Issue Tracker for this.    Then &amp;#40;I think&amp;#41; you can attach your files to that work item.&lt;br /&gt;&lt;br /&gt;Jon&lt;br /&gt;Comments: The requested functionality is provided in source code change set 22530, committed on Mar 17 2009</description><author>jon</author><pubDate>Thu, 26 Mar 2009 21:21:10 GMT</pubDate><guid isPermaLink="false">Closed Feature: State variables using mp2dot? 20090326092110P</guid></item><item><title>Created Issue: State variables don't get updated when an object is deleted</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3301</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I have noticed that state variables don&amp;#39;t get updated when an object is deleted. &lt;br /&gt;In the attached sample please check a state that comes after a removal of an Employee object, for instance node &amp;#35;66 &amp;#40;around the middle of the fsm&amp;#41;. You can see that &amp;#39;AllEmployees&amp;#39; only contains Employee&amp;#40;2&amp;#41; but &amp;#39;myCompany&amp;#39; contains also Employee&amp;#40;1&amp;#41; and Employee&amp;#40;3&amp;#41;.&lt;br /&gt;&lt;br /&gt;Please let me know whether I am doing something wrong here, or if you need more info.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;</description><author>oriver</author><pubDate>Tue, 03 Mar 2009 14:11:48 GMT</pubDate><guid isPermaLink="false">Created Issue: State variables don't get updated when an object is deleted 20090303021148P</guid></item><item><title>Commented Issue: Finding Type of sort in a models' composition</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3255</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I was trying to create a product out of two models that reside in two different assemblies. &lt;br /&gt;When executing the mpv utility I have got the &amp;#8220;No default type for sort ...&amp;#8221; exception.&lt;br /&gt;&lt;br /&gt;I looked at the source code and I think that I have found the cause of the problem. &lt;br /&gt;I have implemented a few changes in the source code of NModel which solved my issue.&lt;br /&gt;It seems now that the composition of these two different assemblies works. &lt;br /&gt;I compared it with a composition of the same two models but with an implemented architecture of a model and a feature &amp;#40;which works without any issues with the original NModel source&amp;#41; and it looks that I get the same results.&lt;br /&gt;&lt;br /&gt;I am attaching the code changes I did.&lt;br /&gt;Since these code-changes touch the NModel internals, I would appreciate it if you could check it and make sure that it doesn&amp;#39;t hurt the NModel intended design or functionality.&lt;br /&gt;&lt;br /&gt;Obviously, if you find these changes beneficial, please feel free to use and implement them in Nmodel.&lt;br /&gt;&lt;br /&gt;The package includes the summary of the code-changes &amp;#40;Ofer_sortType_codeChanges.cs.txt file&amp;#41; and the updated file itself &amp;#40;InterpretationContext.cs under the NModel directory&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;Comments: ** Comment from web user: oriver ** &lt;p&gt;Attaching a sample&amp;#58; TwoModelsComposition.zip&lt;/p&gt;</description><author>oriver</author><pubDate>Sun, 01 Mar 2009 16:01:42 GMT</pubDate><guid isPermaLink="false">Commented Issue: Finding Type of sort in a models' composition 20090301040142P</guid></item><item><title>Commented Feature: State variables using mp2dot?</title><link>http://nmodel.codeplex.com/WorkItem/View.aspx?WorkItemId=3242</link><description>I&amp;#39;ve discussed this with the other developers and for now we will handle it like this&amp;#58;  you can submit the file&amp;#40;s&amp;#41; you added or changed and we will evaluate them, test them, and &amp;#40;if all is well&amp;#41; merge them into the source code repository.  &lt;br /&gt;&lt;br /&gt;I will create a Work Item in the Issue Tracker for this.    Then &amp;#40;I think&amp;#41; you can attach your files to that work item.&lt;br /&gt;&lt;br /&gt;Jon&lt;br /&gt;Comments: ** Comment from web user: oriver ** &lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have found out the place in the code where you create the tooltips for mpv &amp;#58;&lt;br /&gt;method&amp;#58;&lt;br /&gt;private string DefaultNodeTooltip&amp;#40;IState iState&amp;#41;&lt;br /&gt;in&amp;#58;&lt;br /&gt;NModel.Visualization.GraphView&lt;/p&gt;&lt;p&gt;And I saw that there is a condition which the code that I first attached don&amp;#39;t handle&amp;#58; pairState &amp;#40;when having a product of 2 models&amp;#41;.&lt;/p&gt;&lt;p&gt;Therefore I copied the mpv code to&amp;#58;&lt;br /&gt;method&amp;#58;&lt;br /&gt;private string DefaultNodeTooltip&amp;#40;IState iState&amp;#41;&lt;br /&gt;in&amp;#58;&lt;br /&gt;NModel.Utilities.Graph.GraphView&lt;/p&gt;&lt;p&gt;And added some small adaptations and the filtering abilities &amp;#40;&amp;#91;HideFromViewer&amp;#93; attribute and StateTooltipVars&amp;#41;. The way I added them, these filters exist only in mp2dot.&lt;/p&gt;&lt;p&gt;It would be better of course to just use the above method but I can&amp;#39;t since it is private, so I copied it.&lt;/p&gt;&lt;p&gt;So please look at this new code that I am submitting &amp;#40;Ofer_USE_THIS_CODE.zip&amp;#41; instead of the previous one. &lt;br /&gt;Sorry for this confusion, I probably should have looked for this piece of code earlier.&lt;/p&gt;&lt;p&gt;I am attaching one more sample that creates a product model out of 2 models. To have this sample work you also have to implement my code suggestion for  work-item &amp;#35;3255&amp;#58; &amp;#34;Finding Type of sort in a models&amp;#39; composition&amp;#34; which handles an exception when crating a model product using a composition of 2 models.&lt;/p&gt;&lt;p&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;&lt;/p&gt;</description><author>oriver</author><pubDate>Sun, 01 Mar 2009 15:44:42 GMT</pubDate><guid isPermaLink="false">Commented Feature: State variables using mp2dot? 20090301034442P</guid></item><item><title>Created Issue: Prevent action labels from obscure one another in dot and svg files</title><link>http://www.codeplex.com/NModel/WorkItem/View.aspx?WorkItemId=3264</link><description>Adding spaces at the beginning and ending of action labels to prevent labels from obscure one another in dot and svg files.&lt;br /&gt;The changed NModel file is under the NModel directory.&lt;br /&gt;&lt;br /&gt;Attaching the model of the RPS game &amp;#40;the one with deadlocks in the design&amp;#41;&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;</description><author>oriver</author><pubDate>Thu, 26 Feb 2009 21:28:33 GMT</pubDate><guid isPermaLink="false">Created Issue: Prevent action labels from obscure one another in dot and svg files 20090226092833P</guid></item><item><title>Commented Feature: State variables using mp2dot?</title><link>http://www.codeplex.com/NModel/WorkItem/View.aspx?WorkItemId=3242</link><description>I&amp;#39;ve discussed this with the other developers and for now we will handle it like this&amp;#58;  you can submit the file&amp;#40;s&amp;#41; you added or changed and we will evaluate them, test them, and &amp;#40;if all is well&amp;#41; merge them into the source code repository.  &lt;br /&gt;&lt;br /&gt;I will create a Work Item in the Issue Tracker for this.    Then &amp;#40;I think&amp;#41; you can attach your files to that work item.&lt;br /&gt;&lt;br /&gt;Jon&lt;br /&gt;Comments: ** Comment from web user: oriver ** &lt;p&gt;Attaching a code sample with an RPS model &amp;#40;with a good design&amp;#41;. &lt;br /&gt;I am going to attach the one with the wrong design &amp;#40;with the deadlocks which I have loaded its svg file above&amp;#41; to a next work item which I am going to open now &amp;#40;adding spaces to actions texts&amp;#41;.&lt;/p&gt;</description><author>oriver</author><pubDate>Thu, 26 Feb 2009 21:16:03 GMT</pubDate><guid isPermaLink="false">Commented Feature: State variables using mp2dot? 20090226091603P</guid></item><item><title>Created Issue: Finding Type of sort in a models' composition</title><link>http://www.codeplex.com/NModel/WorkItem/View.aspx?WorkItemId=3255</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I was trying to create a product out of two models that reside in two different assemblies. &lt;br /&gt;When executing the mpv utility I have got the &amp;#8220;No default type for sort ...&amp;#8221; exception.&lt;br /&gt;&lt;br /&gt;I looked at the source code and I think that I have found the cause of the problem. &lt;br /&gt;I have implemented a few changes in the source code of NModel which solved my issue.&lt;br /&gt;It seems now that the composition of these two different assemblies works. &lt;br /&gt;I compared it with a composition of the same two models but with an implemented architecture of a model and a feature &amp;#40;which works without any issues with the original NModel source&amp;#41; and it looks that I get the same results.&lt;br /&gt;&lt;br /&gt;I am attaching the code changes I did.&lt;br /&gt;Since these code-changes touch the NModel internals, I would appreciate it if you could check it and make sure that it doesn&amp;#39;t hurt the NModel intended design or functionality.&lt;br /&gt;&lt;br /&gt;Obviously, if you find these changes beneficial, please feel free to use and implement them in Nmodel.&lt;br /&gt;&lt;br /&gt;The package includes the summary of the code-changes &amp;#40;Ofer_sortType_codeChanges.cs.txt file&amp;#41; and the updated file itself &amp;#40;InterpretationContext.cs under the NModel directory&amp;#41;.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ofer&lt;br /&gt;</description><author>oriver</author><pubDate>Wed, 25 Feb 2009 11:13:53 GMT</pubDate><guid isPermaLink="false">Created Issue: Finding Type of sort in a models' composition 20090225111353A</guid></item></channel></rss>