[Libreoffice] how to acquire an ScDocument reference "from scratch"

Caolán McNamara caolanm at redhat.com
Thu Nov 24 01:23:54 PST 2011


On Wed, 2011-11-23 at 16:59 -0500, Kevin Hunter wrote:
> Hello List,
> 
> I'm trying to get hold of an ScDocument "from scratch".  I have naively 
> attempted to replicate another section of code, but for the life of me 
> can't figure out what I'm missing.  My code crashes with a SIGSEGV on 
> this line:
> 
> aDocShell = new ScDocShell();
> 
> I think I've boiled it down to a null pointer dereference 

Probably boils down to needing the call to
comphelper::setProcessServiceFactory in
test::BootstrapFixtureBase::setUp in
unotest/source/cpp/bootstrapfixturebase.cxx

C.



More information about the LibreOffice mailing list