From ab2ba2965907a2a3ec125886b9664fb71a41758f Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Tue, 27 Oct 2009 23:19:21 +0000 Subject: Set up COM initialization before trying to database connection in earlyInitialize. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@830397 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp b/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp index 5872dbc2e4..cb92e2fd80 100644 --- a/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp +++ b/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp @@ -344,6 +344,7 @@ MSSqlProvider::earlyInitialize(Plugin::Target &target) // be sure to close the database connection before return to avoid // leaving a connection up that will not be used. try { + initState(); // This initializes COM std::auto_ptr db(new DatabaseConnection()); db->open(options.connectString, ""); _ConnectionPtr conn(*db); -- cgit v1.2.1