How to fix and debug an error of access violation.

Hello

I'm stuck with an access violation error that requires my exe to stop construction. I tried also to the development environment, but it's the same here. The error occurs after 5-60 minutes.

I played a bit with the disabling of a portion of the program where it was possible and I think that I am now able to accuse the vi 'gastimer.vi '. But since this vi leads through the measurement procedure, there are some commands coming out which I was not able to map one to one.

My question is: what are the causes access violation errors? I have no call from dll, no third-party library, the communication of material is made series of COM ports. The principle of the architecture is something adapted from producer to consumer loop, except that I often have more than one consumer, so I called them like loop controller - multiple tasks. Communication within this loop (tasks) are by cluster queue enumerator with a Variant.

Indictments vi 'gastimer.vi' is passed an older and simpler architecture. This vi works with the structure of sequence and a large number of local variables.

Since I test the sensors on their reaction to the concentration of gas I have 10 agrees to which I am listening at the same time.

What styles or architecture are subject to access violations? Where can they go? where should I look more carefully in the code?

How can I use the desktop execution trace toolkit for more information on the cause of access violation?

Attached are two different lvlog, but I guess having the same source of error. In the second lvlog are two named vi. What do have to do with the access violation error? Can what information I get these files lvlog?

Last attachment shows a fatal runtime error that happens quite a bit frequently in the recent time when working with this project. Could there be a connection, probably a vi crashed, typedef or something else?

Thanks for any help

U. Siegenthaler

I solved the problem. The accident moved no more.

I found a bug in my queue reference interview. I have a record where can I register reference queue and remove them again of this register. The bug was that under certain conditions, I deleted the reference of the bad queue from the registry. This bug had to the fact that there was a reference to queue in the registry that should have been removed. The application now tried to place an element in this Ref queue where, at the same time elsewhere in the application process tried to release this reference to queue. Apparently, if these two events occure at the same time, or when a synchronization that gives an access violation crash.

My suggestion for all of you with an access violation crash: take a look at your reference to queue maintaince and check if you publish queues at the same time you're items from the queue.

Best regards and thanks for the help

URS

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Use the certificate self-signed on TS 2008R2

    Hello reader,. We use Firefox on a Terminal server with about 20 servers server farm environment.We use a lot of intranet sites for which we have the certificate self-signed by our domain controller. In Firefox users get prompt security sec_error_unk

  • Can I remove a success?

    I accidentally left Strava for the return trip the other day. My watch thought was amazing and gave me the achievements for triple and quadruplement my move and exercise objectives. I figured out how to remove my application of health activity, but t

  • Problem of Extension of RAM with Satellite Pro 6050

    Hello I bought 2 RAM sodimm 512 MB kingston KVR266X64SC25/512.When I insert one of them with is a sodimm RAM (128 MB), the departure of SP6050 without problem, and the bios shows the amount of Ram is 640 MB (the 2 Ram sodimm is ok) But when I insert

  • Measurement Studio 2015 Installer creator vs WIX

    What is the reasoning behind the development of the new measurement feature Studio Installer?  I have never had any problem using Wix for mixed deployment c#, C++ that use Measurement Studio products.  It just seems like an odd sense to send the deve

  • Images may appear blurry even when f stop is at F22

    I bought the Canon SL1 with the standard 18-55mm IS. I am having some problems with the update. I can't attach the picture of this post to show you... But here's a description: the lower part looks a little blurry; in fact, the rest of the photo is t