Re: [Chicken-users] Cryptic SSAX error message

2015-03-19 Thread Peter Bex
On Wed, Mar 18, 2015 at 08:56:06PM -0600, Matt Gushee wrote: On Tue, Mar 17, 2015 at 2:13 AM, Peter Bex airh...@users.sourceforge.net wrote: You shouldn't parse HTML with an XML parser. Not in general, no. But wouldn't you agree that, regardless of what is wrong with the input file and why

Re: [Chicken-users] GC root gets garbage collected

2015-03-19 Thread Peter Bex
On Thu, Mar 19, 2015 at 12:21:47PM -0700, Christopher Collins wrote: The way I understood it, the returned mystruct instance would never get garbage collected until I explicitly call CHICKEN_delete_gc_root(). I never actually delete the root (I set a breakpoint on CHICKEN_delete_gc_root in

Re: [Chicken-users] GC root gets garbage collected

2015-03-19 Thread Christopher Collins
Thanks, Peter. The C code always uses CHICKEN_gc_root_ref() to obtain the reference that it passes to the scheme code. Also, something that I didn't make very clear: after creating the root as paraphrased in my previous email, the C code successfully passes the struct reference to a scheme

Re: [Chicken-users] Cryptic SSAX error message

2015-03-19 Thread Peter Bex
On Thu, Mar 19, 2015 at 02:26:06PM +0100, Jörg F. Wittenberger wrote: On Mar 19 2015, Peter Bex wrote: there suck in a variety of different ways), so I'm sure a CMS in Scheme is going to make the lives of people like my former self more pleasant. 2 questions: * What features need to be

[Chicken-users] GC root gets garbage collected

2015-03-19 Thread Christopher Collins
Hello Chicken users, I'm struggling with an issue where a scheme object is being unexpectedly garbage collected. To provide some context: my program's main() is in C, and the C code calls out to scheme procedures. One of these scheme procedures makes and returns a struct (via the defstruct