gtkmm is strictly c++. Making the change to Carbon instead of Cocoa got rid of the seg fault.<br><br>Now I just need to figure out how to get my test image to show up properly.<br><br>Thanks for the help!<br><br>Justin<br>
<br><div class="gmail_quote">On Thu, Feb 5, 2009 at 1:56 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
is gtkmm based on Cocoa or Carbon? (C++ or Objective-C). If it is purely C++ then you probably need to build VTK with CARBON=ON and COCOA=OFF.<br>
<br>
HTH<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
On Feb 5, 2009, at 2:51 PM, Justin Giles wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
I'm new to VTK. I've been working on an interface using the GTK/gtkmm toolkit and have recently started trying to add a graphing element to it. I have installed VTK 5.3 and it compiles fine and the examples work fine. In an attempt to test adding a vtk view into my application, I installed vtkmm. Compiling all went fine. However, when I run the application it seg faults when trying to add in the renderer. This happens in both the vtkmm examples as well as my gtkmm application. I realize that this could be due to the merging of the gtk & vtk environments and not related to vtk at all, but I'm just looking for a little direction.<br>
<br>
See gdb output below:<br>
<br>
Program received signal EXC_BAD_ACCESS, Could not access memory.<br>
Reason: KERN_INVALID_ADDRESS at address: 0x79546587<br>
0x91019688 in objc_msgSend ()<br>
(gdb) backtrace<br>
#0 0x91019688 in objc_msgSend ()<br>
#1 0x931e3306 in CFRetain ()<br>
#2 0x931b2a54 in CFDictionarySetValue ()<br>
#3 0x92b32efe in -[NSCFDictionary setObject:forKey:] ()<br>
#4 0x01fb86b8 in vtkCocoaRenderWindow::SetWindowId ()<br>
#5 0x0023fab6 in Gtk::Vtk::RenderingArea::on_realize (this=0xbfffeb80) at renderingarea.cc:34<br>
#6 0x023243d2 in Gtk::Widget_Class::realize_callback ()<br>
<br>
<br>
Thanks for any and all help!<br>
<br>
Justin<br></div></div>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
<br>
</blockquote></div><br>