[Vortex] How to correctly close a connection?

Francis Brosnan Blazquez francis at aspl.es
Tue Oct 14 18:59:37 CEST 2008

Hi Robert,

> So vortex tries to free all user stored data if a connection is
> closed? 

That's the point. vortex_connection_data_set_full is provided to
associate user defined data that has some meaning to the particular

Because Vortex is highly threaded, the API also allows to configure the
handler to be called to terminate that reference so you don't have to
worry about who or when closes the connection...

> And it assume that only pointers that can be deallocated are stored?

..vortex only deallocs those pointers that have a dealloc function

> > Looking at this point, the axl hash is trying to deallocate a
> pointer
> > (with no data; wrong address) with the associated free (maybe
> axl_free).
> Ok.
> > I'd check all calls done to store user defined data via
> > vortex_connection_set_data or vortex_connection_set_data_full. The
> > application is setting a pointer to nothing (with an associated
> dealloc
> > function built on top of free).
> Ok. I'm wondering why it crashes on Linux but not on Windows... but
> might be pure luck.

;-) Certainly. Behavior while accessing to undefined data is really OS
specific. Cheers!
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.

More information about the Vortex mailing list