I'm new to programming so please be patient with me

I'm trying to run a very simple code in Windows XP and in Code::Blocks with Borland Compiler (5.5, 5.82):

Code:
#include <iostream>

using namespace std;

string bla;

int main()
{
 getline(cin, bla);

 cout << "You entered: " << bla << endl;

}
as i press F9 to compile, the program crashes (it shows the usual "b.exe has encountered a problem and needs to close. We are sorry for the inconvenience." window)

and in cmd it returns 0xC0000005 error

If i use just "cin>>" everything works normaly...

What is the problem and what can i do to manage it?