this seems like a hack but have you considered createing a file
".session.lock", and have drscheme remove it uppon every boot. 
Then have the program load the library if there is no ".session.lock"
file, (and after loading it, the program would create the
&quot;.session.lock&quot; file).<br>
<br>
Corey<br><br><div><span class="gmail_quote">On 11/19/05, <b class="gmail_sendername">Ittai Balaban</b> &lt;<a href="mailto:balaban@cs.nyu.edu">balaban@cs.nyu.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi.<br>I've run into the following situation, trying to use DrScheme with a<br>file requiring a module that does initialization of a foreign library:<br>When you hit 'run' in DrScheme, the interaction environment is<br>completely &quot;rebooted&quot;, 
i.e. a module loaded before the 'run' will be<br>reloaded post-run. However, while scheme is effectively in a fresh<br>state, this is not true for the foreign library, leading to it being<br>initialized again and again on subsequent 'run's.
<br><br>Any suggestions (other than requiring the user to explicitly initialize<br>foreign libraries)? Specifically, I have some module code that I would<br>like to run *once* per DrScheme process.<br><br>Thanks<br>--<br>
Ittai<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.1 (GNU/Linux)<br><br>iD8DBQBDf3gPMSX6uw5QMQoRAjKRAJ0WTTvIMvKRf9DT9XQEBenNRmCA+gCeKfML<br>dDDW7tuaP64zs/N4jqeW3pE=<br>=mrzl<br>-----END PGP SIGNATURE-----
<br><br><br>_________________________________________________<br>&nbsp;&nbsp;For list-related administrative tasks:<br>&nbsp;&nbsp;<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>((lambda (y) (y y)) (lambda (y) (y y)))