Unknown Access Violation Error
Hi, I am getting the error in the picture below, but I am not doing anything that would cause the error to happen. This is the "NativeNewContext" function
And this is the function in c++
9 Replies
do you have other calls like that? error could be caused before of that point (does crash occour if that method is not called?)
would you mind trying stdcall instead of cdecl?
I have other pinvokes but they are for other dlls
all the ones for this specific dll is in this file
and the program runs if I dont call any of these i.e. no other errors
no dice with stdcall
same error at the same place
ok then so does just calling NativeNewContext cause a crash? because if it is then since it's so short it could be worth looking at disassembly
ALSO i would like to point out that the import
is pointing to
msdfRenderContext
and not msdfNewContext
Omg
Omfg
How did I not notice the name
now one of the dll functions are not being exported
it's like I am being punished
sadly programming can be like that
I fixed the above but now I get the acces violation here