473,607 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ 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::AutoC AD::Application Services::Comma ndLinePrompts CmdLine;
typedef Autodesk::AutoC AD::DatabaseSer vices::Handle Handle;
typedef Autodesk::AutoC AD::DatabaseSer vices::DBObject DBObject;
typedef Autodesk::AutoC AD::Runtime::RX Class RXClass;

namespace DotNetBug
{

public ref class Class1 : public
Autodesk::AutoC AD::Runtime::IE xtensionApplica tion
{
public:

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

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

public ref class Commands
{
public:

[Autodesk::AutoC AD::Runtime::Co mmandMethod("he llo")]
static void Hello()
{
CmdLine::Messag e( "\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->HHandleHandl e;
}
};
}

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 5641
=?Utf-8?B?QVJG?= <AR*@discussion s.microsoft.com > wrote in
news:3C******** *************** ***********@mic rosoft.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.dl l' to target directory...
1>Copying 'c:\Program Files\AutoCAD 2005\acmgd.dll' to target directory...
1>Compiling...
1>Stdafx.cpp
1>Compiling...
1>DotNetBug.cp p
1>c:\tmp\dotnet bug\dotnetbug\D otNetBug.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::Auto CAD::DatabaseSe rvices::DBObjec t ' from assembly 'acdbmgd,
Version=16.1.63 .0, Culture=neutral , PublicKeyToken= 7208edf2a10162b 1'.
1>Build log was saved at
"file://c:\tmp\DotNetBu g\DotNetBug\Deb ug\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*@discussion s.microsoft.com > wrote in
news:3C******** *************** ***********@mic rosoft.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.dl l' to target directory...
1>Copying 'c:\Program Files\AutoCAD 2005\acmgd.dll' to target directory...
1>Compiling...
1>Stdafx.cpp
1>Compiling...
1>DotNetBug.cp p
1>c:\tmp\dotnet bug\dotnetbug\D otNetBug.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::Auto CAD::DatabaseSe rvices::DBObjec t ' from assembly 'acdbmgd,
Version=16.1.63 .0, Culture=neutral , PublicKeyToken= 7208edf2a10162b 1'.
1>Build log was saved at
"file://c:\tmp\DotNetBu g\DotNetBug\Deb ug\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*@discussion s.microsoft.com > wrote in
news:3C******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in
news:03******** *************** ***********@mic rosoft.com:
1>c:\tmp\dotnet bug\dotnetbug\D otNetBug.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::Auto CAD::DatabaseSe rvices::DBObjec t ' from assembly
'acdbmgd, Version=16.1.63 .0, Culture=neutral ,
PublicKeyToken= 7208edf2a10162b 1'. 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
1704
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) when including any files for templates .. #include <fstream> , #include <string>, #include <vector>, #include <list> etc... The funny thing is that was not happening before, it really used to work fine with templates. By removing the STL include...
9
15302
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 c:\build\main\.....\methodeInc.h(36) : fatal error C1001: INTERNAL COMPILER ERRO (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more informatio I was able to...
10
3264
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 article 320004 except that particular problem was
4
3043
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 recently by the Apache organization. I've defined a system variable on windows as follows: XERCESCROOT: <...>\xerces-c_2_6_0-windows_nt-msvc_60
2
2945
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 the template was defined in a .h file, but that has no effect, same error. I have seen when searching for fatal error that there are some problems with templates and optimization, but nothing as simple like this. I'm i doing something wrong?
1
2487
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 on my old machine, I just replaced the Harddrives after my old one with the OS failed. No matter how many tweaks I make to the build setup it always returns fatal error C1001: An internal error has occurred in the compiler. 7>(compiler file...
1
2497
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 you just add the two obvious lines to the CLR-console type wizard generated main method: #include "stdafx.h" #using <C5.dll // <---- this line is new
1
3760
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 linux box using rsh it gives me the errors below Microsoft (R) Development Environment Version 7.10.3077. Copyright (C) Microsoft Corp 1984-2001. All rights reserved. ------ Build started: Project: SigComp, Configuration: Release Win32 ------...
1
9505
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 internal error has occurred in the compiler. c:\program files\microsoft visual studio 8\vc\include\xmemory 155
0
8050
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7987
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8472
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8324
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6805
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3954
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2464
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 we have to send another system
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1318
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.