rodneyviana / ODSyncService

OneDrive service/DLL for Sync State
MIT License
93 stars 26 forks source link

Fatal error. System.AccessViolationException - PowerShell Run DLL with OneDrive paused. #45

Open Nakazen opened 11 months ago

Nakazen commented 11 months ago

I am running into the following issue. When OneDrive is up and running the DLL works flawlessly and creates the requested output. But if the OneDrive client (Personal and Corporate) is paused the error: Fatal error. System.AccessViolationException is given everytime. The issue I am running into is that is crashes the complete PowerShell proces so there is no way to use error handeling to catch the error and continue the script. Anyone any suggestions on how to catch this error?

The complete error log can be provided if this is neccesary.