Hello, On 17. Mar 2010, at 22:30, cpapado [via Software] wrote:
> However, this does not work obviously (ConfigEvent struct sizes are > calculated statically which messes up with the transmission of the packet and > causes weird memory corruption errors left and right). > > I am sort of stuck as to what is the optimal way to get such information from > my head node to my render clients in my application. If the amount of data is relatively small: const size_t size = sizeof(ConfigEvent) + extraSize; ConfigEvent* event = reinterpret_cast< ConfigEvent* >( alloca( size )); event->size = size; event->type = ...; memcpy( event + 1, extraData, extraSize ); config->sendEvent( event ); ...otherwise use malloc and cache the packet somewhere. HTH, Stefan. -- View this message in context: http://n2.nabble.com/Propagating-non-static-size-input-data-through-ConfigEvents-tp4753149p4772981.html Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.
_______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

