Memory Leak?

Moderator: Ken Berry

Post Reply
tletter
Posts: 1278
Joined: Thu Jul 16, 2015 12:23 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-3632QM
ram: 16GB
Video Card: NVIDIA RTX 3080
Hard_Drive_Capacity: 1TB
Corel programs: X4,X5,X6,X7,X8,X9,X10,2018,2019,2021
Location: Canada

Memory Leak?

Post by tletter »

After completing Sharing a VSP project, I started a new project. However as can be seen in Task Manager, the VS memory utilization is still stuck at 6,041MB. The only way to release this memory is to close VS. Why would VS holding on to this memory if not for a memory leak?
memory.jpg
User avatar
aljimenez
Posts: 1107
Joined: Fri Dec 17, 2004 11:17 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell Inc. A08 4.16.2014
processor: IntelCore i7-4790 3.60GHz 4Cores 8 Logical Proc
ram: 24GB
Video Card: AMD Radeon R9 270
sound_card: AMD High Definition Audio
Hard_Drive_Capacity: 500SSD+2TB
Monitor/Display Make & Model: Three monitors, all Dell brand, one 4K
Corel programs: Visual Studio, Paintshop
Location: San Luis Obispo, CA, USA

Re: Memory Leak?

Post by aljimenez »

Maybe this indicates a memory leak, maybe not. Programs could hold buffers used in the prior project and re-use for the next project since freeing memory and reallocating is expensive, for example.
User for more than 10 years.
tletter
Posts: 1278
Joined: Thu Jul 16, 2015 12:23 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-3632QM
ram: 16GB
Video Card: NVIDIA RTX 3080
Hard_Drive_Capacity: 1TB
Corel programs: X4,X5,X6,X7,X8,X9,X10,2018,2019,2021
Location: Canada

Re: Memory Leak?

Post by tletter »

aljimenez wrote:Programs could hold buffers used in the prior project and re-use for the next project
The problem is that when another project is opened, the memory utilization increases from the previous level that VS had used, e.g. 6,041MB, and soon Windows reports "Your computer is low on memory". There is no recovery other than shutting down VS.
User avatar
aljimenez
Posts: 1107
Joined: Fri Dec 17, 2004 11:17 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell Inc. A08 4.16.2014
processor: IntelCore i7-4790 3.60GHz 4Cores 8 Logical Proc
ram: 24GB
Video Card: AMD Radeon R9 270
sound_card: AMD High Definition Audio
Hard_Drive_Capacity: 500SSD+2TB
Monitor/Display Make & Model: Three monitors, all Dell brand, one 4K
Corel programs: Visual Studio, Paintshop
Location: San Luis Obispo, CA, USA

Re: Memory Leak?

Post by aljimenez »

This may still not be considered a bug. The new project may be very different than the previous one, and this may result in inefficient use of old allocated memory. I don't think we would get any priority chasing this issue as a bug, so I recommend a VS restart, especially after a complex project is finished. I think if you do several projects in a row that are not too complex and they are similar it will probably work OK without restarting VS.
User for more than 10 years.
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Re: Memory Leak?

Post by Ken Berry »

The other thing that potentially implies a bug would be that others are reporting the same thing -- especially if their computers are telling them they are out of memory. So far you seem to be the only one with this problem...
Ken Berry
Post Reply