<?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 max2027 crashes when using maxscript to display a WPF window in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086771#M29350</link>
    <description>&lt;P&gt;In 3dsmax 2027, any WPF window created with maxscript will crash when show it, for example:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(dotnetObject "System.Windows.Window").Show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2026 21:59:50 GMT</pubDate>
    <dc:creator>lgedZV4XV</dc:creator>
    <dc:date>2026-04-11T21:59:50Z</dc:date>
    <item>
      <title>max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086771#M29350</link>
      <description>&lt;P&gt;In 3dsmax 2027, any WPF window created with maxscript will crash when show it, for example:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(dotnetObject "System.Windows.Window").Show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2026 21:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086771#M29350</guid>
      <dc:creator>lgedZV4XV</dc:creator>
      <dc:date>2026-04-11T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086912#M29351</link>
      <description>&lt;P&gt;Can confirm the crash (&amp;nbsp;Works in 2026 )&lt;/P&gt;
&lt;P&gt;just for completeness, also happens if you do something like&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;w= dotnetObject "System.Windows.Window"
w.Show()&lt;/LI-CODE&gt;
&lt;P&gt;w is a valid window object and&amp;nbsp; one can set properties etc ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 04:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086912#M29351</guid>
      <dc:creator>spacefrog_</dc:creator>
      <dc:date>2026-04-12T04:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086983#M29352</link>
      <description>&lt;P&gt;It works fine in max2010-2026, only crashs in max2027..&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 07:12:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14086983#M29352</guid>
      <dc:creator>lgedZV4XV</dc:creator>
      <dc:date>2026-04-12T07:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14087181#M29353</link>
      <description>&lt;P&gt;only&amp;nbsp;&lt;SPAN&gt;dynamical&amp;nbsp;wpf&amp;nbsp;window&amp;nbsp;throw&amp;nbsp;error , when write as xaml in a dll , run&amp;nbsp;normal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 13:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14087181#M29353</guid>
      <dc:creator>A娘</dc:creator>
      <dc:date>2026-04-12T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14088015#M29354</link>
      <description>&lt;P&gt;If you show the window in maxscript, the wpf window written in the dll will also crash.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;w = dotnetObject "YourDll.YourWindow"
w.Show() --Crash!

w = (dotnetClass "YourDll.YourWindow").GetWindow()
w.Show() --Crash!&lt;/LI-CODE&gt;&lt;P&gt;Only WPF dlls written in pure c# that don't interact with maxscript don't crash, but there is a lot of interaction in many projects. is Autodesk aware of this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 09:31:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14088015#M29354</guid>
      <dc:creator>lgedZV4XV</dc:creator>
      <dc:date>2026-04-13T09:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14092038#M29359</link>
      <description>&lt;P&gt;FYI, the bug has been reported to the team.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 17:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14092038#M29359</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2026-04-15T17:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14095143#M29360</link>
      <description>&lt;P&gt;Thanks again for that &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/369352"&gt;@MartinBeh&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 15:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14095143#M29360</guid>
      <dc:creator>ads_decatae</dc:creator>
      <dc:date>2026-04-17T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14119740#M29387</link>
      <description>&lt;P&gt;Is there any way to fix this bug?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 01:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14119740#M29387</guid>
      <dc:creator>lgedZV4XV</dc:creator>
      <dc:date>2026-05-07T01:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14128680#M29406</link>
      <description>&lt;P&gt;I've been following this issue closely, refreshing the page almost daily for new replies, hoping to find out when it will be fixed or if there are any temporary solutions.&amp;nbsp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/369352"&gt;@MartinBeh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 03:39:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14128680#M29406</guid>
      <dc:creator>maxencoding</dc:creator>
      <dc:date>2026-05-14T03:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14130312#M29407</link>
      <description>&lt;P&gt;All I can say is that is has been logged into the official bug report database - not idea when/how/for which version of 3ds Max this will be fixed, sorry.&lt;/P&gt;
