BITMAP *bmp;
PALETTE pal;


if (key[KEY_P])
{
get_palette(pal);
bmp = create_sub_bitmap(screen, 0, 0, SCREEN_W, SCREEN_H);
save_bitmap("dump.pcx", bmp, pal);
destroy_bitmap(bmp);
ScreenSaveNumber++;
}

The Program Freezes and it DOES save an Image named dump.pcx, only it has only half of a screen shot.