How can I test a Windows DLL file to determine if it is 32 bit or 64 bit?

I'd like to write a test script or program that asserts that all DLL files in a given directory are of a particular build type. I would use this as a sanity check at the end of a build process on...

Reading 64bit Registry from a 32bit application

I have a c# unit test project that is compiled for AnyCPU. Our build server is a 64bit machine, and has a 64bit SQL Express instance installed. The test project uses code similar to the following...

Understanding max JVM heap size - 32bit vs 64bit

I've read the max heap size on 32bit Windows is ~1.5GB which is due to the fact that the JVM requires contiguous memory. Can someone explain the concept of "contiguous memory" and why you only...

How can I use VBScript to determine whether I am running a 32-bit or 64-bit Windows OS?

How do i detect the bitness (32-bit vs. 64-bit) of the Windows OS in VBScript? I tried this approach but it doesn't work; I guess the (x86) is causing some problem which checking for the...

ASP.net Pages With 64 Bit Assembly in Visual Studio 2010

Short Version: I'm using a 64bit dll (system.data.sqlite) in an Asp.net MVC app in VS 2010. The application runs and debugs fine, but all the aspx and ascx pages show errors when editing in...

Missing include "bits/c++config.h" when cross compiling 64 bit program on 32 bit in Ubuntu

I am running the 32bit version of Ubuntu 10.10 and trying to cross compile to a 64 bit target. Based on my research, I have installed the g++-multilib package. The program is a very simple hello...

How to use 32-bit pointers in 64-bit application?

Our school's project only allows us to compile the c program into 64-bit application and they test our program for speed and memory usage. However, if I am able to use 32-bit pointers, then my...

Is the -mx32 GCC flag implemented (correctly)?

I am trying to build a program that communicates with a 32-bit embedded system, that runs on a Linux based x86_64 machine (host). On the host program I have a structure containing a few pointers...

Running vbscript from batch file

I just need to write a simple batch file just to run a vbscript. Both the vbscript and the batch file are in the same folder and is in the SysWOW64 directory as the vbscript can only be execute in...

Can't build 32bit Wine on 64bit linux

I'm trying to do this: https://stackoverflow.com/questions/3261909/build-32bit-on-64-bit-linux-using-a-configure-script Doesn't work for me :( Compileing wine. I found this in...

How can I determine whether a process is 32 or 64 bit?

Given a Windows process handle, how can I determine, using C++ code, whether the process is 32 bit or 64 bit?

Allocate more than 2GB on the heap using c++ on a 32bit linux kernel

This seems to be a very common problem, but still I haven't found a definite answer. I have access to a server which runs linux, has 16 GB of RAM and a 16-core (64bit) CPU (/proc/cpuinfo gives...

64 bits Seeds for random generators

I am currently running a multithreading simulation application with 8+ pipes (threads). These pipes run a very complex code that depends on a random sequence generated by a seed. The sequence is...

32 bit applications memory limit on a 64 bit OS (Windows)

The Memory limit of 32 bit applications on a 64 bit OS is 2 GB or 4 GB with /LARGEADDRESSAWARE. Source:...

Pyinstaller setting icons don't change

When I use the command: pyinstaller.exe --icon=test.ico -F --noconsole test.py All icons do not change to test.ico. Some icons remain as the pyinstaller's default icon. Why? All icon change...

Can't link shared library with -mx32 and gcc 4.7 or gcc 4.8

I'm trying to compile a large codebase written for a 32 bit embedded processor to run on a 64 bit desktop processor for simulation/unit testing. I need the resulting object to be a shared...

Loading a 32bit .so library in a 64bit JVM

We are developing a Java application to be run on Linux environments (Ubuntu for now) which communicates with a piece of hardware. Said hardware uses a .so library made available by the...

Windows Product Key - Different answers from different techniques

Following on from this question (which asks how to retrieve a Windows Product Key), there seems to be conflicting information obtained from the various methods. This question asks why is there a...

64Bit Java 8 on Windows Server 2008 uses more or less whole server CPU

We have experienced situations when moving from 32Bit (oracle 8u33) to 64Bit (oracle 8u66 also 102) periods where a single java process uses all 16 cores of the machine or >50% for longer...

howto install pygraphviz on windows 10 64bit

Has anyone succeeded in installing pygraphviz on windows 10 64bit? I tried anaconda with python 3.5 64bit & 32bit with no success. Here is the error I am getting with python 3.5 32bit on win10...

PHAssetCollection fetchAssetCollectionsWithType crashes

The following method was put on the default global queue in order to get a few photos from device. if system version is greater than iOS 8, Photos framework is used, otherwise...

Converting int/long to 64-bit binary

I'm looking for a better way to convert an int to 64 bit binary represented as String. Right now I'm converting int to 32bit binary and then adding 32 zeroes in front of it. I'm implementing SHA-1...

32bit to 64bit Declaring Functions in 64 bit office

So I had to go in and add in PtrSafe before function calls since I am now using 64bit Excel. So far doing the PtrSafe changes has worked fine except for my mod_Ping. I had to do a #If Win64 Then...

Application manifest for 64 bit applications

I have created a 64-bit Windows application, and would like to include an Application Manifest. I have compared several DLLs of other vendors, e.g. shell32.dll , and saw that they set the value...

How to fix "Can't find a default Python" error

I am using python in a windows server(64 bit) and it is installed by another user in his own directory in C:\user\userx\AppData\Local\Programs\Python\Python36 All other users (excluding me) are...

Unable to run 32-bit exe in windows containers

I'm trying to build a docker image (using mcr.microsoft.com/dotnet/framework/runtime) which executes a - 32-bit - MSi installer silently to install an app. While this had been working in the...

64 bit python is building a 32 bit COM server

import platform platform.architecture() #('64bit', 'WindowsPE') I'm running on 64 bit, specifically: Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc....

Why am I Able to load x64 assembly into AnyCPU Prefer 32 bit executable?

I am working on a tool that loads different assemblies using System.Reflection's method Assembly.Load Here is what i get On a 64bit OS, if application configured with : x64 loads x64 & AnyCPU...

PostgreSQL 13 + Python 3.7.9 + plpython3u: 'psql: server closed the connection unexepectedly.' + 'The application has lost the database connection.'

I have added all of the details I could find, with all of the links, and there is no way to get plpython3u to work on Windows in PostgreSQL 13, it seems. Better do not read through this long...

Cannot find -lgcc when building 32bit program with -m32 on an 64bit machine ( gcc, docker )

I would like to build a simple hello world C program for linux in 32 bit. I tried to do it with docker ( because the OS on my machine is not Linux ) This is the Dockerfile: FROM gcc:4.9 RUN dpkg...