Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 10, 2019 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 --- Comment #1 from Jacob Carlborg <doob@me.com> --- Update the D code for the latest compiler: extern (C) int printf(in char*, ...); struct Bar { int a, b, c, d, e; } extern (Objective-C) extern class Foo { static Foo alloc() @selector("alloc"); Foo init() @selector("init"); Bar getValue() @selector("getValue"); } void main() { auto f = Foo.alloc.init; auto b = f.getValue; printf("%d\n", b.a); } -- |
May 14, 2019 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 Jacob Carlborg <doob@me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |major -- |
May 14, 2019 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 Jacob Carlborg <doob@me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |critical -- |
January 17, 2020 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |objc CC| |bugzilla@digitalmars.com -- |
December 17, 2022 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 -- |
October 09, 2023 [Issue 19017] Calling objc method returning struct segfaults | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19017 Adam D. Ruppe <destructionator@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |destructionator@gmail.com --- Comment #2 from Adam D. Ruppe <destructionator@gmail.com> --- Putting a `asm { pop RAX; }` after the getter return seems to correct things back to the proper setting but i doubt that is a right solution. I also have some trouble calling NSView.setFrame but idk if it is related or not. -- |
Copyright © 1999-2021 by the D Language Foundation