Im trying to code a little app to restore a dump. Everything works fine,
but if I try to declare Restore-object using withevents, I get error
EXCEPTION_ACCESS_VIOLATION. I checked SQLServers event log, but no error is
logged. Even the database is restored?
This behaviour vanishes if the Restore-object is 'normal' declared.