Mike,
thanks for all your input i really appreciate it. I have changed the test application from TBfiletransferclient to the BFObjectpushclient and I get the follwoing error when trying to 'Open'.
EOSError error raised, with message.: System Error. Code 10022. An invalid argument was supplied.
Again here is my code I am using
procedure TForm1.Button1Click(Sender: TObject);
Var
Devices: TBFBluetoothDevices;
Loop: Integer;
AFileName: String;
begin
Devices := BFBluetoothDiscovery1.Discovery(Nil, False, False);
AFileName := 'C:\Users\Lee\Pictures\kwikdata.gif';
if Assigned(Devices) then begin
for Loop := 0 to Devices.Count - 1 do
with BFObjectPushClient1 do begin
BluetoothTransport.Device := Devices[Loop];
try
Open;
try
Put(AFileName); // Send file
except
on E : Exception do
ShowMessage('File Send Failed'+#13+E.ClassName+' error raised, with message : '+E.Message);
end;
Close;
except
on E : Exception do
ShowMessage('Open Falied'+#13+E.ClassName+' error raised, with message : '+E.Message);
end;
end;
Devices.Free;
end;
Close;
end;
Thanks again for you help.
Lee