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
3 answers

How to detect key release with python ( not keypress)?

How can I detect key release with python 3 ? Like if I pressed the key a for 1 second , when I remove my finger from the key ( releasing the key ) , It will print("Key 'a' pressed then released"). I trying to do it with module keyboard but I have no…
Nouman
  • 6,947
  • 7
  • 32
  • 60
2
votes
1 answer

Getting dynamic atexit destructor link error with custom toolset - eh vector destructor

I'm getting a weird linker error when trying to compile against a VS2005 CRT with a Visual Studio 2015 toolset. The same code compiles perfect on any other toolset version (2005,2010,2012,2013). The code must compile under VS2005 CRT to properly…
Yochai Timmer
  • 48,127
  • 24
  • 147
  • 185
2
votes
4 answers

How to initialize msvcrt.dll?

If I do a LoadLibrary("msvcrt.dll") do I need to initialize the CRT somehow? Section 2 in the following document seems to say that I do, but I just get an undefined symbol error for _CRT_INIT when I try to call…
glen
  • 23
  • 1
  • 4
2
votes
0 answers

c++ Windows _CrtSetDbgFlag stop working when calling 3rd party library

My windows program consists of a C++(MFC) console application my.exe, which issues _CrtSetDbgFlag to see memory leaks on exit. a C++(non-MFC) my.dll. This dll calls a 3rd party library (Oracle's OCCI C++ library). my.exe has a deliberate leak in…
Philip Beck
  • 375
  • 2
  • 10
2
votes
2 answers

Breaking when a certain amount of bytes is allocated

_CrtDumpMemoryLeaks(); if you didn't know, is a function that dumps all the memory leaks in a program. Mine currently displays that I have a 3632062 byte memory leak (it's not being deallocated). I was wondering: Is there any way to cause Visual…
Brad
  • 10,015
  • 17
  • 54
  • 77
2
votes
1 answer

EasyHook - CRT Debug Assertion Failed - "Buffer too small"

I have an injector which calls the following (abridged) code: var processes = Process.GetProcessesByName("target"); /* ... */ var process = processes[0]; /* ... */ process.Kill(); RemoteHooking.CreateAndInject(process.MainModule.FileName,…
Christian Ivicevic
  • 10,071
  • 7
  • 39
  • 74
2
votes
1 answer

How do I fix the CRT dependency causing a FileLoadException with my vc2005 mixed-mode DLL on XP?

I have a mixed-mode DLL built in visual studio 2005. In dependency walker, my DLL is showing a dependency of the following CRT Dlls. Note this is on my Windows 7 developement machine.…
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
2
votes
1 answer

Multiple CRTs: visual studio 2008 creates DLLs with manifest dependencies to both VC80 & VC90 CRTs

I've been looking into why the debug build of our open scene graph plugins can't be loaded correctly (error code 14001, ERROR_SXS_CANT_GEN_ACTCTX). After much googling I've found out that the problem is that e.g. the freetype debug dll has a…
mandrake
  • 1,213
  • 1
  • 14
  • 28
2
votes
1 answer

Which Visual C/C++ run-time library to pick?

I've stumbled upon the issues with having the wrong MSVC run-time when linking or running apps written in C or C++. Because of that, I try to be exact on using the correct versions. I see that the SDL (Simple DirectMedia Layer) library is…
Jostein Topland
  • 990
  • 8
  • 16
2
votes
0 answers

'_beginthreadex()' is overriding my global 'Unhandled Exception Filter'

I want my application to create a dump file whenever an un-handled exception does occur. For this I am using the SetUnhandledExceptionFilter() function from Windows, supplying it with my own Exception Filter callback function that should be called…
PazO
  • 1,314
  • 1
  • 11
  • 30
2
votes
0 answers

MinGW cross-compiled application, atexit / mingw_onexit crashes on Windows 10

I have a C application that I cross-compile for Windows from Fedora Linux: $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (GCC) 6.2.0 20160822 (Fedora MinGW 6.2.0-1.fc24) Copyright (C) 2016 Free Software Foundation, Inc. This is free…
jdolan
  • 580
  • 5
  • 14
2
votes
0 answers

Could there be an unexpected collision of MS VC runtimes?

I have learned the hard way, it's not very good to share heap pointers between two dlls who each depends on different MS VC runtime. Fair enough. Based on this experience and current weird behavior of a program chain being debugged I would like to…
sharpener
  • 1,383
  • 11
  • 22
2
votes
1 answer

Detecting installed MSVC redistributables programmatically

is there any way to do it in C++? I'd like to do it like that: user starts app -> app checks for installed redists -> app tells user to install redistributable X in order to use application and closes
encoreleeet
  • 374
  • 2
  • 9
2
votes
0 answers

What is the _SYSCRT macro for in MSVC C++ CRT?

When I browse through VC CRT sources, I sometimes see two separate implementations (for example, the new operator), one for when _SYSCRT is defined and another for when _SYSCRT is undefined. Now, _SYSCRT may well be undocumented but I'm debugging…
rustyx
  • 80,671
  • 25
  • 200
  • 267
2
votes
1 answer

What is the point of the boilerplate CRT function matherr?

I wrote a basic "Hello World" program in C: #include int main() { printf("Hello World!\n"); return 0; } Then, I compiled it in MSVC from the command-line as such: cl hello.c /Fd:hello.pdb /Zi /MD /link…
Govind Parmar
  • 20,656
  • 7
  • 53
  • 85