Qt error: Exception at 0x58083aea,: read access violation at: 0x0, flags = 0x0 (first, 0x58083aea0x0
When Qt5 is used, it is okay at the beginning, and an error is returned when the result needs to be added, as shown below:
Error: Exception at 0x58083aea, code: 0xc0000005: read access violation at: 0x0, flags = 0x0 (first chance)
I haven't solved the problem for a long time. Finally, my senior friend found out that I defined an action: QAction * saveFileAction.
Create a sub-Directory: fileMenu-> addAction (saveFileAction );
However, if saveFileAction is not assigned a value or a region, it should be used without a value! So an error occurs:
Error: Exception at 0x58083aea, code: 0xc0000005: read access violation at: 0x0, flags = 0x0 (first chance)
The error was not found at the beginning, in part because it may not be reported. I encountered a problem when I added a new member variable!
Generally, this error is caused by pointer errors!
Zookeeper