<?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: Open the file more than one hundred times, resulting in a crash in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778068#M3003</link>
    <description>&lt;P&gt;did you try to load files in reverse order to ensure that it is indeed a script issue and not the corrupt scene file that leads to crash?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 06:55:51 GMT</pubDate>
    <dc:creator>Serejah</dc:creator>
    <dc:date>2023-02-24T06:55:51Z</dc:date>
    <item>
      <title>Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11761523#M2989</link>
      <description>&lt;P&gt;-------------------maxscript&amp;nbsp;-----------------------------&lt;/P&gt;&lt;P&gt;for i = 1 to 200 do(&lt;BR /&gt;loadmaxfile XXX Quiet:true&lt;BR /&gt;filein YYY&lt;BR /&gt;resetMaxFile #noprompt&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;------------------------------------------------&lt;/P&gt;&lt;P&gt;It will crash at the 100th time&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 07:18:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11761523#M2989</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-17T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11763102#M2990</link>
      <description>&lt;P&gt;I see only one reason - some memory issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add this code to check the memory information to see how things go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(
	r = sysinfo.getSystemMemoryInfo()
	
	for i = 2 to 7 do r[i] = (r[i] / 1024) / 1024.0 
	
	format "MEMORY IN USE\t (\%)\n"
	format "\t\tused:\t%\n" 		(int r[1])
	format "PHYSICAL MEMORY\t (MB)\n"
	format "\t\ttotal:\t%\n" 		r[2]
	format "\t\tfree:\t%\n" 		r[3]
	format "\t\tused:\t%\n" 		(r[2]-r[3])
	format "PAGING FILE SIZE (MB)\n"
	format "\t\ttotal:\t%\n"		r[4]
	format "\t\tfree:\t%\n" 		r[5]
	format "\t\tused:\t%\n" 		(r[4]-r[5])
	format "VIRTUAL MEMORY\t (MB)\n"
	format "\t\ttotal:\t%\n" 		r[6]
	format "\t\tfree:\t%\n" 		r[7]
	format "\t\tused:\t%\n" 		(r[6]-r[7])
	
	ok
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there is a memory leak, it is in "&lt;STRONG&gt;filein&lt;/STRONG&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11763102#M2990</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-17T19:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11771044#M2991</link>
      <description>&lt;P&gt;you could also try a gc() in the loop - sometimes it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 20:19:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11771044#M2991</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2023-02-21T20:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11771052#M2992</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/203084"&gt;@istan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;you could also try a gc() in the loop - sometimes it helps.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;it makes a RESET max file according to the sample code above ... which is automatic garbage collection.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 20:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11771052#M2992</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-21T20:22:27Z</dc:date>
    </item>
    <item>
      <title>no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11772441#M2993</link>
      <description>I tried using gc(), but the situation didn't get better. It was very painful</description>
      <pubDate>Wed, 22 Feb 2023 10:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11772441#M2993</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-22T10:50:32Z</dc:date>
    </item>
    <item>
      <title>回复： Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11772578#M2994</link>
      <description>&lt;P&gt;Years of batch processing experience tells me, There is only one way:&lt;/P&gt;&lt;P&gt;open 3dsmax.exe, open max file, filein script, kill 3dsmax.exe&lt;/P&gt;&lt;P&gt;open 3dsmax.exe, open max file, filein script, kill 3dsmax.exe&lt;/P&gt;&lt;P&gt;open 3dsmax.exe, open max file, filein script, kill 3dsmax.exe&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 11:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11772578#M2994</guid>
      <dc:creator>trykle</dc:creator>
      <dc:date>2023-02-22T11:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11773727#M2995</link>
      <description>&lt;P&gt;you have to understand that what you're doing in &lt;STRONG&gt;filein&lt;/STRONG&gt; is causing the crash... it's hard to tell what it is specifically without seeing the code. So the only solution seems possible is to fix the code you are using in &lt;STRONG&gt;filein&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 18:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11773727#M2995</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-22T18:02:37Z</dc:date>
    </item>
    <item>
      <title>回复： Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11774743#M2996</link>
      <description>&lt;P&gt;This is too slow, but there seems to be no good way&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 02:41:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11774743#M2996</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-23T02:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11775052#M2997</link>
      <description>&lt;P&gt;filein file sample like&lt;BR /&gt;---------------------------------&lt;BR /&gt;xxx.name = “xxxx”&amp;nbsp;&lt;BR /&gt;max file save&lt;/P&gt;&lt;P&gt;---------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 06:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11775052#M2997</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-23T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11775357#M2998</link>
      <description>&lt;P&gt;have you tried just only opening files? ... in sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;fn batchLoadMaxFiles dir: = 
(
	if dir == unsupplied do dir = getSavePath()
	if doesfileexist dir do 
	(
		files = getFiles (pathConfig.appendPath dir "*.max")
		if (count = files.count) do with quiet on
		(
			cancel = off
			for k=1 to count while not cancel do
			(
				if keyboard.escPressed then
				(
					cancel = on
					format "\nBatch was canceled!\n"	
				)
				else
				(
					file = files[k]
					format "%(%) ...\n" (formattedprint k format:"03d") (formattedprint count format:"03d")
					loadMaxFile file quiet:on allowPrompts:off
					format "\t&amp;gt;&amp;gt; %\n" file
					resetMaxFile #noPrompt
				)
			)
		)
		count
	)
)
/* RUN IT!
batchLoadMaxFiles()
*/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11775357#M2998</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-23T09:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778006#M2999</link>
      <description>&lt;P&gt;I tried, but it still crashed&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778006#M2999</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-24T06:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778007#M3000</link>
      <description>&lt;P&gt;3dsmax2022&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:11:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778007#M3000</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-24T06:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778012#M3001</link>
      <description>&lt;P&gt;what are these files? What is the main content : animation, geometry, materials?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778012#M3001</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-24T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778040#M3002</link>
      <description>&lt;P&gt;animation file&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778040#M3002</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-24T06:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open the file more than one hundred times, resulting in a crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778068#M3003</link>
      <description>&lt;P&gt;did you try to load files in reverse order to ensure that it is indeed a script issue and not the corrupt scene file that leads to crash?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778068#M3003</guid>
      <dc:creator>Serejah</dc:creator>
      <dc:date>2023-02-24T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778071#M3004</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9407243"&gt;@mx_zwh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;animation file&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Biped? Layers, Mixer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How much memory do you initially allocate?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="denisTMaxDoctor_0-1677221777303.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1180782iD69583726C60772A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="denisTMaxDoctor_0-1677221777303.png" alt="denisTMaxDoctor_0-1677221777303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:56:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778071#M3004</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-24T06:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778075#M3005</link>
      <description>&lt;P&gt;default：100&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 06:59:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778075#M3005</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-24T06:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778116#M3006</link>
      <description>&lt;P&gt;Find one file that crashes the system due to 50–100 loads, and post it here. I will try to find a time to look at it.&lt;BR /&gt;I don't see any other way to figure out what's going on.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:27:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778116#M3006</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-24T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778121#M3007</link>
      <description>&lt;P&gt;It's not a file problem. It's a problem with 3dsmax software. I changed different files. It's all like this，lol&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:30:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778121#M3007</guid>
      <dc:creator>mx_zwh</dc:creator>
      <dc:date>2023-02-24T07:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: no</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778160#M3008</link>
      <description>&lt;P&gt;What if I tell you that some of my batches are 400–800 files each and they work stably?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is up to you... You can blame the software if it helps you in any way.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/open-the-file-more-than-one-hundred-times-resulting-in-a-crash/m-p/11778160#M3008</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-24T07:50:34Z</dc:date>
    </item>
  </channel>
</rss>

