64bit

Detecting 32 vs. 64-bit Intel CPU on Mac using Autoconf

I am developing an Autoconf script for a project which should run on Linux and Mac, 32- and 64-bit. On Linux, detecting 64-bit is easy: you get x86_64 instead of i386 for build_cpu. I can't figure out how to do it for the Mac: both 32- and 64-bit machines give i386 for the build_cpu. Is there a way to detect the difference using Autoconf...

64bit Thread Overhead

What's the overhead of a thread on 64bit windows? I believe it was 1mb of userspace for the stack and a smaller amount of kernel space in 32bit. Thanks ...

Gdiplus 64bit colors

I am creating a 64bit bitmap and wrapping it using Graphics object to draw over it. Problem is Gdiplus Color class is only 32bit(each component is byte only i.e.max 255) so how can I draw over a 64bit image using gdiplus? e.g. Bitmap bmp(100, 100, PixelFormat64bppARGB); Graphics g(&bmp); //how do I draw a red line now, if i use Color(2...

Subversion with 32 bit server and 32/64 bit clients

Good morning; my google-fu seems to be lacking today. I've just been upgraded to a Vista64 machine, and we only now have a 32 bit subversion server. I assume there is no problem using 64bit tortoisesvn with the 32 bit server ? Thanks. Max. (Edit) Thank you all. ...

How to determine if the executing program was compiled for 64 bit?

Hi I need for my program to determine if it was compiled for 32 bit windows or 64 bit/any CPU. I need to choose a different COM server flag depending on the compilation options. Any ideas? ...

Reliable CPU profiler for .NET 3.5 under Win64 with command line support?

I am looking for a CPU profiler for .NET supporting heavily threaded apps. (double) quad-core CPUs. sampling profiling. 64 bits OS. command-line API. Currently, I am getting trouble with most .NET profilers, in particular, YourKit does not seem to support command-line. dotTrace 3.1 is crashing with 64 bits OS. I haven't tried In...

How to write a std::bitset template that works on 32 and 64-bit

Consider the following code template<unsigned int N> void foo(std::bitset<N> bs) { /* whatever */ } int main() { bitset<8> bar; foo(bar); return 0; } g++ complains about this on 64 bit because the <8> gets interpreted as an unsigned long int, which doesn't exactly match the template. If I change the template to say unsign...

sizeof(int) on x64?

When I do sizeof(int) in my C#.NET project I get a return value of 4. I set the project type to x64, so why does it say 4 instead of 8? Is this because I'm running managed code? ...

HARDWARE\\RESOURCEMAP\\System Resources\\Physical Memory\\.Translated?

How can I properly read the .Translated key properly for both x64 and x86 pc's? ...

64/32 bit standard driver translation in Windows

The question is basically a follow up to this thread: http://stackoverflow.com/questions/602587/using-a-64-bit-driver-in-a-32-bit-program-windows As I learned when I have a 64 bit driver, which is used over a set of 64 bit DLLs I cannot have a 32 bit process calling the DLLs. We now use some funny interpocess communication to workaround...

How to identify a 64 Bit build on Linux using the preprocessor?

Hi. I am about to port a Windows 32 Bit application to 64 Bit, but might decide to port the whole thing to Linux later. The code contains sections which are dependent on the amount of memory available to the application (which depends on whether I'm creating a 32 or 64 Bit build), while the ability to compile a 32 Bit version of the co...

Can you compile 32-bit Apache DSOs (Oracle HTTP Server) on a 64-bit machine?

I've migrated an Oracle database and Oracle HTTP server install from a 32-bit machine to a 64-bit machine - both machines running Linux. Oracle Database is 64-bit, but the (Apache) HTTP server is 32-bit. I use some non-Oracle DSOs (mod_ntlm for one) but whenever I run the standard "make install" type thing I end up with a 64-bit module....

What's the difference between calling CComModule.RegisterServer, _AtlComModule.RegisterServer, and LoadTypeLibEx for TypeLib registration?

In my DllRegisterServer method of my COM dll, I previously had code that called LoadTypeLibEx(module, REGKIND_REGISTER, &pTypeLib) to register my COM classes and their corresponding TypeLib's. My COM DLL is a 64-bit. I've noticed that on my 64-bit Vista system, under HKCR:\\TypeLib\{myguid}\1.0\0 I find a win32 subkey with the location t...

Cannot Use Microsoft Chart Control on a 64 bit Operating System

I am having issues running the chart control on our 64 bit machine. I get the following error... Could not load file or assembly 'AspnetChart' or one of its dependencies. An attempt was made to load a program with an incorrect format. The machine I am running this on is a Windows Server 2003 Enterprise x64 Edition SP2 Intel(R) Xeon...

Running 32-bit ASP.NEt 3.5 apps in Windows 2003 64-bit

I've managed to get my 32-bit apps working on IIS in Windows Server 2003 64-bit, but I'm wondering if I will encounter any other issues doing so. Any ideas? ...

.net 2.0 application in 64 bit processor ??

Hi, We are going to write a C# 2.0 (VS2005) application targetting 64-bit server. I found this link by ms http://support.microsoft.com/kb/912891#appliesto "When you run a 64-bit application that was built by using the .NET Framework, you may notice that the application uses more memory than a similar 32-bit application" I just want...

64 bit smpp library for .net

I'm currently using the devshock smpp library. unfortunatly it only appears to be available in 32 bit binaries. Does anyone know if they do a 64 bit version or if there is anywhere that does a decent 64-bit smpp library?? ...

Can someone explain my Windows/SQL Server memory usage

I'm running Windows Server 2003 x64 with 8GB RAM and SQL Server 2005 64 bit. I have SQL set to use loads of memory, but the SQL process only ever takes under 100 MB RAM. Is this normal? It is accessing data with indexes many GBs in size. Moreover, no process is taking over 100MB, yet there is only a minimal (<100MB) amount ofree memory....

What’s the best way to import an Excel-file to SQL Server on a 64 bit Windows platform in ASP.NET?

What's the best/smoothest solution to import an Excel-file to SQL Server, on a 64 bit Windows system? What I'm specifically after is to import an Excel 97-2003 file, to a SQL 2005 database, from an ASP.NET/C# page. The import data will demand users to use a "template", so the data looks the same every time. Previously the system has us...

Running 32bit .NET application in 64bit OS, is it really bad?

I understand that we can compile a .NET Application by targeting AnyCPU which will cause to run 32bit in a 32bit OS and 64bit in a 64bit OS. However there was a reported bug* on a 64bit OS that my app was giving an error and the solutions for that, I need to target x86. Now my question: Is it really bad to target x86 even though when y...