The main issue that comes during the development of R extensions is the lack of documentation and even misleading documentation how the R memory manager works. The outcome of this is that your application or a third party application which uses R extensions crashes for no apparent reason and in a seemingly random place. In this articles I discuss debugging and coding strategies to isolate and repair memory errors.