Thursday, November 1, 2007
Never instanciate R classes on the heap directly
A Symbian R class can be seen as a "handle to a resource". Some examples: RBuf is a resource handle to a buffer. RSocket is a handle to a "socket" resource provided by the RSockServ which is also a handle to a resouce aka the socket server. It does not make sense to instanciate such a class on the heap because instanciation on the stack works well. There is no necessity to do it.