-
Notifications
You must be signed in to change notification settings - Fork 10
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
Exception thrown at X (objc.dll) in ObjCWin32.exe: 0xC0000005: Access violation reading location X. #51
Comments
Which Clang version are you using? You’ll want to use Clang 16 or later. If that’s already the case please provide a stack trace. |
There is no stack trace but here is the call stack.
|
Can you try a debug build and/or running with LLDB to see if that gives you symbols? |
|
Ok I think this is the correct version of Clang with Visual Studio, the other was for Swift
|
Ok it seems to be a Visual Studio project file issue cause compiling from the command line with cl-clang.exe works. |
Ok so I see what the issue is. I replaced the examples\ObjCWin32\ObjCWin32\ObjCWin32.mm with this #include <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSLog(@"Hello Objective-C");
return 0;
} and that causes the crash. |
Ok so I created a new project instead of working of the example project. I get this im not sure if this would be the correct output.
|
If you want to use The timezone warnings are currently expected in some cases. |
OS: Windows 11 Version 24H2 (OS Build 26100.1882)
IDE: Visual Studio 2022 Enterprise Preview
Version: Release 2023-12-28
Exception thrown at 0x00007FF9A3E128B4 (objc.dll) in ObjCWin32.exe: 0xC0000005: Access violation reading location 0x0000000000000038.
Happens on
The text was updated successfully, but these errors were encountered: