Pinned topic EXCEPTION_ACCESS_VIOLATION
is there any chance to try and find out what's going wrong when you get such an error?
llandale 270001QM9N3035 Posts
Re: EXCEPTION_ACCESS_VIOLATION2010-10-25T14:03:39ZThis is the accepted answer. This is the accepted answer.I've had no luck at all reading the displayed diagnostic log, but I imagine one of the 3 clever folks here have. When you get the error you almost always ALSO get a DXL window pane trying to tell you where in the DXL the error triggered, that's far more useful.
These errors are usually due to mis-matched data types; like inserting an 'integer' into a Skip List, but retrieving an 'Object' handle.
Mathias Mamsch 2700025PVX2533 Posts
Re: EXCEPTION_ACCESS_VIOLATION2010-10-25T15:03:00ZThis is the accepted answer. This is the accepted answer.There are two kinds of exceptions/access violations. In one as Louie said you will get at least the line of DXL code where your program raised the exception. In this case usually you supplied some b.s. to your function, most of the time invalid data, which made it crash.
In the other case you will get an exception and have DOORS crash or not show the DXL code line. In this case the only opportunity you have is starting to comment out code, until the crash vanishes, then starting remove the comments until you get a clue, where you code is crashing - then you need again check for invalid data passed to a function.
Most common crash reasons I know:
- Closing Modules / Changing Edit Mode of a module (which will invalidate all handles to the objects, module you stored somewher)
- Invalid Type Casting (e.g. with Skips / Arrays, putting one type in, reading another type out)
- Invalid Skip Type (Putting numbers in a string skip)
- Memory errors (when your memory runs full, things start going bad)
- DOORS typical crashes (in V.8 you get crashes with popup menus some time)
Hope that helps, regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
bungle_77 270005XQP670 Posts
Re: EXCEPTION_ACCESS_VIOLATION2014-03-04T15:34:34ZThis is the accepted answer. This is the accepted answer.
- Mathias Mamsch 2700025PVX
how can avoid this error when i close the modules? I have many script that need to open and close many modules and randomically i get this error
GregM_dxler 2700062XHM166 Posts
Re: EXCEPTION_ACCESS_VIOLATION2014-03-04T19:36:27ZThis is the accepted answer. This is the accepted answer.
I get this error whenever I try to delete a regular expression that has not been created.
Also will get this occasionally when I don't have the right access to a module or an attribute in the module.
Hope this helps,