You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
So when I try to run the code in a WinForms-application everything works fine.
When I try to run the same code in a WPF-application, accessBridge.EnumJvms() returns 0.
This is my code:
AccessBridge Java = new AccessBridge();
Java.Initialize();
DoEvents();
var test = Java.EnumJvms();
This is my DoEvents method for wpf (should be equivalent to WinForms Application.DoEvents()):
public static void DoEvents()
{
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate {}));
}
test.Count is always 0 in wpf.
Working fine in WinForms.
The text was updated successfully, but these errors were encountered:
Nik998Old
changed the title
Cannot get JvmList in wpf
Cannot get JvmList in wpf (.net framework 4.7.2)
May 24, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So when I try to run the code in a WinForms-application everything works fine.
When I try to run the same code in a WPF-application, accessBridge.EnumJvms() returns 0.
This is my code:
This is my DoEvents method for wpf (should be equivalent to WinForms Application.DoEvents()):
test.Count is always 0 in wpf.
Working fine in WinForms.
The text was updated successfully, but these errors were encountered: