Recent Questions - Stack Overflow |
- Handling memory exhausted in Windows Qt app
- can't backup etcd in rancher
- dart http package disable followRedirects
- Vue.js rendering after 2nd onClick
- Validate a String date with yyyy-MM-dd format in WSO2
- VeeValidate 4: two forms on one page
- Selenium test script is failing at this step having a lambda expression
- How can i redirect from class file to login page in mvc 5
- Kubernet pod stuck the CreatingContainer status
- Cannot read property 'style' of undefined?
- I am trying to apply media query for back ground color with max and min width but browser applies query on different dimension
- select a sample of all rows but only two countries with the highest sales
- Change Boolean value into an array of object
- Lambda expression returns excluded values in array
- Calculate and collect years between dates
- How to set filter only on country boundaries with US worldview?
- Compare missing values in python pandas from another column
- How to show something to whom who share on facebook [closed]
- Need to generate PDF of form - is it possible to return HTML of an entire view *and data* to the Controller in the Action() method?
- Best way to deseriaze a JSON string into a class when the array has more than one type
- How to assume an IAM role created from another stack and apply it to all your functions in Serverless Framework
- When attempting to specify handling of whitespace characters in vim, how does one figure out character-encoding specifiers, and then implement them?
- Websocket Permessage-deflate not occuring in server -> client direction
- i want to add a voice inside ListTile, (onTab), i want to hear a voice when the user hit the ListTile tab, please help me?
- Exception: process 0 terminated with exit code 1 when use torch.multiprocessing.spawn on GPUs
- Lazy loading json list view flutter
- Simulate upload with PrimeNG file upload component?
- Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java
- Connecting to a database in Pro C using Oracle Wallet
- How to mock a single method in java
Handling memory exhausted in Windows Qt app Posted: 09 Apr 2021 08:54 AM PDT My application can use a lot of memory and I want to be able to handle running out of memory gracefully. So I do this: Where m_outOfMemoryDlg is a QDialog with a helpful message I create and hide at startup. This all works fine on macOS. I get a std::bad_alloc exception, the QDialog appears and the program shuts gracefully. But on Windows the whole OS just locks. The screen is frozen and I have to power off and back on to make it responsive. In my .pro file I added: I also added:
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment