Hi, please note, if your problem is involving a temporary table rather than index creation and there's "type 4" in your error message, the problem is likely to be a SQL Server 2008 bug - http://support.microsoft.com/kb/968543
As Index creation actually involves tempdb if "SORT_IN_TEMPDB = ON", these issues may well be related.
The recommendation is to apply cumulative updates for your version of SQL server.
Our error looked like this:
Time out occurred while waiting for buffer latch -- type 4, bp 00000000FEAFB028, page 12:312752, stat 0xbc00e09, database id: 2, allocation unit id: 724228131807060/351413755606409, task 0x00000000D2220838 : 0, waittime 20700, flags 0x100000001a, owning task 0x0000000D22302808. Continuing to wait.