<?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: Renderer plugin crashes Material Editor in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5787150#M15126</link>
    <description>&lt;P&gt;Hi Vlad!&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems your suggestion fixed the problem with Material Editor.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But "Pure virtual function call" on 3ds Max closing is still here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2015 17:04:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-25T17:04:33Z</dc:date>
    <item>
      <title>Renderer plugin crashes Material Editor</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5775546#M15124</link>
      <description>&lt;P&gt;Hi guys!&lt;BR /&gt;I'm trying to write renderer plugin but I stuck on some problems.&lt;BR /&gt;The renderer works fine but when I try to open Material Editor MAX crashes:&lt;BR /&gt;&lt;BR /&gt;An error has occured and the application will now close.&lt;BR /&gt;Do you want to attempt to save a copy of the current scene?&lt;BR /&gt;&lt;BR /&gt;Also when I close MAX I receive error message:&lt;BR /&gt;&lt;BR /&gt;"pure virtual function call"&lt;BR /&gt;&lt;BR /&gt;After couple of days of headache I finally commented out all of my code and leave the plugin empty as it was created by 3ds Max Plugin Wizard.&lt;BR /&gt;I have commented out ALL of my code. Not just executable but also field declarations, includes, definitions and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea was to get my code back part by part and identify buggy code.&lt;BR /&gt;But when I run 3ds Max with this empty plugin nothing has changed (except my renderer draws black images &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;BR /&gt;&lt;BR /&gt;Obviously I miss to implement some functionality.&lt;BR /&gt;&lt;BR /&gt;I have added in every method a code writing in windows log to find out which is the last called method before the crash. The method is CreateParamDialog.&lt;BR /&gt;&lt;BR /&gt;Maybe something is wrong with param dialog. It is emplty for now.&lt;BR /&gt;&lt;BR /&gt;My system is: Windows 8; 3ds Max 2016&lt;BR /&gt;&lt;BR /&gt;Attached is the source code.&lt;BR /&gt;&lt;BR /&gt;Hope someone to help.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 12:04:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5775546#M15124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-18T12:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Renderer plugin crashes Material Editor</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5786610#M15125</link>
      <description>&lt;P&gt;Why you do not initialize the pblock with NULL? You do not have any parameter block descriptors yet so MakeAutoParamBlocks(...) do pretty nothing for you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;MaxRendererPlugin::MaxRendererPlugin() 
{
	&lt;STRONG&gt;pblock = NULL;&lt;/STRONG&gt;
	GetMaxRendererPluginDesc()-&amp;gt;MakeAutoParamBlocks(this);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when 3ds Max exits it destroys your references and you'll get the crash.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 12:54:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5786610#M15125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-25T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Renderer plugin crashes Material Editor</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5787150#M15126</link>
      <description>&lt;P&gt;Hi Vlad!&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems your suggestion fixed the problem with Material Editor.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But "Pure virtual function call" on 3ds Max closing is still here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 17:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5787150#M15126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-25T17:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Renderer plugin crashes Material Editor</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5788198#M15127</link>
      <description>&lt;P&gt;Try to attach debugger and get stack trace.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/renderer-plugin-crashes-material-editor/m-p/5788198#M15127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-26T07:20:02Z</dc:date>
    </item>
  </channel>
</rss>

