If your SAMSUNG B5512 Galaxy Y Pro Duos is stuck or frozen, You can perform a soft reset operation. Check out how to force restart Android 2.3 Gingerbread. As a result your SAMSUNG B5512 Galaxy Y Pro Duos should reboot and start running again. Click here to find out more about soft reset operation.
Go to Menu ->Settings->Privacy->Factory data reset: Reset your settings to the factory default values and delete all your data