Skip to content
Snippets Groups Projects
Commit 27ce99b3 authored by Philippe Canal's avatar Philippe Canal
Browse files

From Axel:

Issue a warning message if we can not find the TStreamerInfo plugin.
Hence avoiding the case where a foreign class didn't get its TClass
object without any error message! [The reason was a missing etc dir]


git-svn-id: http://root.cern.ch/svn/root/trunk@19716 27541ba8-7e3a-0410-8455-c3a389f83636
parent 8f7372a2
No related branches found
No related tags found
Loading
// @(#)root/base:$Name: $:$Id: TVirtualStreamerInfo.cxx,v 1.1 2007/02/05 18:06:25 brun Exp $ // @(#)root/base:$Name: $:$Id: TVirtualStreamerInfo.cxx,v 1.2 2007/06/15 12:35:04 brun Exp $
// Author: Rene Brun 05/02/2007 // Author: Rene Brun 05/02/2007
/************************************************************************* /*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
...@@ -142,6 +142,10 @@ TVirtualStreamerInfo *TVirtualStreamerInfo::Factory(TClass *cl) ...@@ -142,6 +142,10 @@ TVirtualStreamerInfo *TVirtualStreamerInfo::Factory(TClass *cl)
if (h->LoadPlugin() == -1) if (h->LoadPlugin() == -1)
return 0; return 0;
fgInfoFactory = (TVirtualStreamerInfo*) h->ExecPlugin(0); fgInfoFactory = (TVirtualStreamerInfo*) h->ExecPlugin(0);
} else {
gROOT->GetPluginManager()->Error("FindHandler",
"Cannot find plugin handler for TVirtualStreamerInfo!"
" Does $ROOTSYS/etc/plugins/TVirtualStreamerInfo exist?");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment