Standalone C program runs without error but doesn't display histogram

The program closes right after the Draw call, you have to let it keep running. Just add #include "TApplication.h", instantiate TApplication app("app", nullptr, nullptr); at the beginning of your main and call app.Run(); right before the return 0;.

1 Like