Questions tagged [win64]

all versions of the Windows operating system that run on 64-bit architecture

This tag covers all general programming issues for software running on Windows 64-bit operating systems (XP, 2003, Vista, etc.).

For programming questions about 64-bit architecture that are platform and operating system independent (in other words, for Linux, Mac, Windows, etc.), simply use the tag.

Check serverfault.com or superuser.com for general questions on the 64-bit architecture and its hardware.

See Microsoft's Programming Guide for 64-bit Windows for more information on programming for Windows 64-bit architecture.

222 questions
11
votes
2 answers

TRTTIContext multi-thread issue

Everything I've read indicates that TRTTIContext is thread-safe. However, TRTTIContext.FindType seems to fail (returns nil) occasionally when multithreading. Using a TCriticalSection around it fixes the issue. Note that I'm using XE6, and the…
Griffyn
  • 173
  • 1
  • 11
10
votes
2 answers

64bit vc++ program seems to run under 32bit mode

I created a 64bit c++ project in Visual Studio 2010 (under Windows 7 64bit); I thought I was running a 64bit application, and the following code returned true: bool is64bit = (sizeof(void*)==8); but if I called the function IsWow64Process, it…
A.Y.N.
  • 153
  • 1
  • 5
10
votes
7 answers

How to use "GS:" in 64-bit Windows Assembly (eg, porting TLS code)

How can an user-space program configure "GS:" under 64-bit Windows (currently XP-64)? (By configure, set GS:0 at an arbitrary 64-bit linear address). I am trying to port a "JIT" environment to X86-64 that was originally developed for Win32. One…
caffiend
  • 2,034
  • 2
  • 13
  • 15
9
votes
3 answers

Porting Delphi code to 64 bit - Why no compiler warnings?

We have a large Delphi XE codebase we want to port to 64 bit. I own a Delphi XE2 licence and I cannot find any warning nor hint that can help me to detect valid 32 bit constructions that can now lead to data loss under a 64 bit platform. For…
Adrien Reboisson
  • 631
  • 6
  • 15
9
votes
4 answers

AsyncPro and 64bit

I am running Delphi XE8 and have the GetIt AsyncPro for VCL 1.0 installed. It works fine when I compile my application for 32 bit but fails for 64 bit. The failure is: [dcc64 Error] OoMisc.pas(2771): E2065 Unsatisfied forward or external…
Seti Net
  • 693
  • 1
  • 7
  • 24
8
votes
2 answers

How to compile existing posix code for 64-bit Windows?

I'm ok with using Cygwin or MinGW, but I need to end up with 64-bit code, not 32-bit. This is because I will be calling the DLL from 64-bit managed C#. I can't seem to find and good references for setting up those tools to create 64-bit binaries. …
Fantius
  • 3,806
  • 5
  • 32
  • 49
8
votes
1 answer

Delphi 64 bit debugging using runtime libs has wrong stack frame active

I ran into a Win64 debugging problem where it looks like we are "missing" debug info. So I did some research and re-created all my .dproj files for our flagship product. This helped, as I got my "missing" blue balls back. But now I run into a new…
H.Hasenack
  • 1,094
  • 8
  • 27
8
votes
1 answer

Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored?

Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? In Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an…
Aaron Wallack
8
votes
1 answer

How can disable redirection on win64

I want to copy c:\Windows\regedit.exe to same directory with regedit2.exe name But when I try to copy it,I take an error which say regedit.exe file not found" or sometimes copy it to under windows\SysWOW64 directory. And actually I knıow win64 is…
happy
  • 83
  • 1
  • 3
7
votes
2 answers

In the Win64 ABI, can the reserved argument stack space be used for general purpose storage?

I'm learning x64 assembly on Windows for 'fun'. The MSDN documentation for the x64 calling convention on Windows says: The caller is responsible for allocating space for parameters to the callee, and must always allocate sufficient space for the 4…
Trillian
  • 6,207
  • 1
  • 26
  • 36
7
votes
5 answers

Heat.exe Cannot Harvest TypeLib Info from a 64-bit COM DLL

I have a 64-bit-only COM DLL that I want to harvest typelib info from, using heat.exe. But when I attempt to do that, I get the error 193 (bad executable format). Is heat.exe 32-bit only, and cannot work with 64-bit executables? I found only one…
Max
  • 170
  • 1
  • 10
7
votes
5 answers

Using ImageList from VB6 application causes crash on Windows 7.0 64-bit

I have an old VB6 application that uses an ImageList control from COMCTL32.OCX ("Microsoft Windows Common Controls 5.0 (SP2)") to provide icons for TreeViews and ListViews. The app won't even launch on Windows 7.0 64 bit. The minute it tries to load…
Joel Spolsky
  • 33,372
  • 17
  • 89
  • 105
6
votes
1 answer

Tomcat on Windows x64 using 32-bit JDK

Hoping someone can help. The rub: I can't get Tomcat 5.5 to start as a windows service on 64-bit windows using a 32-bit JDK. the details: I've been running Tomcat 5.5 on Windows Server 2008 (x64) as a service for some time using a 64-bit JDK. I'm…
Erik
  • 997
  • 4
  • 14
  • 24
6
votes
2 answers

WinDbg, with minidump from native 32-bit app crashing on 64-bit Windows, won't load symbols for system DLLs

I've got a minidump file from a crash in one of our apps. It's a 32-bit native app, and it was running on 64-bit Windows. If I load the minidump file into WinDbg, WinDbg won't load the symbols for the system DLLs. I've got my symbol paths configured…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
6
votes
1 answer

how to fix the error c2118: negative subscript

Again, porting 32-bit app to 64-bit. I get the negative subscript error on the C_ASSERT statement mentioned below.. C_ASSERT (sizeof(somestruct) == some#define); I also read the http://support.microsoft.com/kb/68475 article but not sure if I know…
Gentoo
  • 347
  • 2
  • 8
  • 16
1
2
3
14 15