You can create RDP from A to B and B to A recursively, till there is available memory to run that application. When there is no more memory to run this program it will display Out of Memory Error.
Here is a blog... Just go through it. http://www.reddit.com/r/geek/comments/q2oib/teamviewer_makes_it_pretty_easy_to_create_an/ http://www.virtualmore.org/blog/?tag=teamviewer