<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exception: OnPaint() Any thoughts? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601520#M95118</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;That exception is very general. FlexSim runs certain code whenever it paints the 3D view. Somewhere in all that logic something has gone wrong.&lt;/P&gt;&lt;P&gt;One common cause is that the tree is messed up, so that as your draw code is drawing objects that are linked to other objects, those links are broken. This happens frequently in process flow (which gives an OnDraw exception) when activity connections are messed up. The draw pass is trying to follow a connection and is assuming that the connection is valid, but an exception occurs instead.&lt;/P&gt;&lt;P&gt;So I'd say put some _ASSERT() statements in your code to check assumptions, especially if you are dereferencing pointers or casting pointers to other types.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 13:57:43 GMT</pubDate>
    <dc:creator>JordanLJohnson</dc:creator>
    <dc:date>2023-08-03T13:57:43Z</dc:date>
    <item>
      <title>Exception: OnPaint() Any thoughts?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601517#M95115</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, have you guys ever encontered an OnPaint exception, when dealing with MeshAPI for example? I'm not sure it's directly related to Mesh but I the object that usually sends these exception was designed with Mesh. If you have any idea of what might be happening it would help me a lot, I've never seen this before.&lt;span class="lia-inline-image-display-wrapper" image-alt="1690849320142.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518733i0559AFB494BB8F75/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690849320142.png" alt="1690849320142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 00:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601517#M95115</guid>
      <dc:creator>patricia_brenny_r</dc:creator>
      <dc:date>2023-08-01T00:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: OnPaint() Any thoughts?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601518#M95116</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/38529/patricia-brennyr.html" nodeid="38529"&gt;@Patricia_brenny R&lt;/A&gt;, is there a specific object that you get this error with? Or maybe some steps I could take to replicate the error you're getting? Thanks!&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:00:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601518#M95116</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-08-01T15:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: OnPaint() Any thoughts?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601519#M95117</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;We are updating some of the Rail code from the Railworks library, and this seems to be related to it.&lt;/P&gt;
 &lt;P&gt;The steps is the complicated part, we just open the model and move around a bit or reset it and that happens when there are rails in the model, seems to me to be something about onDraw, but not sure. it happens once also, then stops for a while.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 21:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601519#M95117</guid>
      <dc:creator>patricia_brenny_r</dc:creator>
      <dc:date>2023-08-02T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: OnPaint() Any thoughts?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601520#M95118</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;That exception is very general. FlexSim runs certain code whenever it paints the 3D view. Somewhere in all that logic something has gone wrong.&lt;/P&gt;&lt;P&gt;One common cause is that the tree is messed up, so that as your draw code is drawing objects that are linked to other objects, those links are broken. This happens frequently in process flow (which gives an OnDraw exception) when activity connections are messed up. The draw pass is trying to follow a connection and is assuming that the connection is valid, but an exception occurs instead.&lt;/P&gt;&lt;P&gt;So I'd say put some _ASSERT() statements in your code to check assumptions, especially if you are dereferencing pointers or casting pointers to other types.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:57:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601520#M95118</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2023-08-03T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: OnPaint() Any thoughts?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601521#M95119</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you!
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exception-onpaint-any-thoughts/m-p/13601521#M95119</guid>
      <dc:creator>patricia_brenny_r</dc:creator>
      <dc:date>2023-08-03T14:07:53Z</dc:date>
    </item>
  </channel>
</rss>

