64-bit

Loading an Assembly fails because of incorrect format

↘锁芯ラ 提交于 2020-01-02 05:41:13
问题 I develop on a pretty big windows forms .net (C#) application with several assemblys. Originally each assembly was build for the Target Platfom "Any CPU". Due to a problem with Crystal Reports on x64 machines we had to build the whole project for x86 target platform. I startet rebuilding some of our Projects for x86 and it worked just fine. But with one I have the problem that when I try to use it as a reference in another Assembly, the other one won't load it giving following Error: Could

Do 32 bit programs run relatively slower on 64 bit OS against when they are natively run in 32 bit OS

非 Y 不嫁゛ 提交于 2020-01-02 05:34:14
问题 I was reading about WOW 64 here http://en.wikipedia.org/wiki/WOW64 and learnt that its a layer in 64 bit Windows OS to run 32 bit programs. So can I assume that 32 bit programs run relatively slower on 64 bit OS against when they are natively run in 32 bit OS. I can see the advantages of memory access of over 4 GB in 64 bit OS. But does this advantage necessarily offset the small overhead added by layer of WOW64 ? Are there any other advantages of 64 bit which offset this. 回答1: The main

Using RIP-relative addressing in OSX x64 assembly

南楼画角 提交于 2020-01-02 05:18:10
问题 I was trying to make a basic printf example in x86-64 assembly code for OSX, here's my first version: section .data msg db 'hello', 0Ah section .text extern _printf global _main _main: sub rsp, 8 mov rdi, msg mov rax, 0 call _printf add rsp, 8 ret So this code is moving the absolute address of msg into rdi for the first argument to _printf , and gcc then complains about the lack of position-independent code. The binary still works though: → nasm -f macho64 new.asm && gcc -m64 -o new new.o &&

iOS 8 number conversion/formatting error? (cannot reproduce)

余生长醉 提交于 2020-01-02 05:02:07
问题 The following method takes input from a UITextField and formats it for display. This code has worked flawlessly for years, but a problem was just reported on the iPhone 6 Plus using iOS 8.1. It happens every time for the user but I have not been able to reproduce it. I believe it has to do with NSNumber/NSDecimalNumber conversions and formatting on iOS 8, perhaps for a 64-bit app/device. The keyboard used for input is a number pad, so the only text that can be entered into the textfield are

Java programing for 64 bit JVM

不想你离开。 提交于 2020-01-02 04:40:13
问题 Few Questions :): How to identify what JVM is currently installed ? (64 bit / 32 bit) Do I need to do some considerations while programming for 64 bit JVM target Platform ? Can my Java code work on 32 bit as well as 64 bit JVM ? How to run my Java App on 64 bit JVM ? How to identify what JVM is being used for my Java App ? 回答1: Normally a 64 bit jvm will identify itself as such. 32/64 bit Considerations I have seen: address space - if you're not expecting to address more that 1.3Gb of memory

Silent exception,

冷暖自知 提交于 2020-01-02 03:43:07
问题 I've encountered this weird issue of silent exceptions in 64 bit. What is that cause this bahavior? I would like to understand why does this occur and what is the recommended solution? disappearing OnLoad exception microsoft - silent exception KB976038 on the main: try { Application.Run(new Form1()); } catch (Exception ex) { MessageBox.Show("Error"); } private void Form1_Load(object sender, EventArgs e) { throw new Exception("oh no!"); } 回答1: In order to load a form, your code will call into

Find out the “Bit”ness of the current OS in MSBuild

走远了吗. 提交于 2020-01-02 03:39:13
问题 I have a build script that needs to hard code a path to an executable. The path is: C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\cabwiz.exe This has worked fine, but now I am running on a 64 bit OS (but my coworker and build server are on 32 bit still). I need the path to be this for me: C:\Program Files (x86) \Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\cabwiz.exe But use the normal path for the others. Here is how I set it up: <PropertyGroup> <CabWiz>"C:

64bit int Spin Box in QT

岁酱吖の 提交于 2020-01-02 03:30:31
问题 I'm building a windows program which shall have controls for 64bit numeric values. these controls shall be switchable to be signed or unsigned. I found two controls: "Spin Box"(int32) and "Double Spin Box"(double) with double I'd be able to cover the range but it can't handle the precision. Is there a way to change the data type of these controls? Is it possible to create an own control which can handle signed and unsigned 64bit values? Is it possible to create a 128bit Spin box? The only

Eclipse 32 bits running on 64 bits JVM

二次信任 提交于 2020-01-02 02:24:06
问题 After many investigations I can't find a clear answer to the following question: Can Eclipse 32 bits version runs on a 64 bits JVM (of course on a 64 bits windows) ? I guess the answer should be "NO" but I never worked with 64 bits systems and will be interested to "learn more" of how it work. Thanks in advance, Manu 回答1: No, that's not possible, because Eclipse's SWT GUI toolkit depends on native libraries (which is the reason there are separate 32 and 64bit version of eclipse in the first

How or why is MSBuild choosing the x64 platform when I don't specify it instead of AnyCPU?

扶醉桌前 提交于 2020-01-02 00:50:09
问题 I'm running msbuild.exe via Rake from a regular PowerShell console. This is the command as printed from a diagnostic level run "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" "D:/Projects/machine.specifications/Source/Machine.Specifications/Machine.Specifications.csproj31881140" /maxcpucount /target:Build /verbosity:diagnostic /property:Configuration=Debug /property:TrackFileAccess=false /property:BuildInParallel=false /property:BuildRunner=Rake And the build is failing because