Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ButterworthHighpassFilter "Attempted to read or write protected memory"

I have an application that runs 24x7 measuring and analyzing data once every minute.  Once every couple of days, I receive the following error:

 

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

 

Only that measurement is effected and the application keeps functioning normally.  After adding debug statements that write to a log file I have narrowed down the error to the following line:

 

dblY = newFilter.FilterData(dblX)

 

where:

 

Dim newFilter As New Analysis.Dsp.Filters.ButterworthHighpassFilter(2, dblSampleFreq, dblCutoff)

 

Using the same dataset I am not able to reproduce this problem.  Is this potentially a memory  problem in the Analysis library?

 

I am using VB.Net 2008 and Measurement Studio's v8.6.0.189 with Alanysis.Enterprise v8.6.35.189.

 

Thanks,

Frank

0 Kudos
Message 1 of 7
(4,490 Views)

Hi Frank,

 

Please see this other discussion forum post as it sounds like it may be the same issue.

 

Cheers,

0 Kudos
Message 2 of 7
(4,471 Views)
I saw that thread.  It was posted in 2008, I thought it would not be relevant since it was related to software/firmware versions.
0 Kudos
Message 3 of 7
(4,466 Views)

 Hi Frank,

 

What operating system are you using?  If you haven't already you should try disabling DEP as a workaround because that fixed the issue in the other post?  Also, the problem in the other post seemed to be isolated to only certain machines.  Would it be possible to try on another machine and see if the behavior is reproduced?

 

Cheers, 

0 Kudos
Message 4 of 7
(4,461 Views)

We are running on Windows XP.  I will start with disabling DEP.  It does not happen often so it will take a week of running to feel confident it fixed the problem.

 

Thanks,

Frank

0 Kudos
Message 5 of 7
(4,458 Views)
DEP was disabled and the error still occurred after a week of running.
0 Kudos
Message 6 of 7
(4,372 Views)

Hi fjm1,

 

I'm sorry to hear that you're still seeing the problem.  To really dive into the cause of the error, we will need to be able to reproduce the error on our end.  Would it be possible for you to create a simple version of your code, preferably all in software, that still exhibits the issue? Please post back if and when you've uploaded the code.

Message Edited by Michael_W. on 05-06-2010 03:18 PM
0 Kudos
Message 7 of 7
(4,348 Views)