Can't read Stream from Message on MessageQueue

f.ritzf.ritz Member Posts: 13
Hi!

I would like to read a Stream at Message from MS Message Queue to the Blob-Field in Navision. But the program lock on COPYSTREAM-Function:
--Variables--
ComCom   : Automation :   'Navision Communication Component version 2'.CommunicationComponent   
InStr   : InStream
TempXMLRec : Record : "XML Data"
TempOutStr  : OutStream
--Variables-- 

ComCom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")
InMsg := InMessage;
InStr := InMsg.GetStream();
TempXMLRec."XML Request".CREATEOUTSTREAM(TempOutStr);
COPYSTREAM(TempOutStr, InStr);  //<----LOCK here!!!!!!!!!!!!!!!!!!!!

What wrong do I make?
Sign In or Register to comment.