Has anyone else experienced the problem that the BCP program hangs when executed trough xp_cmdshell in a trigger if it is executed after an insert statement to the same table?

I uses BCP to write to a textfile, but first I want to insert new records to a table. Of some reason the BCP process on the server hangs and can't be removed even with close process in NT resource manager.
If I execute them individually there is no problem.. And if I execute the commands in Isql_w they work fine together also..

It looks like this:

insert F9999..kvittoutskrift1
(descr, NoInvoAb, Price)
select NULL, NULL, convert(char(8),NordSum)
from F9999..Ord
where OrdNo =@OrdNo

exec master..xp_cmdshell "bcp tempdb..kvittoutskrift1 out c:kvittokvitto.txt -f c:kvittokvitto.fmt -U sa -P"

Is there any unlock command that can be applyed to a table? Like drop cursor but used on insert.. I guess thats the problem.

The BCP program seems to halt on the last row in the table becouse it writes every row to the file but never ends or finish.

Thank you for your help!!!

//Rickard