Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Errors in AutoCAD 2002 with XP Pro..

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi,

When using AutoCAD 2002 with XP Pro I get a few fatal errors come up when I do random and specific things.. These problems don't happen on the WIndows ME machine we have so I pressume it's an XP Pro problem..

Here's what I get:

1: Firstly, when ever I open a drawing or AutoCAD itself
I get a message box saying something like:

AutoCAD Failed to update the System registry. Please use REGEDIT.

Why is this doing it. This happens on my college computer too..


2: Whenever I do certain and/or random tasks in AutoCAD I get this error:

FATAL ERROR: Unhandled Access Violation Reading 0x24509d0 Exception at 6543d307h

This happens mostly when I try to change the font on one of the TextStyles..


3: I also get this error when I try to run an AUtoCAD VBA macro that opens a certain Excel workbook:

FATAL ERROR: Unhandled Access Violation Reading 0x00e0 Exception at 650b7029h

What could be happening? This works fine on my Windows ME computer at work but not on the XP Pro one. Here's waht the code looks like, just in case particular codes and commands have changed for XP:

Code:
' Open the ULTRAFRAME ROOF ORDER..
Sub ufo()
Dim jobno As String  'Job number..
Dim custref As String  'Cutomer reference..
Dim custname As String  'Customer name..
Dim drawingname As String  'Drawing name..
Dim xlapp As New Excel.Application  'Excel application..
Dim ufo As Excel.Workbook  'Workbook
Dim sheetx As Excel.Worksheet  'Active sheet..
Dim stringL As Integer  'String length..
Dim custL As Integer  ' Custref length..
Dim pathX, pathY, pathZ As String  'Drawing paths..
Dim trade_name As String  'Trade Customer ref..
Dim fullnameX As String  'Thisdrawing.FullName..
Dim hypText As String  'Hyperlink Text-to-Display..


pathX = "C:\LH DRAWINGS\AutoCAD Files\Surveys\Trade"
pathZ = "C:\LH DRAWINGS\AutoCAD Files\Surveys\Direct"

' Check if drawing is Trade or Direct, then get the Trade Name..
If ThisDrawing.Path = pathX Then
    tradeform.Show

' Check and set Trade_Name..
Select Case tradeform.ComboBox1.Text
    Case Is = "Braeside Plastics"
        trade_name = "BP"
End Select
Select Case tradeform.ComboBox1.Text
    Case Is = "Brian Burden"
        trade_name = "BB"
End Select
Select Case tradeform.ComboBox1.Text
    Case Is = "Joyners"
        trade_name = "Joy"
End Select
Select Case tradeform.ComboBox1.Text
    Case Is = "Ray Porter"
        trade_name = "RP"
End Select
Select Case tradeform.ComboBox1.Text
    Case Is = "Shawn Lawford"
        trade_name = "Law"
End Select

' If drawing is direct..
ElseIf ThisDrawing.Path = pathZ Then
trade_name = "LH"

Else
    ' If drawing is not a survey drawing..
    MsgBox "This drawing is not a LightHouse Survey..", vbExclamation, "Incorrect Drawing Type.."
    GoTo End_It
End If

' Get drawing name..
drawingname = ThisDrawing.Name

' Calculate custref length..
stringL = Len(drawingname)
custL = (stringL - 3) - 10
' Get Job number..
jobno = Left(drawingname, 8)
' Get Customer ref..
custname = Mid(drawingname, 10, custL)
custref = trade_name & "/" & custname


' Open the U.F.O. worksheet..
Set ufo = xlapp.Workbooks.Open("C:\LH DRAWINGS\AutoCAD Files\Surveys\Roof Orders\UFO.xls")
Set sheetx = xlapp.ActiveSheet

' Input text into the U.F.O. worksheet..
sheetx.Cells(3, 11) = jobno
sheetx.Cells(6, 9) = custref

' Show the U.F.O. worksheet..
xlapp.Application.Visible = True
xlapp.Application.WindowState = xlMaximized
End Sub



Any ideas or any ideas where I can find out what these errors mean? Is there a website that searches specifically for Fatal Error codes?

Thanks in advance,

Renegade.. BULLET-PROOF DESiGNZ
renegade@tiscali.co.uk
 
I am not totally familiar with XP but I know that when we run ACAD on a WIN2K machine, the user must be a PowerUser in the User settings. AutoCAD reads and writes to the registry to get its settings, so the user will need that level of authority on the machine to allow it to work.


Access violations are a little tougher. There are a lot of possible reasons. Things that help us are
1. Updating to later ACAD service packs.
2. Reinstalling ACAD in a different order from other programs (usually last).
3. Change code in programs to load objects into memory in different order (sometimes helps).
4. On rare ocassions, we have had bad memory modules.

Autodesk has listings on their knowledge base for errors. You may want to give it a peek.
 
I dont know about XP but it really works for w2k:

The "Failed to update the System registry. Please use REGEDIT." error lies within win2k, not Autocad. I never had problems while running NT4 but when I switched to 2k a couple of years ago the error mentioned above occurred.
Microsoft somehow changed some security settings for the 'users' group. After some time of comparing user rights within the registry I found the problem:
the user 'Interactive' had not been given any rights in HKCR under win2k. I added it and gave it the same rights as is had in NT4 and never had any problems anymore (with autocad..).

So here is what to do:
-start regedt32
-select HKEY_CLASSES_ROOT
-in the menu bar select 'Security' --> 'Permissions'
-add the user 'Interactive'
-click 'Advanced...'. Now you're in the 'Access Control Settings for HKCR' panel.
-select your newly added user:'Interactive' and click 'View/Edit'
-checkmark 'Allow' for:
-Query Value
-Set Value
-Create Subkey
-Enumerate Subkeys
-Notify
-Delete
-Read Control
-'Apply onto:' This key and subkeys --> Ok
-Ok

And that's about all there is to say about shrimp

Willard van Delft

 
OK... first off, the "failed to update the reg" error, you must be a power user / administrator to eliminate that message. (or upgrade to acad2004!)

The fatal errors, I think they are from licence checks, (which acad does every 15-30 mins) did you install the C-DILLA licensing patch???

Jay~

My new Tae Kwon Do website is up and running!!

~KeyTech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top