64-bit

Reason for ENOMEM failure to create threads?

核能气质少年 提交于 2020-01-04 06:08:07
问题 I have an application that is using pthread_create() and pthread_detach() in the main thread and later pthread_exit() in the child thread. After around 54 pthread_create() calls that have each been paired with a subsequent pthread_detach() and then pthread_exit() the pthread_create() fails. It is ENOMEM failure "Out of memory". What might cause pthread_exit() to not be freeing up the memory of the old threads and causing my application to leak memory and eventually run out? This is running on

VB6 application on a 64bit machine

醉酒当歌 提交于 2020-01-04 05:49:06
问题 I'm maintaining an old VB6 application, that uses some Sheridan 3D controls (SSPanel and SSTab, found in threed32.ocx and tabctl32.ocx). Will this application work on a 64-bit machine (I guess the 32 in threed32 comes from the bit number?) If not, what can I do to make it work? 回答1: It should run fine via WoW. EDIT: Since you've clarified that it's a 16-bit application 1 , if it's a LOB application that absolutely must run then you could try Windows XP Mode for Windows 7 and later. If you've

Read 64 bit integer string from file

亡梦爱人 提交于 2020-01-04 05:06:15
问题 We have a file that has a 64 bit integer as a string in it. How do we scanf() or otherwise parse this numeric string into an unsigned 64 bit integer type in C++ ? We are aware of things like %lld etc., but a lot of ways to do this parse seem to break compiles under different compilers and stdlibs. The code should compile under gcc and the Microsoft C++ compiler (of course full compliance with standards would be a plus) 回答1: GCC has long long, as will compilers for C++0x. MSVC++ doesn't (yet),

Which VC++ runtime version do I choose - static or dynamic?

家住魔仙堡 提交于 2020-01-04 05:05:00
问题 I'm developing a 64-bit in-proc VC++ ATL COM server that basically just redirects all calls to an out-proc COM server. So my COM server basically does nothing. Initially it used the C++ runtime in a DLL ( /MD compiler switch). I've noticed that when I deploy it on a clean 64-bit Win2k3 regsvr32 fails with an error: LoadLibrary({fileName}) failed – This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Google

Add or Subtract From 64bit Integer in Javascript

故事扮演 提交于 2020-01-04 02:53:28
问题 Is there a simple way (hoping for a small function, not a library) to add or subtract from a 64bit integer in JavaScript? Example 64bit int: 291270990346989568 Background: I am working with the Twitter API which has 64bit tweet ID's. I'd like to add or subtract one from those IDs to manipulate what results I get back from Twitter. 回答1: The following code does what you've described. Splitting, adding or subtracting, then re-joining... This code has both increment and decrement functions, and a

Can we connect a 32 bit Oracle server from a 64 bit client and vice a versa?

房东的猫 提交于 2020-01-03 16:54:45
问题 Is it possible to connect a 32 bit Oracle server from a 64 bit client? What about the opposite case? 回答1: Yes you can do that, there's no limitation regarding that (64-bit, 32-bit). Reference: Oracle 207303.1 (original link, requires login) 来源: https://stackoverflow.com/questions/8813248/can-we-connect-a-32-bit-oracle-server-from-a-64-bit-client-and-vice-a-versa

Using cmake with nmake x64

自闭症网瘾萝莉.ら 提交于 2020-01-03 16:48:56
问题 I use cmake to generate a NMake file, everything goes fine. I use the x64 toolsets (without Visual Studio, only the SDK), so I type nmake, but it generate a x86 build and not a x64 build. Do you know why ? and how to force nmake to target x64 ? Thanks 回答1: Just to share, use the following to force the x64 platform. Use this command prompt command. VsDevCmd.bat -host_arch=amd64 -arch=amd64 Both -host_arch and -arch are mandatory ! 来源: https://stackoverflow.com/questions/48661598/using-cmake

Using cmake with nmake x64

和自甴很熟 提交于 2020-01-03 16:48:26
问题 I use cmake to generate a NMake file, everything goes fine. I use the x64 toolsets (without Visual Studio, only the SDK), so I type nmake, but it generate a x86 build and not a x64 build. Do you know why ? and how to force nmake to target x64 ? Thanks 回答1: Just to share, use the following to force the x64 platform. Use this command prompt command. VsDevCmd.bat -host_arch=amd64 -arch=amd64 Both -host_arch and -arch are mandatory ! 来源: https://stackoverflow.com/questions/48661598/using-cmake

x64 .NET compilation / Process Explorer oddity

谁说胖子不能爱 提交于 2020-01-03 14:43:29
问题 Apologies if any of what I'm about to say makes no sense or overlooks something obvious - my knowledge of CLR internals is spotty. If I understand correctly, then if I just build a solution for 'AnyCPU' in VS2K5 (or point MSBuild at that .sln file with those settings) then the binaries only compile as far as MSIL. They then get JITted to 32-bit if executed on a 32-bit platform or 64-bit code if executed on x64...right? The DLLs are used for a web app and hosted in the W3WP.exe process.

NetBeans Development 7 - Windows 7 64-bit … JNI native calls … a how to guide

感情迁移 提交于 2020-01-03 11:57:29
问题 I provide this for you to hopefully save you some time and pain. As part of my experience in getting to know NB Development v7 on my Windows 64-bit workstation I found another frustrating adventure in trying to get the JNI (Java Native Interface) abilities up and working in my project. As such, I am including a brief summary of steps required (as all the documentation I found was completely incorrect for these versions of Windows and NetBeans on how to do JNI). It took a couple of days of