DoCaptureCenter option in TEve

Hi Matev,
In the EVE event display, picking up a rotation centre is very useful. However, in current version of TEve, the operation of pick up centre is a little bit complex, (need first to click file->edit object, then go to the main Eve page, enter Guide sub page, find pick center button…). Thus I want to make a direct pick center button in the options page. To do this, I use the DoCaptureCenter function defined in TGLViewerEditor class as following, but it doesn’t really work:

        TGLViewerEditor* K = 0;
        TGPictureButton* c = 0;
        c = new TGPictureButton(hf, gClient->GetPicture(icondir + "GoHome.gif"));
        c->Connect("Clicked()", "TGLViewerEditor", K, "DoCaptureCenter()");
   It compiles, but when I execute the display and click on the pick center button, it gives a segmentation fault. How to fix this problem?

root [0] 
 *** Break *** segmentation violation

There was a crash (#7 0x0082198d in SigHandler () from /home/manqi/Softwares/root/5.26.00/lib/
This is the entire stack trace of all threads:
#0  0x00524416 in __kernel_vsyscall ()
#1  0x01e89f53 in __waitpid_nocancel () from /lib/
#2  0x01e2433b in do_system () from /lib/
#3  0x064ee59d in system () from /lib/
#4  0x0081b27d in TUnixSystem::Exec () from /home/manqi/Softwares/root/5.26.00/lib/
#5  0x00820cae in TUnixSystem::StackTrace () from /home/manqi/Softwares/root/5.26.00/lib/
#6  0x0082188d in TUnixSystem::DispatchSignals () from /home/manqi/Softwares/root/5.26.00/lib/
#7  0x0082198d in SigHandler () from /home/manqi/Softwares/root/5.26.00/lib/
#8  0x00817ec2 in sighandler () from /home/manqi/Softwares/root/5.26.00/lib/
#9  <signal handler called>
#10 0x07d0f73a in TGLViewerEditor::DoCaptureCenter ()
   from /home/manqi/Softwares/root/5.26.00/lib/
#11 0x07e06de7 in G__G__GL_481_0_21 () from /home/manqi/Softwares/root/5.26.00/lib/
#12 0x00def4d2 in Cint::G__CallFunc::Execute () from /home/manqi/Softwares/root/5.26.00/lib/
#13 0x0080568b in TCint::CallFunc_Exec () from /home/manqi/Softwares/root/5.26.00/lib/
#14 0x00766e2d in TQConnection::ExecuteMethod () from /home/manqi/Softwares/root/5.26.00/lib/
#15 0x0076d89e in TQObject::Emit () from /home/manqi/Softwares/root/5.26.00/lib/
#16 0x053f65aa in TGButton::Clicked () from /home/manqi/Softwares/root/5.26.00/lib/
#17 0x053e77f4 in TGButton::EmitSignals () from /home/manqi/Softwares/root/5.26.00/lib/
#18 0x053e76d6 in TGButton::SetState () from /home/manqi/Softwares/root/5.26.00/lib/
#19 0x053e9cf3 in TGButton::HandleButton () from /home/manqi/Softwares/root/5.26.00/lib/
#20 0x054446a2 in TGFrame::HandleEvent () from /home/manqi/Softwares/root/5.26.00/lib/
#21 0x054062fd in TGClient::HandleEvent () from /home/manqi/Softwares/root/5.26.00/lib/
#22 0x05406d64 in TGClient::ProcessOneEvent () from /home/manqi/Softwares/root/5.26.00/lib/
#23 0x05406ddd in TGClient::HandleInput () from /home/manqi/Softwares/root/5.26.00/lib/
#24 0x05406e10 in TGInputHandler::Notify () from /home/manqi/Softwares/root/5.26.00/lib/
#25 0x0081ef7f in TUnixSystem::DispatchOneEvent () from /home/manqi/Softwares/root/5.26.00/lib/
#26 0x0078e3a1 in TSystem::InnerLoop () from /home/manqi/Softwares/root/5.26.00/lib/
#27 0x0079126b in TSystem::Run () from /home/manqi/Softwares/root/5.26.00/lib/
#28 0x00725327 in TApplication::Run () from /home/manqi/Softwares/root/5.26.00/lib/
#29 0x004cae44 in TRint::Run () from /home/manqi/Softwares/root/5.26.00/lib/
#30 0x0806a40e in main (argc=2, argv=0xbfa8c344) at

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
[]( Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#10 0x07d0f73a in TGLViewerEditor::DoCaptureCenter ()
   from /home/manqi/Softwares/root/5.26.00/lib/

Root > 
root [0]