windows-7

WPF - Windows 7 - 64bit - No content rendered

梦想与她 提交于 2019-12-13 00:07:48
问题 Dev machine: Windows 7 64bit desktop. Visual Studio 2008 Professional. Not sure what the cause is but the behavior is this: I can develop in VS on this desktop just fine. Have done some class libraries and windows forms with no issues from what I have seen. However in WPF project I cannot get any content to render in window when I run the project. A simple hello world in wpf like this: <Window x:Class="test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

Where's the balance between thread amount and thread block times?

醉酒当歌 提交于 2019-12-12 23:57:00
问题 Elongated question: When having more blocking threads then CPU cores, where's the balance between thread amount and thread block times to maximize CPU efficiency by reducing context switch overhead? I have a wide variety of IO devices that I need to control on Windows 7, with a x64 multi-core processor: PCI devices, network devices, stuff being saved to hard drives, big chunks of data being copied,... The most common policy is: "Put a thread on it!". Several dozen threads later, this is

Having problems running WatiN on Windows 7 with IE 8

那年仲夏 提交于 2019-12-12 20:08:13
问题 When I run any WatiN test on Windows 7 with IE8(note that all tests pass on Vista with IE8), the browser displays the first page but does not go any further. The following exception is displayed after a few seconds: WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer state not complete at WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.ThrowTimeOutException(Exception lastException, String message) at WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.HandleTimeOut() at WatiN.Core

Display only an Image with Transparency in a Windows Form?

梦想的初衷 提交于 2019-12-12 19:26:34
问题 I'm trying to get a form in my Windows Forms program to be borderless, invisible, and have a PictureBox control in it. The PictureBox image is set to a PNG with an alpha channel to give it a transparent background. What I want is for the form to be completely invisible but I want the PNG with correct transparency to be visible still. This is only going to be for Windows 7 with Aero theme on so any shortcuts Areo can afford me I can use. I tried using a transparency key for the form like so:

Installing Swampy for python 3 in Windows

≯℡__Kan透↙ 提交于 2019-12-12 19:22:18
问题 I am a beginner python learner using The book 'Think Python' where I have to install module name Swampy. The link provided fro instruction and download has a tar.gz file. I found the python 3 version of the swampy with google search here. All setup tools for modules are under python 3. I am pretty lost, how do i install/use the module? Thanks 回答1: You don't have to install Python modules. Just import them. (In fact, swampy is a package, which is basically a collection of modules.) import

Can you increase max_allowed_packet from the client?

邮差的信 提交于 2019-12-12 19:18:23
问题 I need to execute a SQL dump with very large extended inserts. I'm using the official command-line tool in my computer to connect to a server in the LAN. The execution always dies: ERROR 2006 (HY000): MySQL server has gone away ... and I'm fairly sure that it's due to a tiny max_allowed_packet setting: mysql> SHOW VARIABLES LIKE 'max_allowed_packet'; +--------------------+----------+ | Variable_name | Value | +--------------------+----------+ | max_allowed_packet | 10485760 | +---------------

Error while using command prompt or shell using process_create/3 in SWI Prolog

只谈情不闲聊 提交于 2019-12-12 19:05:53
问题 On Windows 7, when I used process_create/3 in SWI Prolog to open an application like Notepad.exe, the notepad opens. However, it doesn't work for applications that use command prompt. As an example, when I tried to open the command prompt window, using: main :- process_create('C:\\WINDOWS\\system32\\cmd.exe',[] ,[]). which gives an ERROR: Process "c:\windows\system32\cmd.exe": exit status: 1 Similarly, when trying it to open powershell.exe, it doesn't work either. the console just hangs,

Launch SQL Server on Windows 7

孤者浪人 提交于 2019-12-12 18:24:53
问题 I've installed SQL Server 2005 on Windows 7. My Windows 7 installation is 64 bit, but I couldn't figure out how to get the 64 bit SQL Server so I have the 32 bit version. I installed all 4 service packs, and restarted my computer. While SQL Server Management Studio is willing to launch, I do not have the mssqlserver service, or any other service that could be SQL Server. How do I get the SQL Server service running so I can use SQL Server 2005 on my Windows 7 machine? As you can see, I have no

Can't debug ASP.NET application stored in IIS

China☆狼群 提交于 2019-12-12 18:19:06
问题 I have a question regarding IIS (version 7.5) and ASP.NET (.NET Framework 4) . I am trying to debug ASP.NET web application which is stored on IIS. Now, I have done this in past and everytime it worked perfectly. But now when I try to do same, **Visual Studio 2010** always gives me error, **"unable to start debugging on the web server. the iis worker process for the launched URL is not currently running" ...** even the application I had created in past (& stored in IIS) can't debug using

devIL causes program to be unable to start correctly

橙三吉。 提交于 2019-12-12 16:45:28
问题 I just tried to use devIL and ULIT to help me with opengl texture loading. However, whenever the program starts, I get the error: "The application was unable to start correctly (0xc000007b). Click OK to close the application." What happened? I'm using the Visual C++ 2010 RC, windows 7 64-bit. 回答1: It may happen if you attempt to run a 64-bit application, but Windows finds only the 32-bit version of some dependent DLL. You can fix this by making sure all the 64-bit dependency DLLs can be found