Rob Browning writes:
 > [EMAIL PROTECTED] writes:
 > 
 > > OK, that's the same crash that I see.  Is it possible to catch
 > > and sort of scheme/guile trap, and handle it rather than just dumping
 > > core?  Because a core dump requires the lock file to be removed, etc.
 > > Yuck.
 > 
 > Right.  That needs to be fixed, though we also need to get run-time
 > checking for the right version of slib (now that we know there's a
 > problem).
 > 

Dave Peticolas' latest patch attempts this, I believe.

 > To answer your first question, though, yes, you can trap the errors.
 > In guile, it generally throws an exception whenever anything goes
 > wrong, and if you know that #f is never a legitimate return value,
 > then you can just wrap the call in false-if-exception and check for a
 > false return value.  If you know what kind of exception you're worried
 > about, you can use "catch".  guile-ref has some info about all this.
 > 
 > This is definitely something that needs fixing soon.
 

Try the following patch against CVS+Dave's latest:

begin 644 gnucash.diff.gz
M'XL("!&JAC@"`V=N=6-A<V@N9&EF9@"M6&USX[81_FS]BAW[@R1+)/5^DI))
M[%&O-Y>YI!Z?F[8),QZ(A$A&),$`H&5W\N.[`$B)\LL)UY;CL4CPP8/%[H/%
M@A=P%R<"\(]`0600PX9QB/(R("*^#\D#+4`R*(N02`J)5`_5V]8%X-\=`U(4
MZ1-(Q:,IEMC\^>[]#0R7L(K#A*M.,J8@6,D#"MA"`\GXDUL#1TNX+7.-:6LV
MS=.&@K.(DPQVB8P;`\`F22D0-#LO2HDLR/-Q`T^LA)!!SB3$:/@155_9KOMS
M"6QCALK(EM8CD6!+(HI$,B924P4DAPW5PW&6Z1XKEA6<QC07"?+?4)["-0]B
M]?`3E3O&MVKNL93%TO-VNYU;(,0-6.:M;JY_\D@I8\:%]P.+27[_,[*27'A[
M*YQ']\F5A+O1O]6$C#_(FB'[WV\_]:']V`81LS(-84UA!!BH.(EBRHT'7HF$
M=APKI68J!54S;WKE?XO4FT%Z&1Z\X'T>JO%O."79&@&JL65>W6AC46($Y9>F
M;"?,VS#9;,`IH7TD2&^%[HOH)Q:U]V\:;:V/>4@?E^`>VEJ.XS2?S^[B$G[`
M^(X&,'RW'$R6XP'>#P:M7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T[G)
MXA?P88]=/QW(]C4;C%P-NZ5!R<6A8DIP2UO"OZC`=^\?@[0,D4'51:*FZ/C7
M?[J77G?U\^>.YU[^Z?_21>SK5XV]79W&]A_\7TX2?5ZM[$?]512_^:[;.\'K
M==GZ]Y.8R'?46O4Q'0E)TO1DAQ_1U<IQ]D`WR1-Y$HX+:9-$OAM@XJ+6Z)1%
MUEB<GRR%-3P^B70O?74^\/&`8(6U,5;AUDENA=.*MT*J*LX:>-I%CR0(K.@0
MB$JM;DYUH)P+Q)Z"^:Y_80&[N_[P^3278KHX"4N3M60LM9*.C7!0B1DNN=A2
MBR6G%EX):2$L8#@7816[Y'3N,/4^"C&SQCHTQ]V0^HXZBD_O=>YQ`_LT%94V
MN0<G&2F\0;LIL;`O\!U22H:;D54(>>![M56>ZFTQBU<Z_5<CQ3)++?MI!WC[
M2%D.AT<IWULS)O&8H0*DGNTZ[C!U>CJVC5%-S*M@A\P^W*XJDFVBW?!0<]_Y
MRJY<X-Z3T4.+PX7=O/\H&9Z:37@<K$T#>KIC)+<BIE1:)#.U'K5!-D"L=NSV
M&4Y_MYM=51CZ^DO"U^V/&;/;*:*,6?*=A!7L*T5P\[>[OW[\]/[T=H&G%2R4
M0M^1Z]0J:^T3))-69A>"EB'S'?.]SRJEF*VDMLQF$/J(BSI`?$8"SH2OOXJ>
M[)GDNFKVO?HL=I\,YU:I\GB-D2!E`4'W99.O2F'-T1Z@C:3>/]>$.A-WYH[P
M[)H3H3\(Z:(HI0\T=>,V#,?S*2PF\_%P/II-88R_<R0HH-WX:#F=319SC9HL
MQM,%#(:#P6PV,;C7OG2-9_.!P<\7BZG!3R9')Z7G9Z+&<>GH++5-)/QJ/KJ%
H;Q]\?JO.4JK[*J;!5I09'J&F8Y@-WTU@-'TW&1G(?P`)?G*I01@`````
`
end


-- 
---------------------------------------------------------------------------
Robert Merkel                                               [EMAIL PROTECTED]

Humanity has advanced, when it has advanced, not because it has been sober, 
responsible, and cautious, but because it has been playful, rebellious, and 
immature.
                -- Tom Robbins
---------------------------------------------------------------------------

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to