64-bit

64 bit function returns 32 bit pointer

雨燕双飞 提交于 2019-12-21 09:18:17
问题 This function is buried in a complex nest so actually finding the cause is probably beyond anything I can ask, but I'm wondering if anyone might be able to give some tips on how I might go about debugging this. Here is the gist of the code I'm having trouble with //func1.c somestruct* func1(somestruct* mystruct) { printf("func1: %p, %i\n", mystruct, mystruct->foo); return mystruct; } //func2.c somestruct* func1(somestruct* mystruct); void func2() { somestruct *mystruct = malloc(sizeof

How do I install PyOpenSSL on Windows 7 64-bit?

不羁岁月 提交于 2019-12-21 07:13:28
问题 To get Scrapy working on HTTPS, I need PyOpenSSL, but I can't seem to get this to work. So, is there a 64-bit version available? I don't see one... I have installed the 32-bit version but... I currently get this error back from Scrapy: ERROR: Error downloading <https://SOME_PRIVATE_URL_HERE>: [Failure instance: Traceback: <class 'scrapy.exceptions.NotSupported'>: HTTPS not supported: install pyopenssl library Does anyone have a clue how to obtain or compile a 64-bit version? Or is that

Would making plain int 64-bit break a lot of reasonable code?

狂风中的少年 提交于 2019-12-21 07:07:12
问题 Until recently, I'd considered the decision by most systems implementors/vendors to keep plain int 32-bit even on 64-bit machines a sort of expedient wart. With modern C99 fixed-size types ( int32_t and uint32_t , etc.) the need for there to be a standard integer type of each size 8, 16, 32, and 64 mostly disappears, and it seems like int could just as well be made 64-bit. However, the biggest real consequence of the size of plain int in C comes from the fact that C essentially does not have

Buffer overflows on 64 bit

試著忘記壹切 提交于 2019-12-21 05:31:59
问题 I am trying to do some experiments with buffer overflows for fun. I was reading on this forum on the topic, and tried to write my own little code. So what I did is a small "C" program, which takes character argument and runs until segmentation fault. So I supply arguments until I get a message that I overwrote the return address with "A" which is 41. My buffer character length, in which I copy my input strings is [5]. Here is what I did in gdb. run $(perl -e 'print "A"x32 ; ') Program

Weird ASP.NET AJAX Bug / 32-bit to 64-bit

只谈情不闲聊 提交于 2019-12-21 05:25:21
问题 I'm getting a weird error from my sites ever since upgrading to Windows 2008 64-bit. I have most of my app pools running in 64-bit mode (all but one, used for a legacy ASP.NET 1.1 application). On the sites that are running on 64-bit, I've been getting errors from ASP.NET AJAX. Exception information: Exception type: System.NotSupportedException Exception message: Assembly "AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" does not contain a script

Is there an 8-bit atomic CAS (cmpxchg) intrinsic for X64 in Visual C++?

Deadly 提交于 2019-12-21 04:49:28
问题 The following code is possible in 32-bit Visual Studio C++. Is there a 64-bit equivalent using intrinsics since inline ASM isn't supported in the 64-bit version of Visual Studio C++? FORCEINLINE bool bAtomicCAS8(volatile UINT8 *dest, UINT8 oldval, UINT8 newval) { bool result=false; __asm { mov al,oldval mov edx,dest mov cl,newval lock cmpxchg byte ptr [edx],cl setz result } return(result); } The following instrinsics compile under Visual Studio C++ _InterlockedCompareExchange16

phpredis on windows 7 64bit xampp

寵の児 提交于 2019-12-21 03:39:18
问题 I'm trying to make Redis work on my windows machine for development purposes. I already made Redis up and running on my Ubuntu 10.04 server with phpredis client. At the moment on my windows machine i can start Redis server, because it requires no installation and it is good enaugh for development, but I can't figure out how to install phpredis. It seems very confusing, I already spend two days working on this and no result. I have cloned source files with Git, but i did that using Git Bash,

C#: Access 32-bit/64-bit DLL depending on platform

筅森魡賤 提交于 2019-12-21 02:33:13
问题 we use a self-written 32bit C++ DLL from our C# applications. Now we've noticed that when the C# applications are run on a 64bit system, the 64bit runtime is automatically used and of course the 32bit DLL can not be accessed from the 64bit runtime. My question is: is there a way of using the 32bit DLL? If not, if I created a 64bit version of the DLL, would it be easily possible to let the application choose which one to P/Invoke to? I'm thinking of creating two helper classes in C#: One that

LoadLibrary 193

跟風遠走 提交于 2019-12-21 02:13:08
问题 I am creating a C++/CLI dll that will be loaded into a legacy c++ application. The legacy application does this with a traditional call to LoadLibrary. Both the application and the C++/CLI dll are compiled in 64 bit mode. When the LoadLibrary call happens, it fails with error 193. This usually means that some non-64bit component is trying to load. When I look at the dll load output in visual studio 2010, I see the the failure is occurring when mscoree.dll is being loaded (to be exact, I see

If I compile a VB6 app on win7, ADODB.Connection errors with “Class does not support Automation or does not support expected interface”

老子叫甜甜 提交于 2019-12-20 17:27:07
问题 I compiled some VB6 code on my Win7 x64 machine and the result .exe will not run correctly on any other machine. VB6 code is just a new template .exe file with one button, a reference to "Microsoft ActiveX Data Objects 2.6 Library" and the following code in the button press event: Dim db Set db = New ADODB.Connection It runs correctly on my machine, but no others (even other Win7 x64 machines) (Update: I found TWO other users where it runs and one of them is Jeff Atwood!, but most machines