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