&lt;P&gt;Maybe one of the more dotNet savvy folks around here knows a workaround until there is an update that fixes this for good?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 08:11:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14130312#M29407</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2026-05-15T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14131876#M29408</link>
      <description>&lt;P&gt;Thanks all the same!&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2026 22:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14131876#M29408</guid>
      <dc:creator>lgedZV4XV</dc:creator>
      <dc:date>2026-05-16T22:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133319#M29409</link>
      <description>&lt;P&gt;If you are reporting a crash, please provide a bit more detail about how it happens.&lt;/P&gt;&lt;P&gt;Does it crash immediately on Show(), after the window appears, or when the window is closed?&lt;/P&gt;&lt;P&gt;Also, are there any error messages or outputs shown anywhere:&lt;BR /&gt;- MAXScript Listener&lt;BR /&gt;- Autodesk crash dialog (CER)&lt;BR /&gt;- any other console or log output&lt;/P&gt;&lt;P&gt;Right now most reports only say “it crashes”, but without the actual error output it is difficult to understand whether this is a WPF issue, a .NET hosting issue, or something else.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 16:45:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133319#M29409</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-05-18T16:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133764#M29410</link>
      <description>&lt;P&gt;As mentioned above, simply open 3ds Max 2027 and execute the code `(dotnetObject "System.Windows.Window").Show()` in the script editor. 3ds Max will freeze completely, with no response or output. This is the simplest method I can verify. In my personal WPF project, the UI displays correctly if only `show` is called, but if `set` or `get` is used to interact with the UI, the same problem occurs: 3ds Max freezes and displays no output.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 01:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133764#M29410</guid>
      <dc:creator>maxencoding</dc:creator>
      <dc:date>2026-05-19T01:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133855#M29411</link>
      <description>&lt;P&gt;This is what i get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spacefrog__0-1779162941065.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1640397i52CFFCE7DB4ACA14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spacefrog__0-1779162941065.png" alt="spacefrog__0-1779162941065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 03:55:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133855#M29411</guid>
      <dc:creator>spacefrog_</dc:creator>
      <dc:date>2026-05-19T03:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133879#M29412</link>
      <description>&lt;P&gt;This error message is much better than nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 04:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14133879#M29412</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-05-19T04:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134722#M29413</link>
      <description>&lt;P&gt;I don't have version 2027, and I don't need to install it yet...&lt;/P&gt;&lt;P&gt;So I recommend trying something like this first:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;w = dotnetObject "System.Windows.Window"
w.Title = "WPF Test"
w.Width = 300
w.Height = 200

hlp = dotnetObject "System.Windows.Interop.WindowInteropHelper" w
hlp.Owner = windows.getMAXHWND()

w.Show()&lt;/LI-CODE&gt;&lt;P&gt;We need to figure out where the problem is.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 16:03:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134722#M29413</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-05-19T16:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134729#M29414</link>
      <description>&lt;P&gt;This causes 3ds Max to freeze up for 20 seconds and then fast-exit to desktop, no error message.&lt;/P&gt;
&lt;P&gt;This is what the Listener shows while doing so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinBeh_0-1779206853051.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1640554iA58B9E89ED37CAAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartinBeh_0-1779206853051.png" alt="MartinBeh_0-1779206853051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 16:07:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134729#M29414</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2026-05-19T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134749#M29415</link>
      <description>&lt;P&gt;how is about ShowDialog() instead?&lt;BR /&gt;&lt;BR /&gt;there is another way to try:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;w = dotnetObject "System.Windows.Window"
w.Title = "WPF Test"
w.Width = 300
w.Height = 200


m = (w.GetType()).GetMethod "Show"
m.Invoke w #()&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;In theory, all should work the same... but it's definitely a MAX's bug, and there might stay some ways that aren't broken.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 16:16:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134749#M29415</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-05-19T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134799#M29416</link>
      <description>&lt;P&gt;Again, the UI freezes up, fast-exit to desktop.&lt;/P&gt;
&lt;P&gt;Here is the Listener output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinBeh_0-1779209810508.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1640573i229E6B8C843B5300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartinBeh_0-1779209810508.png" alt="MartinBeh_0-1779209810508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 16:56:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134799#M29416</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2026-05-19T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: max2027 crashes when using maxscript to display a WPF window</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134802#M29417</link>
      <description>&lt;P&gt;What would I recommend if I urgently needed this in Max 2027 and couldn’t wait for Autodesk to fix the bug?&lt;/P&gt;&lt;P&gt;I would do the following: first, check whether Windows Forms still work. If they do, then I would wrap the WPF window inside a Windows Forms window and launch it through the Form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 16:59:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/max2027-crashes-when-using-maxscript-to-display-a-wpf-window/m-p/14134802#M29417</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-05-19T16:59:30Z</dc:date>
    </item>
  </channel>
</rss>

