I have created a windows service with some third party dll's. Those dll's are all 64 bit so I need to set the project to 64 bit and install the service with the 64 bit installer. This all works and is not a problem.
However when I start the service it gives an error on one of the dll's. An Acces Violation Error.
I got this error before when I tried to run the code as 32 bit in another program.
I also copied all code to a simple windows form. There it works like a charm... So it seems to me that for some reason, Windows tries to start the program as a 32 bit program? Is this possible?
I must say, I'm a bit of a noob when it comes to programming...
Edit: It does show as a 64 bit program in the task manager: Platform in Task Manager
Below the error I get: My error
Hope this helps.
There is a bug in the Dll which gave this error. It now lies by the supplier. I thought, i'd let you know.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.