question

DonDilworth-5927 avatar image
0 Votes"
DonDilworth-5927 asked RLWA32-6355 commented

Windows stops working

My program uses Fortran and C++ via VS2017. I spawn many processes with _spawnl(). The program runs and gets the right answers. But after many cycles, Windows seems to be corrupted. Some apps won't open or show a black screen, and even the power/restart menu item won't work.

Is there any diagnostic tool I can run when this happens, to look inside Windows and see if something is amiss? I have no clue what is wrong.

c++
· 27
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Try a simple system tool: Task Manager. Check if there are enough free memory and CPU resources. Check if the number of processes, started by your code, is abnormally large. In Details tab you can also add some columns (GDI objects, Handles, Threads, etc.) to see the evolution before and after your applications.

Are you using the _P_NOWAIT argument for _spawnl?


0 Votes 0 ·

Yes, I use _P_NOWAIT.

iI have followed the Task Manager as I do this, and the results are as follows:

Before: Threads = 3512, Handles = 83889, Memory = 3%.

While running: Threads = 3740; Handles about 120000, Memory = 4%.

Afterwards: Threads = 3421, Handles slowly comes down to about 108000, Memory = 3%.

There is nothing in the Event Viewer that looks like an error.

0 Votes 0 ·

This sounds like the same issue that was discussed here - createfilemapping-possible-memory-leak.

Did you ever manage to open a support case with Microsoft?

0 Votes 0 ·

The link you quote was from me, and I never received any advice that worked.

I don't know how to open a support case with Microsoft. I tried and got a zillion categories to choose from. I tried opening a chat with them, but I was number 309 waiting in line and gave up.

Is there any utility that can figure out what's wrong with Windows? That would be a useful clue.

0 Votes 0 ·

See if the Application Verifier tool provides some useful information. application-verifier


0 Votes 0 ·
Show more comments

0 Answers