Albert - Thanks, I'll try that.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
"Albert Szilvasy" wrote in message news:4864160@discussion.autodesk.com...
Yeah, VS2002 has its problems. I ran into this and others so usually use new
C# compilers.
Try casting buf to IEnumerable explicitly. It will be slightly slower but it
will compile at least.
Albert
"Tony Tanzillo" wrote in message
news:4864174@discussion.autodesk.com...
I'm getting the output shown below, which appears to be
caused by this:
Object o = //
if( o is ResultBuffer )
{
ResultBuffer buf = (ResultBuffer) o;
/// iterating the ResultBuffer contents is
/// causing the error. commenting out this
/// foreach construct makes it go away:
foreach( TypedValue val in buf )
{
// Do something with val
}
}
Here is the compiler output copied from the output window:
-------------------------------------------------------------------------------------------------------
error CS0583: Internal Compiler Error (0xc0000005 at address 531A15B7):
likely culprit is 'BIND'.
An internal error has occurred in the compiler. To work around this problem,
try simplifying or changing the program
near the locations listed below. Locations at the top of the list are closer
to the point at which the internal error
occurred.
C:\Projects\test\bin\Debug\acdbmgd.dll: error CS0584: Internal Compiler
Error: stage 'BIND' symbol
'Autodesk.AutoCAD.DatabaseServices.ResultBufferEnumerator.Current'
c:\Projects\test\rxadsdotnet.cs(601,19): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(597,16): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(596,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(590,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(576,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(570,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(561,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(546,21): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(540,16): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(539,13): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(538,13): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(536,10): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(535,10): error CS0585: Internal Compiler
Error: stage 'BIND'
c:\Projects\test\rxadsdotnet.cs(532,27): error CS0584: Internal Compiler
Error: stage 'BIND' symbol
'RxAds.CommandLineInterface.BuildCommandList(object[],
Autodesk.AutoCAD.DatabaseServices.ResultBuffer)'
c:\Projects\test\rxadsdotnet.cs(532,27): error CS0584: Internal Compiler
Error: stage 'COMPILE' symbol
'RxAds.CommandLineInterface.BuildCommandList(object[],
Autodesk.AutoCAD.DatabaseServices.ResultBuffer)'
c:\Projects\test\rxadsdotnet.cs(532,27): error CS0584: Internal Compiler
Error: stage 'COMPILE' symbol
'RxAds.CommandLineInterface.BuildCommandList(object[],
Autodesk.AutoCAD.DatabaseServices.ResultBuffer)'
c:\Projects\test\rxadsdotnet.cs(532,27): error CS0584: Internal Compiler
Error: stage 'COMPILE' symbol
'RxAds.CommandLineInterface.BuildCommandList(object[],
Autodesk.AutoCAD.DatabaseServices.ResultBuffer)'
c:\Projects\test\rxadsdotnet.cs(353,17): error CS0584: Internal Compiler
Error: stage 'COMPILE' symbol
'RxAds.CommandLineInterface'
c:\Projects\test\rxadsdotnet.cs(46,11): error CS0584: Internal Compiler
Error: stage 'COMPILE' symbol 'RxAds'
c:\Projects\test\rxadsdotnet.cs(1,1): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol ''
C:\Projects\test\RxAdsDotNet.cs: error CS0586: Internal Compiler Error:
stage 'COMPILE'
error CS0587: Internal Compiler Error: stage 'COMPILE'
error CS0587: Internal Compiler Error: stage 'BEGIN'
Build complete -- 25 errors, 0 warnings
Building satellite assemblies...
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com