Questions tagged [msvcrt]

MSVCRT is the Microsoft Visual C++ Runtime.

MSVCRT is the Microsoft Visual C++ Runtime. It is included in Microsoft Visual C++ Redistributable Package.

KB 2977003 lists supported Visual C++ runtime downloads from Visual C++ 2005 to 2015.

Visit C Run-Time Library Reference on MSDN to get more information.

483 questions
2
votes
2 answers

How to find the dll which causes a memory leak and not directly referenced by application

I am writing a WPF application which uses a number of unmanaged DLL's. Something in the program is causing memory leak and I monitored the application using Redgate ANTS 8 Memory Profiler. ANTS shows that the memory usage of MSVCR110.dll is…
Yusuf Tarık Günaydın
  • 3,016
  • 2
  • 27
  • 41
2
votes
0 answers

what are the differences among the ways to access msvcrt in python on windows?

on windows, what is the difference among the following? import msvcrt as x vs x = ctypes.cdll.msvcrt vs x = ctypes.CDLL(find_library('c')) vs x = ctypes.CDLL(ctypes.util.find_msvcrt()) i believe the doc say the last two are equivalent. but the…
user1441998
  • 459
  • 4
  • 14
2
votes
2 answers

MSVCRT system function return code is always -1

What can cause MSVCRT system() function to always return -1 error code, even if the application is executed and exited successfully and returning 0 as its exit code? Ive made tests with TDM-GCC-4.9.2 and FASM that only calls system() and printing…
grable
  • 21
  • 3
2
votes
0 answers

std::atomic fetch_and() and fetch_or() realization

C++11 doc defines std::atomic::fetch_or() and std::atomic::fetch_and() only for Integral types. In this way, MSVC++ 2012 std::atomic is not implements this functions. Does anyone know why? I found only this solution. Implement specialization…
23W
  • 1,413
  • 18
  • 37
2
votes
1 answer

std::atomic<> operator++ in MSVC

From the MSDN: Ty atomic::operator++(int) volatile _NOEXCEPT; Ty atomic::operator++(int) _NOEXCEPT; Ty atomic::operator++() volatile _NOEXCEPT; Ty atomic::operator++() _NOEXCEPT; The first two operators return the incremented…
23W
  • 1,413
  • 18
  • 37
2
votes
2 answers

C++ double division by 0.0 versus DBL_MIN

When finding the inverse square root of a double, is it better to clamp invalid non-positive inputs at 0.0 or MIN_DBL? (In my example below double b may end up being negative due to floating point rounding errors and because the laws of physics are…
Leftium
  • 16,497
  • 6
  • 64
  • 99
2
votes
2 answers

Memory leak detected in a very simple program. What to do?

I had a memory leak in my big program, detected by the Visual Studio CRT debug system. I reduced my program to the following, with still shows a memory leak. #include "stdafx.h" #include "crtdbg.h" int main() { int tmp =…
anatolyg
  • 26,506
  • 9
  • 60
  • 134
2
votes
2 answers

Time issue in Python

My program is working with input() from user. I want to print "hey,are you there?" when the user hasn't written anything in 5 seconds. For example, the user writes something, and stops typing. If the user waits more than 5 seconds, then I want to…
GLHF
  • 3,835
  • 10
  • 38
  • 83
2
votes
0 answers

The program can't start because msvcr90.dll is missing

I have using 'PythonWin' build 218 for 64 bit Windows 7 and using 'Python 2.7.8' When i run my application i get this MSVCR90.dll missing error. When I run dependency tool on my exe I see that Python 27.dll can find MSVCR90.dll that it needs from…
coolshashi
  • 420
  • 1
  • 6
  • 19
2
votes
1 answer

How to avoid problems with multiple CRT versions on Windows (dll hell revisited?)

I appreciate that similar questions have been asked before - but reading them none of them quite address our issue so thought I'd ask for any insight. [TL;DR] Version: Is it possible / easy to create a shim dll for VS2005 CRT which then delegates…
Alex Perry
  • 335
  • 3
  • 9
2
votes
1 answer

How can I find out which library is including libcmt?

I'm trying to link a Windows executable that depends on a several static libraries (some of which I have built, some of which I have not). When I do the link, I get a flock of errors like: LIBCMT.lib(mlock.obj) : error LNK2005: _unlock already…
Betty Crokker
  • 3,001
  • 6
  • 34
  • 68
2
votes
1 answer

Upgrade to VS2012 resulting in crash due to different VC++ runtimes?

There is a large legacy project I have to maintain, which I recently upgraded from Visual Studio 2008 to Visual Studio 2012. As it is a COM server and a OCX control, creating all the typelib stuff etc. resulted in some problems that I managed to…
Matz
  • 583
  • 1
  • 6
  • 21
2
votes
2 answers

How to build MTd projects which use MDd dlls in VS2005

I am building my application in Visual Studio 2005, using project properties ->c/c++->CodeGeneration->RuntimeLib: MTd (using static CRT library-LIBCMTD). The application is using 3rd party dlls and libs which are built in MDd(using dynamic CRT lib-…
mots_g
  • 637
  • 8
  • 27
2
votes
4 answers

How do I find the cause of this linker error?

After going through a lengthy process to rename a project, my DLL project will not build in Debug mode (Release builds work): MSVCRTD.lib(msvcr90d.dll) : error LNK2005: _CrtDbgReportW already defined in LIBCMTD.lib(dbgrpt.obj) This project, and the…
Qwertie
  • 16,354
  • 20
  • 105
  • 148
2
votes
1 answer

Reset high water count in CRT debug heap

The _CrtMemState struct returned by _CrtMemCheckpoint() includes a size_t lHighWaterCount member which gives the maximum memory usage since the application started. I'm writing a testing rig which cares about high water marks, but it runs several…
Sneftel
  • 40,271
  • 12
  • 71
  • 104