From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show picture dialog - memory?

Hello,

i am using the attached code to show a picture with size ~1MB.

The code is called as teststep under TestStand.

 

Is this correct or is there something missing like closing any references?

Is the 1MB picture removed from memory after the step is finished or do i need any other function call?

 

Currently i have a memory problem that pops up an error with winforms out of memory.

Perhaps the problem is in here?

 

Thanks

0 Kudos
Message 1 of 2
(2,656 Views)

As this is obviously a .NET interface, you have to look if there is some "unload picture" method available.

 

You run 32bit application on 64bit OS, correct?

Please check for memory fragmentation and make sure that test execution and reporting is configured for optimized memory behavior.

Also make sure not to run too many steps with default reporting or switch to On-The-Fly Reporting.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,628 Views)