Jump to content

LV 8.6 Registry Bug


IanH

Recommended Posts

Anyone else notice a memory leak in 8.6 when reading a registry item? I use the registry to store calibration values which are then read everytime that sensor is polled (every 100 ms). The memory leak WASN'T there in 8.21 but now in 8.6 it definatly is. Since I call those registry values very often it very quickly sucks up WAAAYY too much memory and crashes LV.

I am calling the registry entries in the following manner.

Open Key

Read Value

Close Key

P.S. This is my first post. Hello to everyone!

-Ian

Link to comment

post-14244-1229626471.jpg?width=400



Sorry for the un-cleanness of the code.

The calibrations are logged into HKLM\Software\SPC Rig\Calibrations under string names AmpMax and AmpMin. They vary the 4-20 mA scaling to "calibrate".

HKLM\Software\SPC Rig\Calibrations is opened. The refnum is passed to Read Value to read AmpMax, its refnum is then passed to AmpMin, then the refnum is passed to Close Key. The missing Vi (?) is a linear scaling vi that it won't load because I saved it in 8.6.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.