I came across a crash like this running under 32-bit Windows XP as well. But not on 32-bit Linux.<br><br>Keith Frost<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 7:57 PM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I just found a segfault with finalize on 64-bit linux. Is that what<br>
you're using?<br>
<br>
I haven't been able to figure out the solution yet though.<br>
<br>
Jay<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 19, 2009 at 10:22 PM, <<a href="mailto:synx13%2Bplt@gmail.com">synx13+plt@gmail.com</a>> wrote:<br>
> My code it is broke. The following example script seems to segfault any<br>
> plt executable, when using (planet jaymccarthy/sqlite:3). I know the<br>
> point of prepared statements is being able to run them twice, so not<br>
> sure what I'm doing wrong here.<br>
><br>
</div></div>> #lang scheme<br>
><br>
> (require (prefix-in sqlite3: (planet jaymccarthy/sqlite:3)))<br>
><br>
> (let ((db (sqlite3:open ':memory:)))<br>
> (sqlite3:exec/ignore db "CREATE TABLE foo (id INTEGER PRIMARY KEY, bar INTEGER, baz TEXT);")<br>
> (let ((insert-statement (sqlite3:prepare db "INSERT INTO foo (bar,baz) VALUES (?,?);")))<br>
> (sqlite3:run insert-statement 2 "two")<br>
> (sqlite3:reset insert-statement) ; eww<br>
> (display "Hmm..\n")<br>
> (sqlite3:run insert-statement 3 "three")<br>
> (display "HMM..\n")<br>
> (sqlite3:finalize insert-statement)) ; ewwww<br>
> (sqlite3:close db))<br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote></div><br>