.NET

Reply
Distinguished Contributor
VB_Autocad_guy
Posts: 136
Registered: ‎07-24-2009
Message 1 of 4 (301 Views)

FATAL ERROR: Unhandled Access Violation Readin 0x0008 Exception at 25944c7ah

301 Views, 3 Replies
05-15-2012 11:49 AM

Okay... shot in the dark, but I'll try. 

 

I'm running my Cad Extractor and it crashes on this procedure always on a certain drawing. 

But I don't think it has anything to do with the procedure, but I could be wrong. 

Any ideas anyone? 

 

 Private Shared Function DetectLineNumberPattern(ByVal s_AcadText As String) As SFR_LineNumber_Pattern
                'Debug.Print("Running: GetLineNumberPattern")

                'Catch Exceptions 
                If s_AcadText.Length = 0 Or String.IsNullOrEmpty(s_AcadText) Then
                    'Debug.Print("Caught LineNumber Null Exception")
                    Return SFR_LineNumber_Pattern.Pattern00_Other
                    Exit Function
                End If

   

                '----------------------------------------<START PATTERN MATCHING>----------------------------------------------'

                'Debug.Print("Checking Patterns")

                '<<PATERN 1>>
                If Regex.IsMatch(s_AcadText, _
                                 "(^[A-Za-z]{1,4}\d{1,6}-{1}[A-Za-z]{1,6}\d{0,3}[A-Za-z]{0,5}-{1}\d{1}\s{1}\d{1,2}/{1}\d{1,2}\x22)|" & _
                                 "(^[A-Za-z]{1,4}\d{1,6}-{1}[A-Za-z]{1,6}\d{0,3}[A-Za-z]{0,5}-{1}\s{0,2}\d{1}/{0,1}\d{0,1}\x22)|" & _
                                 "(^[A-Za-z]{1,4}\d{1,6}-{1}\d{3}\35{1}[A-Za-z]{0,5}-{1}\d{1,2}\x22)|" & _
                                 "(^[A-Za-z]{1,4}\d{1,6}-{1}\d{3}\35{1}[A-Za-z]{0,5}-{1}\d{1,2}\s{1}\d{1,2}/{1}\d{1,2}\x22)|" & _
                                 "(^[A-Za-z]{1,4}\d{1,6}-{1}[A-Za-z]{1,6}-\d{0,3}\d{1,2}\x22)") Then

                    'Debug.Print("Checked matches Pattern 1")
                    Return SFR_LineNumber_Pattern.Pattern01_Com_Num_Spec_Size_Ins

                    '<<PATTERN 2>>           
                ElseIf Regex.IsMatch(s_AcadText, "^([A-Za-z]{1,4}-{1}\d{1,6}-{1}[A-Za-z]{1,4}\d{0,3}[A-Za-z]{0,2}-{1}\d{1,2}\x22)|" & _
                                     "^([A-Za-z]{1,4}-{1}\d{1,6}-{1}[A-Za-z]{1,4}\d{0,3}[A-Za-z]{0,2}-{1}\s{0,1}\d{1,2}\s{0,2}/{1}\d{1,2}\x22)") Then

                    'Debug.Print("Checked matches Pattern 2")
                    Return SFR_LineNumber_Pattern.Pattern02_Com_Dash_Num_Spec_Size

                    '<<PATTERN 3>>                
                ElseIf Regex.IsMatch(s_AcadText, "^([A-Za-z]{1,4}-{1}\d{1,6}-{1}\d{1,2}\x22-{1}[A-Za-z]{1,4}\d{0,3}[A-Za-z]{0,2})|" & _
                                     "^([A-Za-z]{1,4}-{1}\d{1,6}-{1}\d{1,2}\s{1}\d{1,2}/{1}\d{1,2}\x22-{1}[A-Za-z]{1,4}\d{0,3}[A-Za-z]{0,2})") Then

                    'Debug.Print("Checked matches Pattern 3")
                    Return SFR_LineNumber_Pattern.Pattern03_Com_Dash_Num_Size_Spec_Ins

.... etc   End If 

 

 

 

 

ADN Support Specialist
Posts: 349
Registered: ‎05-22-2006
Message 2 of 4 (290 Views)

Re: FATAL ERROR: Unhandled Access Violation Readin 0x0008 Exception at 25944c7ah

05-15-2012 12:58 PM in reply to: VB_Autocad_guy

Which line does it crash on?

Cheers,

Stephen Preston
Autodesk Developer Network
*Expert Elite*
chiefbraincloud
Posts: 750
Registered: ‎02-13-2008
Message 3 of 4 (281 Views)

Re: FATAL ERROR: Unhandled Access Violation Readin 0x0008 Exception at 25944c7ah

05-15-2012 02:34 PM in reply to: VB_Autocad_guy

My only thought is that you have much more patience than I have with setting up regular expressions ;-)

 

Dave O.                                                                  Sig-Logos32.png
Distinguished Contributor
VB_Autocad_guy
Posts: 136
Registered: ‎07-24-2009
Message 4 of 4 (277 Views)

Re: FATAL ERROR: Unhandled Access Violation Readin 0x0008 Exception at 25944c7ah

05-15-2012 02:43 PM in reply to: VB_Autocad_guy
Lol! Thanks cheifbraincloud ha ha ...
Yah I'll keep hacking away at it. :smileyhappy:
Let you know what I find out.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community