hi,
i wanted to terminate my application when disconnected from
server, but i've lots of memory leak when i use the
exit() function.

this function doesn't call the proper terminating sequences.
can anyone tell me how do i kill the view, doc etc and terminate gracefully?

thanks a lot.