Skip to content

Commit 72953bf

Browse files
committed
v4.0 dotnet fixes
1 parent 3552562 commit 72953bf

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

binding/dotnet/Rhino/Rhino.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public Inference GetInference()
436436
if (status != RhinoStatus.SUCCESS)
437437
{
438438
string[] messageStack = GetMessageStack();
439-
throw RhinoStatusToException(status, "Failed to reset");
439+
throw RhinoStatusToException(status, "Failed to reset", messageStack);
440440
}
441441

442442
return new Inference(isUnderstood, intent, slots);
@@ -480,10 +480,9 @@ public static string[] GetAvailableDevices()
480480
out numDevices);
481481
if (status != RhinoStatus.SUCCESS)
482482
{
483-
throw PvStatusToException(
483+
throw RhinoStatusToException(
484484
status,
485-
"Get available devices failed",
486-
GetMessageStack());
485+
"Get available devices failed");
487486
}
488487

489488
string[] devices = new string[numDevices];

demo/dotnet/RhinoDemo/FileDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static void Main(string[] args)
276276
return;
277277
}
278278

279-
if (showAvailableDevices)
279+
if (showInferenceDevices)
280280
{
281281
Console.WriteLine(string.Join(Environment.NewLine, Rhino.GetAvailableDevices()));
282282
return;

demo/dotnet/RhinoDemo/MicDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public static void Main(string[] args)
323323
return;
324324
}
325325

326-
if (showAvailableDevices)
326+
if (showInferenceDevices)
327327
{
328328
Console.WriteLine(string.Join(Environment.NewLine, Rhino.GetAvailableDevices()));
329329
return;

0 commit comments

Comments
 (0)