On Wednesday 03 July 2002 9:42 am, Jean-Marc Lasgouttes wrote: > >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> Can you see if current CVS makes any difference? > > Lars> I have removed some static signals. > > No luck. I still die with > > (gdb) bt > #0 0x40328ca4 in free () from /lib/libc.so.6 > #1 0x40328c24 in free () from /lib/libc.so.6 > #2 0x08233cf7 in lyx_gui::init_graphics () > #3 0x082f050b in grfx::Cache::get () > #4 0x082f8ec5 in grfx::Loader::Impl::resetFile () > #5 0x082fa0d5 in grfx::Loader::reset () > #6 0x0821b4df in {anonymous}::SplashScreen::SplashScreen () > #7 0x0821b0dc in {anonymous}::SplashScreen::get () > #8 0x0821b58c in LyXScreen::LyXScreen () > #9 0x0824a744 in XScreen::XScreen () > #10 0x08233fab in LyXScreenFactory::create () > #11 0x08055ead in BufferView::Pimpl::Pimpl () > #12 0x0805193c in BufferView::BufferView () > #13 0x08248293 in XFormsView::create_form_form_main () > #14 0x08247739 in XFormsView::XFormsView () > #15 0x082333f4 in lyx_gui::start () > #16 0x080e44e4 in LyX::LyX () > #17 0x0812a825 in main () > #18 0x402c45b0 in __libc_start_main () from /lib/libc.so.6 > > Sorry for the lack of debug symbols, but I cannot afford them. > > Maybe graphics should be initialized before the splash screen. > > JMarc
They are automatically. The GraphicsCache is a singleton class that does all the dirty work the first time it is get()ed. If Lars believes that your compiler and static signals are a bad combination, then he should think about these ones too. His current approach (in the frontends) appears to be to remove functionality. I guess that's a try things till they work approach? Angus /** \file graphics/GraphicsImage.h */ class Image { public: /** This is to be connected to a function that will return a new * instance of a viable derived class. */ typedef boost::shared_ptr<Image> ImagePtr; /// static boost::signal0<ImagePtr> newImage; /// Return the list of loadable formats. typedef std::vector<string> FormatList; /// static boost::signal0<FormatList> loadableFormats; ... };