Re: [IBPP-DISCUSS] Exclusive Handle in Windows 7
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
From: <dan...@gm...> - 2011-06-16 19:13:40
|
I changed the Logon Account for the Service as a test - the results are the same. I'm able to establish multiple connections from the User Interface, but the Service's connection is exclusive for reasons unknown. I found some documentation about using gfix to bring the database offline and online. They seemed to work as expected, but don't have any effect on my issue. Is there anything related to architecture that I should be concerned with? Is there an incompatibility between a 32-bit client and 64-bit Server, or vice versa? I'm trying to brainstorm any possible explanation. Thanks, --Dan On , dan...@gm... wrote: > Jens, > They do. The Service is installed in the Service Control Manager and runs > as the Local System Account by default. The User Interface is run by a > user and is going to be run under the logged on users' account. I can try > configuring the Service component to use a different account if that > would help, but I'm hoping that's not a requirement. The nature of our > Service is that it needs System Level permissions. > Thanks! > --Dan > On , Jens Saathoff jen...@go...> wrote: > > Hm...do the apps run under different users? > > > > > > > > > > > > 2011/6/15 Daniel Casper dan...@gm...>: > > > > > We have a product that's done in two components - a Service written > in C++ > > > > > and a User Interface written in Python. They share a Firebird > Database for > > > > > configuration. Because they are separate processes we are running the > > > > > Firebird Super Server Service so that they can both have an open > connection > > > > > when necessary. This works properly on Windows XP, but does not work > on > > > > > Windows 7. > > > > > > > > > > The C++ Service uses the IBPP Library. The Python UI uses kinterbasdb > from > > > > > firebirdsql.org. > > > > > > > > > > On Windows 7 I am able to launch multiple instances of the User > Interface > > > > > and each one is able to establish a connection. I believe this > indicates > > > > > that the Firebird Service is working properly. If even a single > instance of > > > > > the User Interface is running the Service cannot start. If the > Service is > > > > > running I cannot launch any instances of the User Interface. This > seemingly > > > > > points to the Service component using an exclusive handle in some > way. The > > > > > code that it uses to connect is: > > > > > > > > > > IBPP::DatabaseFactory(host, name, user, password) > > > > > > > > > > Where host is 'localhost', name is the path to our database, and user > and > > > > > password are self explanatory. This mirrors the documentation for the > IBPP > > > > > library. When the Service has an open connection to the Database I can > > > > > verify via netstat that there is an established socket, as expected. > At this > > > > > point, I'm at a loss. I haven't been able to find anything related to > > > > > Firebird and Windows 7 that would explain the behavior, and the code > is > > > > > functional on XP. Any ideas? > > > > > > ------------------------------------------------------------------------------ > > > > > EditLive Enterprise is the world's most technically advanced content > > > > > authoring tool. Experience the power of Track Changes, Inline Image > > > > > Editing and ensure content is compliant with Accessibility Checking. > > > > > http://p.sf.net/sfu/ephox-dev2dev > > > > > _______________________________________________ > > > > > ibpp-discuss mailing list > > > > > Post to ibp...@li... > > > > > Settings https://lists.sourceforge.net/lists/listinfo/ibpp-discuss > > > > > http://www.ibpp.org > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > EditLive Enterprise is the world's most technically advanced content > > > > authoring tool. Experience the power of Track Changes, Inline Image > > > > Editing and ensure content is compliant with Accessibility Checking. > > > > http://p.sf.net/sfu/ephox-dev2dev > > > > _______________________________________________ > > > > ibpp-discuss mailing list > > > > Post to ibp...@li... > > > > Settings https://lists.sourceforge.net/lists/listinfo/ibpp-discuss > > > > http://www.ibpp.org > > > > |