load icon error

I use [loadPrcFileData("", “icon-filename esIcon.ico”)] to set program icon

The program stop on :

const WinGraphicsWindow::WindowClass &WinGraphicsWindow::
register_window_class(const WindowProperties &props) {

WindowClass wcreg(props);


The icon filename is ok


I am unable to reproduce this problem. I assume you mean it is a hard C++ crash, not a Python crash?

Does it also crash if you edit the Config.prc file to add this line and then run pview?