on 10-02-2018 2:10 PM
I have a windows service (C#) that integrates with SAP B1. When SQL Server is restarted during the execution of the service the Company object loses the reference giving several errors and does not reconnect, being necessary to restart the service manually.
I'm trying to reconnect to the database while running but need to reload the Company object, but I'm not getting it.
Any tips on how to discard the old Company and redo a new one?
Hi Rodrigo,
The old company object will be useless. You may need to create a new company object
Problem is the old company object will not release its memory usage.
Another solution: make your service as just a controller to another application that contains the company object.
When company object cannot be restarted, your service should stop the application and restart it.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.