Looking for ways to inject system exception into a Windows running service.

Hello Experts,
I am testing a newly developed windows service and need to see how it handles system exceptions (something like outofmemory, etc). Is it possible to simulate any such occurrences from outside (without modifying the underlying code)? Please suggest.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
What the windows service is doing ? based on that you can decide what can you do from outside.

For e.g. if it reading a file or reading from DB then we can remove the file from the location or we can provide invalid file or file with invalid extension , if reading from DB then we can delete the DB entry or we can make a duplicate or incorrect entry ...lot of things but that all depends on your service.
sukhoi35Author Commented:
Well, the service has few APIs listening on ports, writes and reads data from SQL Server DB. Removing files are generally handled within the code which generally reports error.  And tweaking DB data might not really result in an exception unless we know the underlying implementation in detail.
Pawan KumarDatabase ExpertCommented:
You can check by entering the incorrect data in the SQL Server DB So that so check how the things works. Also start the service and delete the data in between and see how it performs.

>>the service has few APIs listening on ports-
Also try changes the port numbers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sukhoi35Author Commented:
Thanks for your inputs
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.