64-bit

How to know if SSE2 is activated in opencv

[亡魂溺海] 提交于 2019-12-19 10:42:23
问题 I have a version of OpenCV 2.4.10 Library which was built for Intel X64 on Windows. How can I know if the CV_SSE2 is active? I do not have the code. I just have the libs ,DLLs and headers. Thanks 回答1: You can check if SSE2 is enabled with the function checkHardwareSupport like: #include <opencv2/opencv.hpp> #include <iostream> int main() { cv::setUseOptimized(true); // Turn on optimization (if it was disabled) // Get other build information //std::cout << cv::getBuildInformation(); // Check

Fastest way to get the TID (Thread Information Block) in a 64-bit Windows application?

点点圈 提交于 2019-12-19 10:35:11
问题 I have a very compute-intensive module in which I've added stack-tracing to be able to find specific problems. Although the application is allowed to run slower when this stack-tracing is enabled, it must not run 10 times slower. That's why I am not using the StackWalk routines from DBGHELP.DLL, but I walk the stack myself using the frame pointers (so I don't use the Frame Pointer Omission compiler option). In most cases, getting the call stack works correctly and is very fast, but in some

LVITEM for windows 64 bit

眉间皱痕 提交于 2019-12-19 10:18:55
问题 For a long time I tried to use the LVM_GETITEMW message with LVIF_TEXT mask to get the text of a ListView. My program worked in 32 bit but not in 64 bit architecture. I discovered that the problem was at the LVITEM struct. Shortly, my question is which struct is the appropriate one for 64 bit and why. The struct I used as the LVITEMW struct had the following fields: ('mask', c_uint32), ('iItem', c_int32), ('iSubItem', c_int32), ('state', c_uint32), ('stateMask', c_uint32), ('pszText', c

install 64-bit glib2 on 32-bit system for cross-compiling

孤街浪徒 提交于 2019-12-19 09:49:53
问题 I'm trying to cross-compile a 64-bit executable on a 32-bit ubuntu system. This works up until linking, where it fails due to the lack of a 64-bit glib2 (libglib-2.0.a). If I were doing this on a 64-bit system, I would use getlibs to install a 32-bit glib2 into /usr/lib32. However, on a 32-bit machine getlibs doesn't seem to do the opposite-- install a 64-bit glib2 into /usr/lib64. My quesiton is: how do I manually do what getlibs should do, that is, install a 64-bit glib2 into /usr/lib64?

Com server build using Python on 64-bit Windows 7 machine

天涯浪子 提交于 2019-12-19 09:46:37
问题 Original post is here: http://mail.python.org/pipermail/python-win32/2010-December/011011.html I am using: OS: 64 bit Windows 7 Professional Python: python-2.7.1.amd64 Python win32 extensions: pywin32-214.win-amd64-py2.7 Py2exe: py2exe-0.6.9.win64-py2.7.amd64 I am trying to build icon overlay for Windows. It has worked fine on 32 bit Windows but not working on 64 bit Windows 7. Here are the Python modules I have created for testing: test_icon_overlay.py: ( http://mail.python.org/pipermail

PyQt4 and 64-bit python

久未见 提交于 2019-12-19 09:10:06
问题 I am trying to get the 64-bit version of python up and running with a program I wrote. That program uses a gui I wrote in PyQt4. I cannot find a 64-bit version of PyQt4 and I get the following error when attempting to use the 32-bit of PyQt4 with the 64-bit version of python: S:\src>SimLauncher.py Forcing DISTUTILS_USE_SDK=1 Traceback (most recent call last): File "SimLauncher.py", line 42, in <module> from SwSim import SwSim File "SwSim.py", line 13, in <module> from PyQt4 import QtSql,QtGui

Runtime error (dll loading) with win32 applications on x64 system, while compiling 0K

江枫思渺然 提交于 2019-12-19 08:18:21
问题 I originally designed a win32 application on win7 32bits, with VC9.0. I recently upgraded to win7 64 bits, and tried to build+execute the previous application. Building runs fine (win32 application), but on runtime I get the error "[...] has exited with code -1073741701 (0xc000007b)." I guess this results of the loading of a 64bits version of an [intended] 32bits dll. Specific dependencies for this project are: SDL.lib SDLmain.lib SDL_ttf.lib opengl32.lib glu32.lib wininet.lib SDL and SDL_ttf

Runtime error (dll loading) with win32 applications on x64 system, while compiling 0K

无人久伴 提交于 2019-12-19 08:18:05
问题 I originally designed a win32 application on win7 32bits, with VC9.0. I recently upgraded to win7 64 bits, and tried to build+execute the previous application. Building runs fine (win32 application), but on runtime I get the error "[...] has exited with code -1073741701 (0xc000007b)." I guess this results of the loading of a 64bits version of an [intended] 32bits dll. Specific dependencies for this project are: SDL.lib SDLmain.lib SDL_ttf.lib opengl32.lib glu32.lib wininet.lib SDL and SDL_ttf

Why is the NTOSKRNL.exe IMAGE_MACHINETYPE header field set to x86 on only certain editions of Windows 7 x64?

萝らか妹 提交于 2019-12-19 07:49:57
问题 I am using windows 7 home premium x64. I was wondering why exactly the IMAGE_MACHINETYPE field in the header of ntoskrnl in my system32 directory specifies x86. IDA will even let me disassemble it as native x86. Yet on my windows 7 pro machine, image_machinetype is x64. Am I just missing something.. or why is ntoskrnl 32 bit on a 64 bit OS? 回答1: My guess is on x64 architecture with a BIOS boot ntoskrnl.exe's main() entry point is called before the switch to long mode (64bit). Thus it would be

64-Bit VB.NET Allocating > 2GB of RAM (.NET bug?)

别来无恙 提交于 2019-12-19 07:44:38
问题 I have a 64 bit VB.NET application and want to allocate a buffer > 2GB in size. In the following code both the "new" and the "ReDim" throw an "OverflowException." How can I allocate buffers > 2GB when these functions only accept signed 32 bit values? (Is this possible in C#?) Edit - I am running WinXP 64 with 4GB of RAM. Dim width As Long = 19005 Dim height As Long = 32768 Dim buffer() As Byte = New Byte((width * height * 4) - 1) {} Dim size As Long = (width * height * 4) - 1 ReDim buffer