xlab / c-for-go

Automatic C-Go Bindings Generator for Go Programming Language
https://c.for-go.com
MIT License
1.5k stars 119 forks source link

Current version causes vulkan to crash (on my Mac in any case) #121

Open rcoreilly opened 2 years ago

rcoreilly commented 2 years ago

See https://github.com/vulkan-go/vulkan/issues/43 and https://github.com/vulkan-go/vulkan/pull/62 for details.

I could replicate the issue by just running c-for-go on the current vulkan-go/vulkan code. You could presumably figure out what is causing the problem by trying out some of the incremental versions..

Some obvious changes in the generated code include the runtime.KeepAlive calls. I tried to turn it off but couldn't figure out how to turn that off -- tried adding SafeStrings: false in config.

nergdron commented 2 years ago

this is likely caused by #120.