Re: Immediate crash loading a document in CVS HEAD. - FIXED

From: <msevior_at_physics.unimelb.edu.au>
Date: Tue Dec 19 2006 - 03:42:26 CET

I just fixed this.

Martin

>
> 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 03:43:44 2006

This archive was generated by hypermail 2.1.8 : Tue Dec 19 2006 - 03:43:45 CET