<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Helvetica, Arial, sans-serif">Hi Tadeusz,<br>
<br>
I have been using ITK with C++/CLI with no problems... I have
experienced some "access violation exceptions" similar to yours below -
but only when using a SmartPointer which has gone out of scope and
deleted itself.<br>
<br>
Can you provide some more information, or perhaps a minimal example
which fails?<br>
<br>
Cheers<br>
<br>
Dan<br>
</font></small><br>
<a class="moz-txt-link-abbreviated" href="mailto:tdracz@o2.pl">tdracz@o2.pl</a> wrote:
<blockquote cite="mid002b01c6e46e$d297d860$0201a8c0@Main" type="cite">
<pre wrap="">Hello,
I have created a sample C++ managed windows forms application that is
supposed to use ITK.
I have added all includes as in a normal unmanaged c++ project. It compiles
without errors and warnings.
But when executed, it throws an exception just at the start. Here is the
contents of the Output window:
First-chance exception at 0x7c96cc82 in App.exe: 0xC0000005: Access
violation reading location 0x0d7cebd9.
First-chance exception at 0x781389db (msvcr80.dll) in App.exe: 0xC0000005:
Access violation writing location 0x0d7cebda.
A first chance exception of type 'System.AccessViolationException' occurred
in App.exe
A first chance exception of type
'<CrtImplementationDetails>.ModuleLoadException' occurred in msvcm80.dll
First-chance exception at 0x7c812a5b in App.exe: Microsoft C++ exception:
[rethrow] at memory location 0x00000000..
An unhandled exception of type 'System.TypeInitializationException' occurred
in Unknown Module.
Additional information: The type initializer for '<Module>' threw an
exception.
System.TypeInitializationException' occurred in Unknown Module.
The application contains just these lines that use ITK:
#include "itkImageFileReader.h"
typedef unsigned short PixelType;
const unsigned int Dimension = 3;
typedef itk::Image< PixelType, Dimension > ImageType;
Is there anybody that could help in this matter?
Regards,
Tadeusz
_______________________________________________
Insight-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
</body>
</html>