The exact thing that I do is manipulate the pokemon, set, save, eject SDcard, enter it into card, start up. And I've noticed only after using Pokegen that sometimes files in the SD card are corrupted...it's the only program I'm using besides pulling out the SDcard.
Unless pulling out the SD card is somehow corrupting the files...who knows.