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

How can I determine if a file was opened for append on Windows?

In UNIX if I open a file in append mode like fd = open("filename", O_APPEND); then given such a file descriptor one can easily find out what flags it was opened with using fcntl: fcntl(fd, F_GETFL) & O_APPEND I know that fcntl is not available on…
Iguananaut
  • 21,810
  • 5
  • 50
  • 63
3
votes
1 answer

Pyinstaller and R6034 error

I have created a binary using Pyinstaller and Python 2.7 which when I run on the same machine it is built complains with a Runtime Error! R6034 "An application has made an attempt to load the C runtime library incorrectly." If I use Process Explorer…
3
votes
1 answer

How do I tell the MS CRT to use a Low Fragmentation Heap on Windows XP?

It appears that the MS CRT (msvcr80.dll from VS2005 in my case) uses a heap different from the standard process heap returned by GetProcessHeap(). On Windows XP, the default for a heap created with HeapCreate is non-low-fragmentation. How do I tell…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
1 answer

How to change the spec file of MinGW to link against the MSVCR100.dll and MSVCP100.dll?

I'm using Windows 7 and the latest MinGW version (gcc v4.7.2). My problem is, to trigger MinGW to use the "MSVCR100" and the "MSVCP100" runtime dll's for a simple test application. My default customized spec file looks like as follows:…
3
votes
3 answers

Qt 5 with MSVC and NMake doesn't work

When I compile a fresh Qt project with the new Qt Creator 2.6.1 and Qt 5.0 I get the following errors: C:\Qt\Qt5.0.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug Error: cannot open C:\Users\Ömercan\AppData\Local\Temp\main.obj.7320.31.jom for…
pearcoding
  • 1,149
  • 1
  • 9
  • 28
3
votes
1 answer

Global constructors and MSVCRT in a DLL

What happens with the following code in a DLL ? #include std::vector global_vector; BOOL WINAPI DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { …
docdocdoc9
  • 138
  • 5
3
votes
1 answer

An application has made an attempt to load the C runtime library incorrectly

I started getting this error every time I try to: install Python package with installer use PyWin extension (through COM application) start Notepad++ (with Python script plugin) This started to happen couple of days ago. Dialog shows, I…
theta
  • 24,593
  • 37
  • 119
  • 159
3
votes
3 answers

Right arrow symbol causing abrupt end of fread?

I am attempting to write a bittorrent client. In order to parse the file etc. I need to read a torrent file into memory. I have noticed that fread is not reading the entire file into my buffer. After further investigation it appears that whenever…
brnby
  • 1,433
  • 1
  • 19
  • 35
2
votes
1 answer

program.exe: Native' has exited with code 255 (0xff)

I am using boost threads, and everything works perfectly when compiling with /MD but I really prefer compiling with /MT instead The problem I then get is program.exe: Native' has exited with code 255 (0xff). This happens on this line: thread_1 =…
zeta
  • 1,113
  • 3
  • 15
  • 24
2
votes
3 answers

Visual C++ Runtime Library Linker Woes

Observe this close Scenario even though it appears to be the same as my previous questions. Still I am not getting an answer. So please don't report as a duplicate. I have a project which has 10 dependencies. First I compiled using the /MTD option…
Cute
  • 13,643
  • 36
  • 96
  • 112
2
votes
0 answers

Different runtime between Windows accounts

I have a problem on running a windows service on some computers, not all. It's written by VS2008, and needs VC Runtime. I installed the VC Runtime first, then installed the service by Administrator. The service logon user is liwb, in Administrator…
liwb
  • 21
  • 3
2
votes
1 answer

Mixed Managed/Unmanaged Assembly Load Order

I have some questions about the order of initialization for the CLR and the CRT for mixed .NET assemblies (i.e. meaning mixed managed/unmanaged C++ assemblies). So if I have a mixed mode assembly dll file, and it gets loaded via Assembly.Load. I…
C.J.
  • 15,637
  • 9
  • 61
  • 77
2
votes
1 answer

Is there a Windows equivalent of EDQUOT?

I'm porting some C++ code from UNIX to Windows which detects the occurrence of the EDQUOT error, which indicates that there was an unsuccessful attempt to exceed the current user's disk quota. Visual Studio's doesn't have an EDQUOT,…
Integer Poet
  • 747
  • 5
  • 19
2
votes
1 answer

Using msvcrt in 64-bit python ctypes

I want to call msvcrt functions from 64-bit python using the ctypes package. I'm obviously doing it wrong. Is the right way to do it obvious? Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help",…
Andrew
  • 2,842
  • 5
  • 31
  • 49
2
votes
0 answers

Visual Studio Debugging program that you have the source code for

I have an old program that started crashing recently, it only crashes on this particular pc running windows 7 x64 ultimate (I tried this program on another installation of Windows 7 x64 ultimate and there it works completly fine) It crashes early…
LimetaPeta
  • 67
  • 5