I get an AccessViolationException
when I run the Google Drive API sample in Visual Studio 2012 on Windows 7 x64. My project is targeting .Net 4.5. I get the exception on line 185:
await service.Files.Delete(file.Id).ExecuteAsync();
- It happens in both Debug and Release modes, and in all platforms (x86, x64, AnyCPU).
- It does NOT happen when I run without the debugger attached ("Start without Debugging").
- It does NOT happen when I enable the "Enable native code debugging" in the Project properties.
Any ideas why enabling native code debugging might prevent the exception?
Note: running the sample requires the NuGet package (prerelease): Google.Apis.Drive.v2
EDIT: I wish Google people would chime in and tell if they've seen this as well because the sample instructions say:
- Open the GoogleApisSamples.sln with Visual Studio
- Click on Build > Rebuild Solution
- Execute the .exe in Drive.Sample\bin\Debug
which is weird since they go out of their way to execute the exe directly from the debug folder instead of just saying "Run the sample".