[Insight-users] Please help with access violation error!!! (partly solved)

Nicolaus Andratschke koegli at yahoo.com
Sun Mar 6 06:34:02 EST 2005


On WinXP, I was able to "work" around the memory
access violation by recompiling everything with shared
libs option turned off. Obviously, the êrror occurs,
when dynamically linked libraries.
As I am new to C++ (I intend to use VTK and ITK with
python scripting) I have the following questions:
1) How can I debug the dynamically linked program in
order to see where the error occurs exactly?
2) How can I get a more meaningful error message
(other than this windows dialog box), because this
exception is obviously not caught by the programs
try/catch statement?

Thanks,

NIC



--- Nicolaus Andratschke <koegli at yahoo.com> wrote:
> Date: Thu, 3 Mar 2005 12:42:29 -0800 (PST)
> From: Nicolaus Andratschke <koegli at yahoo.com>
> Subject: Please help with access violation error!!!
> To: insight-users at itk.org
> 
> Hello,
> 
> for several weeks now, I"m trying to get ITK
> examples
> working (ImageReadWrite.exe,
> DicomImageReadWrite.exe).
> I even asked the list, but so far I haven"t received
> any response.
> The problem is the following:
> Everything compiles fine (bcc5.5.1, VC6, free
> VC++Toolkit on WinXP; gcc 3.3.4 on Ubuntu Linux).
> But when I run the above mentioned example programs
> with the appropriate test images, I get "memory
> access
> violation" error. 
> E.g., on WinXP a dialog box pops up telling
> "DicomImageReadWrite.exe encountered a problem and
> needs to close" and another one telling "unhandled
> exception OxC000005: Access violation". 
> The error obviously happens when "writer->Update()"
> is
> called and the pipeline gets updated. Interestingly,
> this function gets called inside a try/catch block
> without the exception getting caught. There is no
> error message that"s written on the command line
> window.
> 
> I urgently need help with this, otherwise I need to
> give up on ITK.
> 
> Perhaps somebody could help me how to produce a
> meaningful error message.
> 
> Any help is very much appreciated.
> 
> NIC 
> 
> 
> 	
> 		
> __________________________________ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


More information about the Insight-users mailing list