<div dir="ltr">Hi,<div>That fixes the image lock up. </div><div>I have commited the fix to trunk</div><div><br></div><div>Karl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 9, 2015 at 4:01 PM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu" target="_blank">leves@elte.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It&#39;s because the error occurs in the critical section of AccessLock, so it&#39;ll stay locked during error handling. This probably locks up the debugger, because it can&#39;t access the preferences.<br>
Here&#39;s a fix:<br>
<br>
preferenceAt: aSymbol ifAbsent: aBlock<br>
        &quot;Answer the Preference object at the given symbol, or the value of aBlock if not present&quot;<br>
<br>
        self accessDictionaryOfPreferencesI<u></u>n: [ :dictionaryOfPreferences |<br>
                dictionaryOfPreferences<br>
                        at: aSymbol<br>
                        ifPresent: [ :preference | ^preference ] ].<br>
        ^aBlock value<span class="HOEnZb"><font color="#888888"><br>
<br>
Levente</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, 9 Jan 2015, karl ramberg wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
Image lock up doing<br>
Preferences togglePreference: #justATest<br>
<br>
If I change error:  to inform: in the method I do not get a image lock up.<br>
<br>
This is in a trunk image and tested with several Cog VM on Windows.<br>
<br>
Preferences&gt;&gt;togglePreference: prefSymbol<br>
&quot;Toggle the given preference. prefSymbol must be of a boolean preference&quot;<br>
(self preferenceAt: prefSymbol ifAbsent: [self error: &#39;unknown preference: &#39;, prefSymbol]) togglePreferenceValue <br>
<br>
Karl<br>
<br>
</blockquote>
</div></div><br><br>
<br></blockquote></div><br></div>