Immediate crash loading a document in CVS HEAD.

From: <msevior_at_physics.unimelb.edu.au>
Date: Tue Dec 19 2006 - 01:50:30 CET

This happens because in pd_Document.cpp::PD_Document::_importFile(const
char * szFilename, int ieft,
                                                                  bool markClean, bool bImportStylesFirst,
                                                                  bool bIsImportFile, const char* impProps)
--------------------------------------------------------------------
Creates a GsfInput
----------------------------------------------------------------------
        GsfInput * input;

        input = UT_go_file_open(szFilename, NULL);
-----------------------------------------------------------------------
Which is passed through to

UT_Error PD_Document::_importFile(GsfInput * input, int ieft,
                                                                  bool markClean, bool bImportStylesFirst,
                                                                  bool bIsImportFile, const char* impProps)

---------------------------------------------------------------------

Then this line:
---------------------------------------------------------------------
        const char * szFilename = gsf_input_name (input);
---------------------------------------------------------------------

returns NULL

Which leads to a crash.

Any ideas Dom?

Cheers

Martin

        const char * szFilename = gsf_input_name (input);
Received on Tue Dec 19 01:50:46 2006

This archive was generated by hypermail 2.1.8 : Tue Dec 19 2006 - 01:50:46 CET