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 270001QM9N2939 PostsACCEPTED ANSWER
Re: EXCEPTION_ACCESS_VIOLATION2010-10-25T14:03:39Z in response to kabrI'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 2700025PVX1911 PostsACCEPTED ANSWER
Re: EXCEPTION_ACCESS_VIOLATION2010-10-25T15:03:00Z in response to kabrThere 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
GregM_dxler 2700062XHM160 PostsACCEPTED ANSWER
Re: EXCEPTION_ACCESS_VIOLATION2014-03-04T19:36:27Z in response to kabr
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,