AdvancedSharpAdbClient icon indicating copy to clipboard operation
AdvancedSharpAdbClient copied to clipboard

System.ArgumentOutOfRangeException: ''

Open megapro17 opened this issue 2 years ago • 5 comments

What can we do for you?

When I'm using GetDirectoryListing for the second time, it shows me an empty exception. What's wrong? image

megapro17 avatar May 29 '22 01:05 megapro17

Please use this template if you find a bug. Or please tell us which version of nuget package and dotnet platform you used.

wherewhere avatar May 30 '22 05:05 wherewhere

is this a bug or i'm doing something wrong?? Latest version, dotnet core 6

megapro17 avatar May 30 '22 06:05 megapro17

It's a bug. But I don't know how to fix it. You can renew the class and it will functional...

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service = new SyncService(client, device);
var b = service.GetDirectoryListing("/sdcard");

wherewhere avatar May 30 '22 14:05 wherewhere

try to call service.Open(), like this

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service.Open();
var b = service.GetDirectoryListing("/sdcard");

yungd1plomat avatar Jun 01 '22 11:06 yungd1plomat

try to call service.Open(), like this

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service.Open();
var b = service.GetDirectoryListing("/sdcard");

Sorry, it's not functional 🤣. The SyncService can only use once. It will get nothing if you try to use it in second time...

wherewhere avatar Jun 01 '22 14:06 wherewhere