If you didn't apply the AP patch, run the DS Scene Rom Tool, apply all the updates, open your ROM, and export the rom, applying the AP patch. If there is no patch available, trim the ROM, load the trimmed ROM, and then apply the patch.
A common freeze occurs when backing out of the Party menu, but this patch should fix it.
Then, we'll see if it's Pokegen that crashed the game.