<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with tlmdscriptcontrol - LMD Innovative - Forum</title>
      <link>https://forum.lmd.de/discussions/tagged/tlmdscriptcontrol/feed.rss</link>
      <pubDate>Tue, 07 Apr 2026 12:46:50 +0000</pubDate>
         <description>Tagged with tlmdscriptcontrol - LMD Innovative - Forum</description>
   <language>en-CA</language>
   <atom:link href="/discussions/taggedtlmdscriptcontrol/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>TLMDScriptControl.Prepare() hangs indefinitely for a specific syntax pattern</title>
      <link>https://forum.lmd.de/discussion/1246/tlmdscriptcontrol-prepare-hangs-indefinitely-for-a-specific-syntax-pattern</link>
      <pubDate>Tue, 07 Apr 2026 07:13:51 +0000</pubDate>
      <dc:creator>Konzeptum GmbH</dc:creator>
      <guid isPermaLink="false">1246@/discussions</guid>
      <description><![CDATA[Hi,<br /><br />we’ve encountered a reproducible issue with <span style="font-family: Courier New;">TLMDScriptControl.Prepare()</span> that appears to be a parser/compiler problem in Pascal-Script.<br /><br /><span style="font-family: Courier New;">Prepare()</span> hangs indefinitely for a specific syntax pattern.<br /><br />Example Script:<br /><span style="font-family: Courier New;">var<br />&nbsp; i, x;<br />begin<br />&nbsp; x := 'a';<br />&nbsp; for i := 0 to 10 do<br />&nbsp; begin&nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp; if (x = 'a') or (x = 'x') then<br />&nbsp; &nbsp; &nbsp; ShowMessage('a')<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; ShowMessage('b');<br />&nbsp; end;<br />end;</span><br /><br /><div>As far as we observed, the issue only occurs with this combination:</div><div><ul><li>for loop</li><li>if..then..else</li><li>or-condition</li><li>parenthesized sub-expressions</li></ul>Variations that work:</div><div><ul><li>Removing parentheses around the OR operands (<span style="font-family: Courier New;">if x = 'a' or x = 'x' then</span>)</li><li>Removing the else branch</li><li>Removing the for loop</li><li>Splitting the condition:</li></ul></div><span style="font-family: Courier New;">&nbsp; &nbsp; &nbsp;if x = 'a' then<br />&nbsp; &nbsp; &nbsp; &nbsp;...<br />&nbsp; &nbsp; &nbsp;else if x = 'x' then<br />&nbsp; &nbsp; &nbsp; &nbsp;...</span><br /><br />We encountered that Problem in LMD ScriptPack 2022.10 and 2025.4.<br />Is this a known issue in the Pascal-Script parser/compiler?]]></description>
   </item>
   </channel>
</rss>