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

example app crash when clicked button on wxMSW debug build #36

Open
kenz-gelsoft opened this issue Apr 4, 2022 · 2 comments
Open

example app crash when clicked button on wxMSW debug build #36

kenz-gelsoft opened this issue Apr 4, 2022 · 2 comments
Assignees

Comments

@kenz-gelsoft
Copy link
Owner

No description provided.

@kenz-gelsoft kenz-gelsoft self-assigned this Apr 4, 2022
@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 4, 2022

I've noticed wx debug dll and non-debug msvcrt are mixed at linking when tweaking here

pub fn from_wx_string(s: *mut c_void) -> String {
    unsafe {
        let utf8data = ffi::wxString_UTF8Data(s);
        let len = ffi::wxString_Len(s);
        return String::from_raw_parts(utf8data, len, len);
    }
}

to use CRT funcs directly or indirectly
(through wxStrdup)

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 4, 2022

crash root cause may be the mismatch, but will try the workaround mentioned here rust-lang/rust#39016 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant