Z
zhbj
Unregistered / Unconfirmed
GUEST, unregistred user!
var
Dlen:Cardinal ;
tream :Tmemorystream ;
lpVhdr: PVIDEOHDR
begin
tream:=Tmemorystream.Create() ;
Tream.Clear ;
Dlen:=lpVhdr^.dwBufferLength ;
tream.SetSize(Dlen) ;
Tream.Position:=0 ;
Copymemory(pointer(Longint(Tream.memory)) ,lpVhdr^.lpData,Dlen );
NmUDP1.SendStream(tream) ; //此处运行显示内存不能“Write”,退出
tream.Free ;
Dlen:Cardinal ;
tream :Tmemorystream ;
lpVhdr: PVIDEOHDR
begin
tream:=Tmemorystream.Create() ;
Tream.Clear ;
Dlen:=lpVhdr^.dwBufferLength ;
tream.SetSize(Dlen) ;
Tream.Position:=0 ;
Copymemory(pointer(Longint(Tream.memory)) ,lpVhdr^.lpData,Dlen );
NmUDP1.SendStream(tream) ; //此处运行显示内存不能“Write”,退出
tream.Free ;