Quitting an application


I am writing a music library manager and I have a small problem when terminating the application.
On starting the app, I scan a DB and load the tracks into a treeview.
When this is in progress, if the user closes the application, a segfault occurs
because gtk_main_quit() has been called and the scanning function tries to access
data structures that are no more. How do I synchronize between them ?

Any help is appreciated.


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