Re: [Gc] child process goes to crash when the program invokes gtk_init

Kjetil Matheussen <[email protected]> Wed, 5 Aug 2015 18:11:14 +0200
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <CAC6niELHfhrOjukvhnHW9+-tZ3TEq-C_7rt0LG5TaxDcRWMvYQ@mail.gmail.com>
>
>
> gtk is gtk+-2.24.28.
>
> I have fears in using boehm-gc together with gtk+-2.0. Does anyone give me
> comments/advices ?
>
> Thanks in advance.
>
>
Hi,

I've used gtk with boehm-gc in a quite large program before without
problems, but not in cygwin, only mingw/osx/linux.
And I didn't fork either. I don't know how forking works in cygwin (think I
remember reading something about fork
being impossible to emulate in Windows, but maybe that is not true
anymore), and I also don't know if there
is anything (in general) to look out for when forking in a bdwgc program.

But maybe your program works if you just call GC_INIT() right after main?

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc