Folks:

I have created this wonderful application in C++ using GTK.  I have some
externs and I use global pointers throughout my application.  Anyhow,
normally a C version of GTK+ would be like ...

int main(int argc, char *argv[])
{
    gtk_init(&argc,&argv); . ... // this is my suspect problem

.}

My problem is .. when I run the app, it works fine until the very end,
where it states cannot find the bounds of the function (main).  It
segmentation faults and core dumps.  I don't know how to solve this
one!  I trace using ddd the delete's of every object but as soon as the
last destructor, which is the gApplication object, it cannot find a
memory address 0x724379.etc. ya da da.  and cannot find the bounds of
this function (which is main()).

I am lost.  I do not use gtk_init in the main().  In fact, I have an
initialize method on the gApplication object.  I passed pointers for the
argc, and argv[] to this method via (int argc, char *argv[]) and used
gtk_init(&argc, &argv) in this method specifically.  I am referring to
this because I believe this to be the culprit or some scope resolution
problem with the GTK+ application itself.  I used gtk_init(NULL,NULL)
initially and things seemed to work.  But as I increased my development,
I added the number of args and the arguments.

Any help would be much appreciated.

Thanks,

David L. Whitehurst
Senior Systems Developer, Sky Alland

[EMAIL PROTECTED]

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to