help with [NSAutoreleasePool drain]: This pool has already been drained, do not release it (double release).
hi
if possible explain to me how to solve this case
I'm creating an application that will show multiple windows and in each window a streaming of a security camera
in my main window i create the button to open new window for camera stream
windowCameras=[[WindowCameras alloc] initWithWindowNibName:@"WindowCameras"];
[windowCameras showWindow:self];
when i press the button in first time the window is open normally with the stream of camera
when i press the button in second time i receive this message
2018-03-25 09:33:05.054654-0300 CamView[2202:114211] *** -[NSAutoreleasePool drain]: This pool has already been drained, do not release it (double release).
in my WindowCameras objective C class is simple
videoViewCameras = [[VLCVideoView alloc] initWithFrame:[cameraViewCameras frame]];
playerCameras = [[VLCMediaPlayer alloc] initWithVideoView:videoViewCameras];
NSURL *URL = [NSURL URLWithString:urlParaMostrar];
[videoViewCameras setAutoresizingMask:NSViewHeightSizable|NSViewWidthSizable];
[playerViewCameras addSubview:videoViewCameras];
[playerCameras setMedia:[VLCMedia mediaWithURL:URL]];
[playerCameras.audio setMuted:TRUE];
[playerCameras play];
problem only by opening the window twice or more
if you open once it just does not give a problem
how i resolve this?
dario