C Run-Time Error R6002C Run-Time Error R6002



  • 1. .NET plugin - bug?
    I wanted to test my plugin manager and wrote two codes, one for a C# plugin, one for a C++ plugin. The codes are appended at the end. My problem: The C++ class is only inherited from the interface if at least one function is implemeted in the C file. When I implement the class only in the header file (like in the code below), ILDASM shows that the class is NOT inheriting the interface. Is this a bug, or a feature, of the C++ compiler? I'm new to .NET (not Win32, which I'm pretty much used to). Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Christian ----- C#: using System; using System.Text; using logsolarmgr.PluginAPI; public class test_csharp : ILSDataSource { public String GetName() { return ("test csharp: (" + AppDomain.CurrentDomain.BaseDirectory + ")"); } } ----- C++: // test_cpp.h #pragma once using namespace System; using namespace logsolarmgr; public ref class test_cpp : public logsolarmgr::PluginAPI::ILSDataSource { public: test_cpp() { } virtual String^ GetName() { return gcnew String("test cpp: (" + AppDomain::CurrentDomain->BaseDirectory+ ")"); } };
  • 2. vc8.0 crash while compiling boost-1.33.1 serialization library with /analyze
    VC8.0 crashes while compiling boost-1.33.1 serialization library (or any other library that includes the serialization headers) if code analysis (/analyze) is enabled. This problem did not occur with prior beta releases of boost-1.33.1 or with the VC8.0 beta. You may want to consider whether the crash of a dependent tool should be allowed to cause the entire VC8 IDE to hang or whether this might be a design defect. Given the recent price increases I respectfully suggest that you fix this problem. Regards, George.
  • 3. CComPtr pass by reference issue with VC 2005 compiler
    Due to the tightening of the VC++ compiler in 2005, I have run into a compiler error (from code that previously worked in 2003) using a CComPtr<ITypeLib> as an element of a std::list, as follows std::list<CComPtr<ITypeLib> >. I understand the problem, so am looking for the correct solution to my problem. On the line that attempts to call push_back, I receive "error C2664: 'std::allocator<_Ty>::construct' : cannot convert parameter 1 from 'ITypeLib **' to 'ATL::CComPtr<T> *' c:\program files\microsoft visual studio 8\vc\include\list 1163" e.g. std::list<CComPtr<ITypeLib> > typeLibs; CComPtr<ITypeLib> spTypeLib; .. some code the creates an instance of spTypeLib list.push_back(spTypeLib); // fails here with the C2664 error. The problem is the push_back function takes a by reference parameter of type CComPtr<ITypeLib>, however the CComPtr class overrides operator&, returning a value of type ITypeLib**. I want to use the CComPtr, for the benefits of the RAII pattern, and it simplifies my production code significantly in this set of routines. My question is "What is the correct way to handle this situation, and avoid the overloaded operator& issue?" Cheers, Stuart
  • 4. Managed program accessing classes and dialogs in unmanaged DLL
    I've seen at least one article on this: How to access classes, etc. managed-to-unmanaged. I can't find it. Any tricks or pointers? I guess the class name won't get munged but I'm not clear about necessary class declarations.

C Run-Time Error R6002C Run-Time Error R6002

Postby UjYwMDJDIFJ1bi1UaW1lIEVycm9yIFI » Wed, 17 Dec 2008 11:14:02 GMT

I get this error:  C Run-Time Error R6002C Run-Time Error R6002

What do I need to do?

Thanks for the help

Re: C Run-Time Error R6002C Run-Time Error R6002

Postby David Connet » Wed, 17 Dec 2008 12:14:43 GMT

=?Utf-8?B?UjYwMDJDIFJ1bi1UaW1lIEVycm9yIFI=?= <R6002C Run-Time Error 


First look up what the error means (google, msdn, ...)

According to MSDN:
 floating-point support not loaded
 The necessary floating-point library was not linked. 

They then proceed with a list of 5 possible fixes.

Dave Connet

Similar Threads:

1.Outlook Express Visual C++ Runtime Library Run-Time Error

I have a friend who's using Outlook Express 6 and is 
getting an "abnormal program termination" error whenever 
he attempts to attach a graphic file within Outlook 
Express. He reports that it works fine when using the 
Explorer shell to call OE.

My friend has WinXP Home.

Any advice?


2.Run Time Error, Microsoft Visual C++ Runtime Library


I have Windows XP x64.

Yesterday, I installed Microsoft Office 2007 Enterprise.  There were no 
problems installing it and it works fine.  Up until a few minutes ago, my pc 
had no problems.  When I rebooted a few minutes ago, my pc received the below 
runtime error. It's never happened before.  I don't know if the error is 
connected to 2007 Enterprise or if something else is causing it.

"Runtime Error, Microsoft Visual C++ Runtime Library
Runtime Error!
Program: ...ram Files (x86)Ascentive\Performance Center\APCMain.exe
This application has requested the Runtime to terminate it in an unusual 
way.  Please contact the application's support team for more information."

This is my personal pc.  I made no changes to my settings or other programs 
so I don't know what's causing it.

How can this be fixed?


~ If you don't know where you came from, you won't know where you're going.

3.Run-time template list definition / Run-time variable type definition

Hi there,

Sorry for the double subject but I feel they are related. I'm not pretty 
sure there would be an answer but I reckon there must be a way to make 
it work.

I would like to write the following bit of code:


Foo<> * myFoo = NULL; // Foo is a templated class.

if (condition1) {
	myFoo = new Foo<double>(parameters);
} else {
	myFoo = new Foo<long>(parameters);



This version is obviously illegal. Have you any ideas for an 
alternative? i.e. declaring the template list of my templated class at 
run time?

I'm looking for a way to do some run-time polymorphism at run-time with 
templates. Can I define the template class is derivated from an other 
class (similar to an interface in java) or the template will raise 
conflicts? Is there a nicer solution?

Thanks for your help,

4.Differences in error handling between Design-Time and Run-Time


I've just written, my first .NET Windows application and I've noticed that 
when running my App in the design time enviroment the error handling works 
like this:

Say I've gat a method called Import that opens a form frmReplace.
Import has error handling but frmReplace_Load does not.

In Design-Time enviroment if an error occurrs in frmReplace_Load the 
exception passes back to Import and is handled appropriately.

HOWEVER. In the Run-Time enviroment the exception in frmReplace_Load is not 
passed back to Import and an unhandled exception occurrs forcing me to quit 
the app.

So my question is, how do I make the design-time behave like run-time and 
vice versa??

Help me!


5.Win32 CS semaphore use by run time library in VC 6.0

Hi, does one knows when and how the crt runtime library and/or stl (but not
the mfc) makes use of  semaphores with name "Win32 CS"
Do not have crt source code at hand, so cannot search the source. Juergen,

6. Mystical run time error when putting C# library in COM+ application

Return to VC.NET


Who is online

Users browsing this forum: No registered users and 51 guest