Subject Re: Windows service using IBO (?)
Author Aage Johansen
Thanks to both

Thomas wrote:
<<
The AV in the Firebird client library sounds to me like a
multi-threading issue. Have you designed your Windows Service with IBO
like a multi-threaded application. A dedicated connection, transaction etc.
Have you derived your IBO-based Windows Service from IBS_Base?
>>
I did not bother with threads here. The test was to write a record
to a table once every 24 hours. Service install was ok, service
start was ok, the service wrote to the application event log (using
LogMessage) when expected to do so, stopping and uninstalling was
ok. When I added the database stuff, it "bombed". There was just a
connection, transaction and a DSQL.

Jason wrote:
<<
I highly recommend you look over the new service application sample
application that came in the latest release. It makes it so much easier to
be able to debug your service application because you can take the exact
same code and test it as a stand-alone app.
This also gives you a very nice foundation framework to build a service app
on.
Please get your app converted over to this framework so that it can be
debugged as a standard EXE and let us know how it goes from there.
>>
A service application sample is great!
I'm still on IBO/4.9. I'm somewhat reluctant to change components
when other (more important) applications work well. I'll install the
latest on another pc (maybe SET is using IBO/5 by now - I'll check with him).

It will probably take a few days before I can take up this "work"
since I only started playing with the service thing last week as it
was quite quiet at work then.


Thanks, again.
Aage J.