When I was running a compiler for an executable program, I encountered this error:
**2023-03-29 12:55:50.408795+0200 OTEffThreshReader[24910:250037] [Window] Warning: Window QuartzWindow 0x11b429600 ordered front from a non-active application and may order beneath the active application's windows.**
**2023-03-29 12:55:50.529725+0200 OTEffThreshReader[24910:250037] [default] CGSWindowShmemCreateWithPort failed on port 0**
I guess the reason for it was that I created Canvas and didn’t activate my application correctly.
What should I do to activate my application?
This is the code snippet I tested:
TApplication* myApp = new TApplication("myApp", &argc, argv);
TCanvas* thresholds_distr = new TCanvas("c1","c1",950,10,600,400);
TH1D* h_thrs__1 = new TH1D("h1", "h1", 50, 0, 50);
Thank you for your solution. Doing this does remove the warnings I was encountering earlier.
But it lacks the convenience of using Run directly from Xcode to automate.
Thank you anyway. At least it is not ROOT’s problem.