Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about Regex and List #222

Closed
redaelyks opened this issue Apr 28, 2023 · 2 comments
Closed

about Regex and List #222

redaelyks opened this issue Apr 28, 2023 · 2 comments
Labels

Comments

@redaelyks
Copy link

. . .

The question is related to:

DllExport: 1.7.4
Used Visual Studio / MSBuild: vs2017
DllType: netstandard 2


my simple DLL with that code:
`using System.Text.RegularExpressions;
using System.Runtime.InteropServices;

namespace ClassLibrary1
{
public class Class1
{
[DllExport]
public static bool example(string hex)
{
return Regex.IsMatch(hex, "[A-Fa-f0-9]{2}");
}

}

}`

JAVA call dll by JNA,but got this:
Exception in thread "main" java.lang.Error: Invalid memory access
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:418)
at com.sun.jna.Function.invoke(Function.java:361)
at com.sun.jna.Library$Handler.invoke(Library.java:270)
at $Proxy0.example(Unknown Source)
at App.main(App.java:9)
I think the problem is with the regex.What I want to ask is how to use Regex and List?

@3F
Copy link
Owner

3F commented May 3, 2023 via email

@3F
Copy link
Owner

3F commented Jun 10, 2024

Closed due to inactivity. Please provide further details if the problem still exists.

@3F 3F closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants