Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Qu4k3r on August 21, 2011, 02:33:25 PM



Title: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: Qu4k3r on August 21, 2011, 02:33:25 PM
Hi, I need a little help.
Every was fine until I decided to defrag my hard drive with O&O Defrag 12 using COMPLETE/Name option.
But now, my BTC client crashes every 5 minutes showing a dialog box with the follwing message

"Microsoft Visual C++ Runtime Library.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."


No matter if it is running as server mode or normal mode, it always crashes.
I try to unistall the client, run CCleaner, reboot and reinstall the client again; but no succeed.

I post it first there: https://bitcointalk.org/index.php?topic=38368.msg471751#msg471751
A forum member told me that it could be a trojan suggest me to post in this section becuase BTC client does not use VC in any way.
I run a full system scan but NIS 2010 did not report any problem.

Any idea or suggestion is welcome.
Thanks in advance.-

http://img846.imageshack.us/img846/1024/11310331.jpg


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: jh1523 on August 21, 2011, 05:47:57 PM
Does the crash happen if you don't run guiminer at the same time? I.e. if bitcoin.exe is the only application running?

(edit) a bit of forum search turned out this thread from january http://bitcointalk.org/index.php?topic=2920.0 where someone was seeing an error similar to yours because of a corrupt wallet.dat. I hope you have a wallet backup somewhere. :( The defrag program may have damaged your wallet.dat


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: EricJ2190 on August 21, 2011, 06:12:36 PM
A forum member told me that it could be a trojan suggest me to post in this section becuase BTC client does not use VC in any way.

The official Bitcoin Windows binary isn't built with VC, but it does use the Microsoft Visual C++ Runtime (msvcrt.dll).

This file might be corrupt. You can try running "sfc /scannow" from an administrator command prompt. This will attempt to find and repair bad system files.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: jh1523 on August 21, 2011, 07:00:34 PM
The official Bitcoin Windows binary isn't built with VC, but it does use the Microsoft Visual C++ Runtime (msvcrt.dll).

What do you know. You're right! I just tested it with InspectExe and indeed msvcrt.dll is in the list of dependencies.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: twobits on August 21, 2011, 09:07:06 PM
The official Bitcoin Windows binary isn't built with VC, but it does use the Microsoft Visual C++ Runtime (msvcrt.dll).

What do you know. You're right! I just tested it with InspectExe and indeed msvcrt.dll is in the list of dependencies.

That is the C RTL not the C++ RTL, and indeed mingwin uses the msvcrt dll to avoid the need for gpled code at runtime.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: EricJ2190 on August 21, 2011, 10:38:00 PM
The official Bitcoin Windows binary isn't built with VC, but it does use the Microsoft Visual C++ Runtime (msvcrt.dll).

What do you know. You're right! I just tested it with InspectExe and indeed msvcrt.dll is in the list of dependencies.

That is the C RTL not the C++ RTL, and indeed mingwin uses the msvcrt dll to avoid the need for gpled code at runtime.

Yes, it is C standard library specifically, but it is considered a Microsoft Visual C++ Runtime Library (there is no Microsoft Visual C) and I'm guessing that is what the error message is referring to.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: inh on August 21, 2011, 10:54:25 PM
I had the same issue. Close bitcoin. Delete everything in your appdata/Bitcoin folder EXCEPT your wallet.dat file, and then run bitcoin again.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: twobits on August 21, 2011, 11:16:24 PM
The official Bitcoin Windows binary isn't built with VC, but it does use the Microsoft Visual C++ Runtime (msvcrt.dll).

What do you know. You're right! I just tested it with InspectExe and indeed msvcrt.dll is in the list of dependencies.

That is the C RTL not the C++ RTL, and indeed mingwin uses the msvcrt dll to avoid the need for gpled code at runtime.

Yes, it is C standard library specifically, but it is considered a Microsoft Visual C++ Runtime Library (there is no Microsoft Visual C) and I'm guessing that is what the error message is referring to.

Hmm.. that library actually predates Visual C++ though,  would have thought they would have left it be, and not confused the matter with calling the the c++ library now.


Title: Re: BTC client crashes every 5 minutes. "Microsoft Visual C++ Runtime Library."
Post by: Qu4k3r on August 22, 2011, 04:03:19 AM
I had the same issue. Close bitcoin. Delete everything in your appdata/Bitcoin folder EXCEPT your wallet.dat file, and then run bitcoin again.
That's exactly what I did and problem solved!  ;D

Thanks for all your asnwers.