I compiled with gcc 4.1.2 at home and the problem disappeared without
changing a single thing in the Pico code so I really never had a problem at
all.

To all: During the past few days Alex and me realized that compiling with
gcc 4.2.3 will introduce memory corruption issues when using the default
make with optimization level 2, using the above mentioned 4.1.2 version will
not introduce these problems though. If Alex hasn't done any further
investigating since Thursday las week the reason for this is unknown.

/Henrik


On Thu, Sep 25, 2008 at 7:43 PM, Alexander Burger <[EMAIL PROTECTED]>wrote:

> Hi Henrik,
>
> > Another question, I have a small upload form I want to use, again without
> > (action) or (app), is this possible?
>
> Here is a simple example:
>
> ################################################################
> #!bin/picolisp lib.l
>
> (load "ext.l" "lib/http.l" "lib/xhtml.l")
>
> (de start ()
>   (html 0 "Upload" "lib.css" NIL
>       (<post> NIL "@importOpml"
>         (<upload> 10 '*OpmlFile)
>          (<submit> "Import") ) ) )
>
> (de importOpml ()
>   (out 2 (in (tmp *OpmlFile) (echo))) )
>
> (server 8080 "@start")
> ################################################################
>
> Start it as ./upl in the PicoLisp installation directory.
>
> The POST will return the file name in the variable '*OpmlFile'. The file
> itself will then be found in a 'tmp' file with that name, i.e. the file
> "tmp/<pid>/name".
>
> In the example above, 'importOpml' simply echoes the file contents to
> standard error.
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:[EMAIL PROTECTED]
>

------=_Part_30058_8682445.1222583547148
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr"><div><br class="webkit-block-placeholder"></div><div>I compiled 
with gcc 4.1.2 at home and the problem disappeared without changing a single 
thing in the Pico code so I really never had a problem at all.</div>
<div><br class="webkit-block-placeholder"></div><div>To all: During the past 
few days Alex and me realized that compiling with gcc 4.2.3 will introduce 
memory corruption issues when using the default make with optimization level 2, 
using the above mentioned 4.1.2 version will not introduce these problems 
though. If Alex hasn&#39;t done any further investigating since Thursday las 
week the reason for this is unknown.</div>
<div><br class="webkit-block-placeholder"></div><div>/Henrik</div><br><br><div 
class="gmail_quote">On Thu, Sep 25, 2008 at 7:43 PM, Alexander Burger <span 
dir="ltr">&lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;">Hi Henrik,<br>
<div class="Ih2E3d"><br>
&gt; Another question, I have a small upload form I want to use, again 
without<br>
&gt; (action) or (app), is this possible?<br>
<br>
</div>Here is a simple example:<br>
<br>
################################################################<br>
#!bin/picolisp lib.l<br>
<br>
(load &quot;ext.l&quot; &quot;lib/http.l&quot; &quot;lib/xhtml.l&quot;)<br>
<br>
(de start ()<br>
 &nbsp; (html 0 &quot;Upload&quot; &quot;lib.css&quot; NIL<br>
<div class="Ih2E3d"> &nbsp; &nbsp; &nbsp;(&lt;post&gt; NIL 
&quot;@importOpml&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; (&lt;upload&gt; 10 &#39;*OpmlFile)<br>
</div> &nbsp; &nbsp; &nbsp; &nbsp; (&lt;submit&gt; &quot;Import&quot;) ) ) )<br>
<br>
(de importOpml ()<br>
 &nbsp; (out 2 (in (tmp *OpmlFile) (echo))) )<br>
<br>
(server 8080 &quot;@start&quot;)<br>
################################################################<br>
<br>
Start it as ./upl in the PicoLisp installation directory.<br>
<br>
The POST will return the file name in the variable &#39;*OpmlFile&#39;. The 
file<br>
itself will then be found in a &#39;tmp&#39; file with that name, i.e. the 
file<br>
&quot;tmp/&lt;pid&gt;/name&quot;.<br>
<br>
In the example above, &#39;importOpml&#39; simply echoes the file contents 
to<br>
standard error.<br>
<br>
Cheers,<br>
- Alex<br>
<font color="#888888">--<br>
UNSUBSCRIBE: mailto:<a 
href="mailto:picolisp@software-lab.de";>picolisp@software-lab.de</a>?subject=Unsubscribe<br>
</font></blockquote></div><br></div>

------=_Part_30058_8682445.1222583547148--
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to