rishav, I suspect most (all?) of the Pascal errors you are thinking about will terminate your application unless you handle them with a try statement.
But, maybe you are seeing some OS errors ? The fact you know about stdout and stderr indicates you may be a linux user. GTK2, in particular generates lots of, mostly, insignificant errors. Usually distribution/desktop dependent. Damm nuisance but not much can be done about them.
Davo