using literal zero for NULL

2006-03-20 Thread mikecorn
I just tried rebuilding my GTK apps for a 64 bit Linux system (Fedora core 5), and had an ugly surprise: random segmentation faults. I traced at least one of them to my lazy habit of using a literal zero in place of NULL for an optional function argument or end-of-arg-list indicator. I speculate t

Re: Unloading sequence of GTK

2006-03-20 Thread Milosz Derezynski
Sorry i forgot to ask: What do you mean by "gtk assumes a fresh image"? (In which context?)On 3/21/06, Milosz Derezynski < [EMAIL PROTECTED]> wrote: >On 3/20/06, muppet <[EMAIL PROTECTED]> wrote: > >>Clemens Fruhwirth wrote: >> I would like to ask how to properly unload gtk from a process image, >

Re: Unloading sequence of GTK

2006-03-20 Thread Milosz Derezynski
>On 3/20/06, muppet <[EMAIL PROTECTED]> wrote: > >>Clemens Fruhwirth wrote: >> I would like to ask how to properly unload gtk from a process image, >> when it has been brought there via dlopen. The initial situation is that >> I need to enter gtk's main loop in a single process image multiple >> t

Re: Unloading sequence of GTK

2006-03-20 Thread muppet
Clemens Fruhwirth wrote: > I would like to ask how to properly unload gtk from a process image, > when it has been brought there via dlopen. The initial situation is that > I need to enter gtk's main loop in a single process image multiple > times, but that's not possible with gtk as gtk assumes a

Re: Unloading sequence of GTK

2006-03-20 Thread Matthias Clasen
On 3/20/06, Clemens Fruhwirth <[EMAIL PROTECTED]> wrote: > Matthias Clasen <[EMAIL PROTECTED]> wrote: > > > That does not work. > > With due respect, but I can't image a reply that is less worth the time > it took to write and read. > > Is it either "That does not work, because we don't to support

Re: Unloading sequence of GTK

2006-03-20 Thread Clemens Fruhwirth
Matthias Clasen <[EMAIL PROTECTED]> wrote: > That does not work. With due respect, but I can't image a reply that is less worth the time it took to write and read. Is it either "That does not work, because we don't to support that", "That does not work because of multi-platform troubles" or "Tha

Re: Unloading sequence of GTK

2006-03-20 Thread Matthias Clasen
On 3/20/06, Clemens Fruhwirth <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to ask how to properly unload gtk from a process image, > when it has been brought there via dlopen. The initial situation is that > I need to enter gtk's main loop in a single process image multiple > times, but tha

Unloading sequence of GTK

2006-03-20 Thread Clemens Fruhwirth
Hello, I would like to ask how to properly unload gtk from a process image, when it has been brought there via dlopen. The initial situation is that I need to enter gtk's main loop in a single process image multiple times, but that's not possible with gtk as gtk assumes a fresh image. Hence, I lo

Re: Glib-Windows Compilation Issues

2006-03-20 Thread Jake Goulding
Hans: Thank you for the helpful comments and pointers. I took a second look at the ftruncate comment I made earlier. Indeed, you are correct, there is no other definition of g_win32_ftruncate. I did get an error before I made my change, so I will have to go back and try to ascertain the real