glLoadName(NULL) access violation

This is a 3D graphics application written in Visual C++ (moved to VS2019) in Windows 10. I wrote this some time ago and ported to a newer VC++ many times. It is a working program.
Now, I got a new VS2019 community version and moved this program to that for the first time.
Now when I run, I get an access violation at glLoadName(NULL). I am using x64. I did fix some pick id issue when I moved to x64 a year ago. That was fixed at that time with VS2013 and was working…
Now I do not know what caused this exception on VS2019???