Resolve Issue

To fix the detected memory error:

Investigate the Issue

Scroll to near line 94. The embedded commenting in the nqueens_memory.f90 sample file reveals the cause of the Memory leak error: The deallocate call near line 95 that releases the memory is commented out.

Access an Editor

Double-click near line 94 in the Source tab to open the nqueens_memory.f90 source file in an editor:

Change the Source Code

  1. Uncomment !deallocate (correct_solution).

  2. Save your edits (automatic if you are using the Visual Studio* IDE editor).

  3. Click the result tab to return to the Sources window.


    The Sources window data is unchanged because it is a snapshot of the source code at the time of analysis.

  4. Click the Summary button to display the Summary window.

Key Terms

Code location

Studio-specific supplemental documentation may be available at <install-dir>\<studio>\documentation\ .

Per informazioni più dettagliate sulle ottimizzazioni basate su compilatore, vedere il nostro Avviso sull'ottimizzazione.