Save/restor preset for a vst plugin

Hello eveyone I followed the saving and retriving parameters. I am working on a drumpad Vst and it works fine but when I want to save and restor preset on fl studio for example my software crash. thank you for your help ! have a good week end