Skip to content

Crash in Quartzcore when adding new layer to UIView #1927

Open

Description

A basic sample app that I am creating builds fine but gives the following error on deploying to local machine.
I am using latest visual studio 2015 community version and win 10 sdk 14393 version and latest WINOBJC release on Feb1st

Console error
Program: ...bug\BoltsAppLinksWinObjcSample\AppX\QuartzCore.dll
File: D:\Build\Agent9_work\5\s\Frameworks\Quart...\CALayer.mm
Line: 640

Expression: 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)BoltsAppLinksWinObjcSample.exe has triggered a breakpoint.

my code in ViewDidLoad() method
CALayer* placeHolder = [[CALayer alloc] nit];
[placeHolder setBounds:[textView bounds]];
[placeHolder setPosition:[textView center]];
[placeHolder setBackgroundColor:[UIColor blueColor].CGColor];
[[textView layer] setMasksToBounds:false];
[[textView layer] insertSublayer:placeHolder above:[textView layer]];
[textView setBackgroundColor:[UIColor clearColor]];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions