Hello,
can you tell me the best way to change viewcontroller in one window.
I'm starting to wonder if the technique I'm using is the best because since HIGH SIERRA, my application crash systematically after multiple view changes after X time with the following error :
ystem Integrity Protection: enabled
Notes: Translocated Process
Crashed Thread: 58 Dispatch queue: NSOperationQueue 0x604003c2b1e0 (QOS: UNSPECIFIED)
Exception Type: EXC_BAD_INSTRUCTION (SIGABRT)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
objc[73994]: NSWindowGraphicsContext object 0x600000c27500 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[73994]: NSWindowGraphicsContext object 0x604000c386c0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[73994]: NSWindowGraphicsContext object 0x600000a3f2c0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[73994]: NSWindowGraphicsContext object 0x600000a3f2c0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[73994]: NSWindowGraphicsContext object 0x60400242f700 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
To change views, I use AddSubView and RemoteSubView.
I sent this problem to Xamarin and Chris reproduced the problem by doing the same program in xCode. It's apparently an APPLE bug but I tell myself that such a huge BUG is not possible and I should not be the only one to have that.
In Chris's example, these are views that have a lot of labels, so we figured that reducing the amount of data on the view could solve the problem.
In fact, I have been testing this problem for several days, reducing the amount of data causes the problem to occur later.
So can someone help me ? Is there not another way to do that ?
I can put my test application that reproduces this problem.
Thank you all
Alain