Re: gtk_file_chooser page faults (win32)



On Fri, Aug 13, 2004 at 12:48:40AM -0700, Todd Fisher wrote:
David wrote:
 
I'm beginning to think it must be a bug somewhere in the
gtk_file_chooser chain.  There may be some subtle problems when it runs
under Linux or msys, but if so, they don't show up.  I think that it's
just that somehow, the path and file strings are not getting stored when
run straight from Windows.
 
If I recall the changes I had to make in the copy of gtk+ I used to 
compile with msvc I had to modify g_get_home_dir,
which calls g_get_any_init.  I wonder if it is possible that there is an 
environment variable missing on your win98 machine
and that the file chooser is not handleing NULL return values from 
g_get_home_dir?

THAT'S IT!!!!!!!!!!

I set HOME to a value and sure enough, it works!  I then went into msys
and unset HOME and it crashed the same way.

Probably in some of the documentations for mingw, it may have told us to
set HOME in Windows, but this shouldn't cause the program to crash.
Would this not still be a bug?  It seems that it would be more
appropriate if, should HOME not be found, a message box with a warning
would appear - and then maybe an exit, if it is considered that
critical.  Or does someone who doesn't have HOME set deserve segfaults?
;)

I didn't try it, but I'm confident that if I unset HOME in Linux, the
program would crash as well.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]