Re: annoying simple Guile question

2004-09-22 Thread Neil Williams
On Wednesday 22 September 2004 4:23 am, you wrote: Neil Williams [EMAIL PROTECTED] writes: I'll look into that. TBH, I'm not sure why it is calling OpenSP, except that it is loading the current XML datasource files directly, without user intervention and without using Guile/Scheme/GUI.

Re: annoying simple Guile question

2004-09-22 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes: Well, it shouldn't depend on the XML backend even if it's embedded in the GnuCash tree. Sorry, I wasn't clear. XML as data interchange, not as a backend. If it's going to receive QofBook data from external sources, including pilot-link or via STDIN,

Re: annoying simple Guile question

2004-09-22 Thread Neil Williams
On Wednesday 22 September 2004 2:56 pm, Derek Atkins wrote: AHHH.. Yes, indeed, XML is definitely suited to this. However your code still shouldn't assume XML, because a user may want to merge two PG databases together, or a PG and XML dataset, or an XML and SQLite (once that's

Re: annoying simple Guile question

2004-09-22 Thread Neil Williams
On Wednesday 22 September 2004 3:49 pm, Derek Atkins wrote: Thank you for learning and doing the work! How can we keep you interested in doing more work? I've got plenty more I'd like to do with the merge and GnuCash - just for now I need to give some time to other projects and certain

annoying simple Guile question

2004-09-21 Thread Neil Williams
When running a console application that uses guile via gnucash-env, how do I abort? I free the memory I used, I call gnc_engine_shutdown() but the program hangs, waiting for a Ctrl-C. I've checked and all the usual tidying up functions are called without errors - it exits normally when allowed

Re: annoying simple Guile question

2004-09-21 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes: When running a console application that uses guile via gnucash-env, how do I abort? You mean how do you get the program to exit? You call exit(); in your C, or (exit) from guile. I free the memory I used, I call gnc_engine_shutdown() but the program

Re: annoying simple Guile question

2004-09-21 Thread Neil Williams
On Tuesday 21 September 2004 9:11 pm, you wrote: Neil Williams [EMAIL PROTECTED] writes: Uh, how/why are you using OpenSP? It looks like OpenSP has an exit handler (via atexit()) which seems to be trying to flush a stream and hanging during a malloc call. I'll look into that. TBH, I'm not

Re: annoying simple Guile question

2004-09-21 Thread Perry Smith
On some systems, there is either _exit() or kexit() that actually calls the OS's exit. If you are on a unix type system and want to get really nasty, you can do kill(getpid(), SIGKILL); But, even at that, a process can hang in the exit of the kernel. The best example is if you have output

Re: annoying simple Guile question

2004-09-21 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes: I'll look into that. TBH, I'm not sure why it is calling OpenSP, except that it is loading the current XML datasource files directly, without user intervention and without using Guile/Scheme/GUI. XML doesn't use OpenSP. The only thing I can think of