473,471 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AutoCAD 2005 & VS2005 C++/CLR: fatal error C1001

ARF
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting
fatal compiler errors.

I start with a default C++/CLR class library project and modify it by adding
the following references:

acdbmgd.dll
acmgd.dll

the entire source for the default library header file is:

// DotNetBug.h

#pragma once

using namespace System;

typedef Autodesk::AutoCAD::ApplicationServices::CommandLin ePrompts CmdLine;
typedef Autodesk::AutoCAD::DatabaseServices::Handle Handle;
typedef Autodesk::AutoCAD::DatabaseServices::DBObject DBObject;
typedef Autodesk::AutoCAD::Runtime::RXClass RXClass;

namespace DotNetBug
{

public ref class Class1 : public
Autodesk::AutoCAD::Runtime::IExtensionApplication
{
public:

virtual void Initialize()
{
CmdLine::Message( System::Convert::ToString( "\nAutoCAD
extensions loaded!\n" ) );
}

virtual void Terminate()
{
CmdLine::Message( System::Convert::ToString( "\nAutoCAD
extensions unloaded!\n" ) );
}
};

public ref class Commands
{
public:

[Autodesk::AutoCAD::Runtime::CommandMethod("hello")]
static void Hello()
{
CmdLine::Message( "\nHello from C++!\n" );

//===============================================
// It seems that any use of the DBObject interface causes
compiler crash
//===============================================

// The following line causes fatal error C1001
DBObject ^o = gcnew DBObject;

DBObject ^p = nullptr;
// The following line causes fatal error C1001
Handle h = p->HHandleHandle;
}
};
}

This is the simplest example I've found to reproduce the error. Both trivial
and more complex use of the DBObject interface compiles and executes as
expected with C#. This would seem to indicate a bug in the C++ compiler.

Has anyone else seem this kind of behavior?

Thanks in advance for any assistance.
Nov 29 '05 #1
4 5628
=?Utf-8?B?QVJG?= <AR*@discussions.microsoft.com> wrote in
news:3C**********************************@microsof t.com:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm
getting fatal compiler errors.


Can you post the errors you're getting?

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Dec 1 '05 #2
ARF
1>------ Build started: Project: DotNetBug, Configuration: Debug Win32 ------
1>Copying 'c:\Program Files\AutoCAD 2005\acdbmgd.dll' to target directory...
1>Copying 'c:\Program Files\AutoCAD 2005\acmgd.dll' to target directory...
1>Compiling...
1>Stdafx.cpp
1>Compiling...
1>DotNetBug.cpp
1>c:\tmp\dotnetbug\dotnetbug\DotNetBug.h(43) : fatal error C1001: An
internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1392)
1> To work around this problem, try simplifying or changing the program near
the locations listed above.
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1> This diagnostic occurred while importing type
'Autodesk::AutoCAD::DatabaseServices::DBObject ' from assembly 'acdbmgd,
Version=16.1.63.0, Culture=neutral, PublicKeyToken=7208edf2a10162b1'.
1>Build log was saved at
"file://c:\tmp\DotNetBug\DotNetBug\Debug\BuildLog.htm"
1>DotNetBug - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

DotNetBug.h(43) = "DBObject ^o = gcnew DBObject;" as shown in the example
code. As previously mentioned, it seems that any use of the DBObject
interface causes C1001.

"Tarek Madkour [MSFT]" wrote:
=?Utf-8?B?QVJG?= <AR*@discussions.microsoft.com> wrote in
news:3C**********************************@microsof t.com:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm
getting fatal compiler errors.


Can you post the errors you're getting?

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.

Dec 1 '05 #3
ARF
1>------ Build started: Project: DotNetBug, Configuration: Debug Win32 ------
1>Copying 'c:\Program Files\AutoCAD 2005\acdbmgd.dll' to target directory...
1>Copying 'c:\Program Files\AutoCAD 2005\acmgd.dll' to target directory...
1>Compiling...
1>Stdafx.cpp
1>Compiling...
1>DotNetBug.cpp
1>c:\tmp\dotnetbug\dotnetbug\DotNetBug.h(43) : fatal error C1001: An
internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1392)
1> To work around this problem, try simplifying or changing the program near
the locations listed above.
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1> This diagnostic occurred while importing type
'Autodesk::AutoCAD::DatabaseServices::DBObject ' from assembly 'acdbmgd,
Version=16.1.63.0, Culture=neutral, PublicKeyToken=7208edf2a10162b1'.
1>Build log was saved at
"file://c:\tmp\DotNetBug\DotNetBug\Debug\BuildLog.htm"
1>DotNetBug - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Line 43 of the source file is "DBObject ^o = gcnew DBObject;".

"Tarek Madkour [MSFT]" wrote:
=?Utf-8?B?QVJG?= <AR*@discussions.microsoft.com> wrote in
news:3C**********************************@microsof t.com:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm
getting fatal compiler errors.


Can you post the errors you're getting?

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.

Dec 1 '05 #4
=?Utf-8?B?QVJG?= <AR*@discussions.microsoft.com> wrote in
news:03**********************************@microsof t.com:
1>c:\tmp\dotnetbug\dotnetbug\DotNetBug.h(43) : fatal error C1001: An
internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1392)
1> To work around this problem, try simplifying or changing the
program near the locations listed above.
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more
information 1> This diagnostic occurred while importing type
'Autodesk::AutoCAD::DatabaseServices::DBObject ' from assembly
'acdbmgd, Version=16.1.63.0, Culture=neutral,
PublicKeyToken=7208edf2a10162b1'. 1>Build log was saved at

[...]

Line 43 of the source file is "DBObject ^o = gcnew DBObject;".


Doh! I didn't notice you already had the error in the title of your
post. Apologies :)

This is obviously a compiler bug. Please report it to Microsoft product
support and we'll be happy to provide you with either an acceptable
workaround or a fix. You will not be charged for the support call since
you're reporting an actual bug.

Thank you for your feedback.
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Dec 2 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JimmyS | last post by:
I am getting this error .. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stl_alloc.h(305) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)...
9
by: Marco Nova | last post by:
Hello I'm using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I've some problem compiling a project, it give me the error ...
10
by: PufferFish | last post by:
Hi folks, I hope that this is the correct group for these things, apologies if not. I've got a strange compiler error. It appears to be similar to the issue described in knowledgebase...
4
by: cgparis | last post by:
Dear forum members, I am trying to compile C++ code under MS Visual Studio .NET 2003, which references the latest Xerces C++ release library (2.6.0). This Xerces release was made available...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
1
by: ishbuu | last post by:
Hi all. I've been trying to get a program I wrote on my old machine to compile on this one, but VS2k5 hasn't been able to finish the thing. I was using the same operating system/hardware/version...
1
by: Semmel | last post by:
Hello, I'd like to use the C5 Generic Collection Library ( http://www.itu.dk/research/c5/ ) in my C++/CLI project. However I always get an fatal compiler error C1001. It already happens when...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
1
by: Anonymous | last post by:
My code has suddenly stopped compiling after some refactoring I carried out last week. I am using VC8 on W2K professional I get the following cryptic error: Error 77 fatal error C1001: An...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.