Problem in C++; program state has been reset PyROOT

Thank @etejedor, I found the problem the number of bins was to high 100000x100000.
in any case, thanks again.