windows-7-x64

AccessViolationException goes away when native code debugging is enabled

不羁的心 提交于 2019-12-12 12:09:44
问题 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

Recursion in Windows 7 64 bit

心不动则不痛 提交于 2019-12-12 09:15:37
问题 I have this helper class public static class DateTimeHelper { public static int GetMonthDiffrence(DateTime date1, DateTime date2) { if (date1 > date2) { return getmonthdiffrence(date2, date1); } else { return ((date2.year - date1.year) * 12) + (date2.month - date1.month); } } } The function calculate the number of months between two dates, it do exactly what I want. So far there is no problem. The problem is when I am on release and windows 7 64 bit I get always the same value "0" When I got

CMake not linking Python

▼魔方 西西 提交于 2019-12-12 09:04:55
问题 Sorry if I'm duplicating a question, but I just cannot find the solution to what I'm looking for anywhere on the internet, yet I believe that this is a very simple problem. I'm trying to extend python with some custom C++ libraries, and building my C++ libraries with CMake. I'm following the instructions on https://docs.python.org/2/extending/extending.html, but it's not compiling correctly. When I try to build it, I get these messages: "C:\Program Files (x86)\JetBrains\CLion 140.2310.6\bin

updating node.js in windows 7 64 bit

谁说胖子不能爱 提交于 2019-12-12 07:44:54
问题 How to update node.js in Windows 7 64-bit OS? I tried the famous : npm cache clean -f npm install -g n n stable But in npm install -g n it failed giving the following error: C:\Windows\system32>npm install -g n npm http GET https://registry.npmjs.org/n npm http 304 https://registry.npmjs.org/n npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: n@1.2 .9 npm ERR! notsup Valid OS: !win32 npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS

“Self-Recursive” AppData folder causing RoboCopy to freak out

社会主义新天地 提交于 2019-12-12 05:20:06
问题 I use RoboCopy to perform a daily backup script using Windows batch. about a week ago I noticed that RoboCopy detects one path as "too long" see att. image Obviously, this folder path does not exist. But for some reason I have an "Application Data" system folder inside my AppData\Local , which is a shortcut to itself (i.e the AppData\Local path). This seems to be what is causing RoboCopy to interpret a folder path as AppData\Local\Application Data\Application Data\Application Data\Application

Write XML string directly to XML file with VBScript

ⅰ亾dé卋堺 提交于 2019-12-12 04:15:22
问题 My OS is Windows 7 64Bit. I need to write the following XML string along with interpreted dynamic content to an XML file (also maintaining the tabs indentation) by using VBScript: File Name: [Variable1]_[Variable2].xml <?xml version="1.0"?> <config> <modules> <[Variable1]_[Variable2]> <active>true</active> <codePool>[Variable3]</codePool> <version>[Variable4]</version> </[Variable1]_[Variable2]> </modules> </config> All I could try for that is below script to create various tags and elements

What do I pass as the last value to the function SetupAPI.DLL.SetupDiEnumDeviceInterfaces()?

谁说我不能喝 提交于 2019-12-12 03:56:40
问题 I'm working in Python trying to create a simple program that reads and write from and to a fairly simple USB device. The problem I'm having is that since PyWinUSB and PyUSB don't seem to have what I need (trying to write to the device makes things explode), I have to work from scratch using the ctypes python module and the raw dll functions in WinUSB and SetupAPI. I've been able to get my question answered about how to define the structure that I'm passing to the function, but the problem

how to stop running programs on windows 7 with batch commands

你。 提交于 2019-12-12 03:56:00
问题 Can any body tell me how to stop (few) selected running program/software using batch file (.bat) in windows 7 64bit? My requirement is simple : I've set utorrent and few download manager program to run on windows startup. usually I need it in that way... but sometimes I need to stop all those download managers along with utorrent in order to gain internet browsing speed. Now I have to close all those programs manually one by one...!!! I want to make it easy.... if I can use some commands to

NDIS 6.x ethernet bridge driver

南笙酒味 提交于 2019-12-12 03:52:11
问题 I was wondering what would be the best choice and way to build an ethernet bridge using NDIS 6.x. Where should I start and which one should I use for this, Miniport, IM, protocol or filter driver? Tried to customize the protocol driver sample available in WDK and successfully got attached to the ethernet adapters. What next? Any help is much appreciated. Using Windows 7x64 回答1: Let's look at the NDIS driver types that are available: miniports, lightweight filters, and protocols. An NDIS

SignalR fails on IIS

泪湿孤枕 提交于 2019-12-12 01:13:01
问题 SignalR has a nice example for using a Persistent Connection which works just fine when I use IIS Express. It fails when I use the same on the regular IIS that is installed on my Windows 7 system. And it fails silently too, except for the Chrome console telling me: "Failed to load resource: the server responded with a status of 404 (Not Found) ". It is looking for http*:*//localhost:80/echo/negotiate?_=1371821713975 which it can't find for whatever reason. And to make it even more complex: