On Thu, Aug 12, 2004 at 12:03:55AM +0100, Neil Williams was heard to remark:
> On Wednesday 11 August 2004 10:33, Derek Atkins wrote:
> > Neil Williams <[EMAIL PROTECTED]> writes:
> > > I even tried g_return_if_fail(1 == 2);
> >
> > This should definitely trigger...
> 
> That's what I figured. (Glad to know I'm not going bonkers).
> 
> I have narrowed the problem, somewhat and I think it's not down to a system 
> config but a makefile config. I must have fiddled once too often with a 
> Makefile because of this snippet:
> int main(int argc, char** argv) 
> {
>       gint result;
>       QofBook *testbook, *mainbook;
>       Account *testaccount, *testaccount2;
>       
>       /* engine initialising */
>       printf("Gnucash Version %i.%i.%i\n", gnucash_major_version(),
>               gnucash_minor_version(), gnucash_micro_version());
> //    g_return_val_if_fail((1 == 2), 55);
>       gnc_engine_init(argc, argv);
>       g_return_val_if_fail((1 == 2), 55);
> 
> As is, that is completely silent, no message at all.

Make sure that the code in src/engine/gnc-trace.c isn't dumping all
messages to a logfile (e.g. /tmp/gnucash.trace or something like that).

--linas

> 
> Uncomment the first g_return and the message appears.
> ** CRITICAL **: file example-gncBookMerge.c: line 158 (main): assertion `(1 == 
> 2)' failed.
> 

-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <[EMAIL PROTECTED]>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933
_______________________________________________
gnucash-devel mailing list
[EMAIL PROTECTED]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to