Exactly, sorry for the typo.

   thorsten

Olesen, Mark schrieb:
I just tried that and it is now giving me a segmentation fault... I am
using the following line: file.write(reinterpret_cast<const char*>(size), 4);

The segfault isn't surprising. If you obtain the address of the variable
first, I suspect you'll be much happier:

  int size;
  file.write(reinterpret_cast<const char*>(&size), sizeof(size));


/mark
This e-mail message and any attachments may contain legally privileged, confidential or proprietary Information, or information otherwise protected by law of EMCON Technologies, its affiliates, or third parties. This notice serves as marking of its "Confidential" status as defined in any confidentiality agreements concerning the sender and recipient. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer.


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to