DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Access Violation Error

I have a fairly hefty script that crashes with an access violation error. After it happens once, I can rerun the script and it executes. It is as if the memory is not being allocated quickly enough, but after it crashes the memory is not freed and is available to run the script. Is there anyway to correct this?

Here are some log entrees that have been generated by the error:
11 **** Error registered on 4/7/2005 at 11:56:24 AM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "Ch(132):=Ch(132)*9.80665"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
12 **** Error registered on 4/7/2005 at 11:56:24 AM [Message file:GFSAUTED / Text area:4 / Text number:1]
Error in (Row: 590, Column: 5):
Runtime Error while executing command "Ch(132):=Ch(132)*9.80665"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
16 **** Error registered on 4/7/2005 at 12:00:52 PM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "CHNCFCFILTCALC(55,61,124,"FIR_100")"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:»"
17 **** Error registered on 4/7/2005 at 12:00:52 PM [Message file:GFSAUTED / Text area:4 / Text number:1]
Error in (Row: 776, Column: 3):
Runtime Error while executing command "CHNCFCFILTCALC(55,61,124,"FIR_100")"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:»"
19 **** Error registered on 4/7/2005 at 12:05:11 PM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "CHNALLOC("11RIBSLURDSIACYA",7500)"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
24 **** Error registered on 4/12/2005 at 8:27:12 AM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "STATBLOCKCALC("Channel","1-2501",292)"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
25 **** Error registered on 4/12/2005 at 8:27:12 AM [Message file:GFSAUTED / Text area:4 / Text number:1]
Error in (Row: 694, Column: 2):
Runtime Error while executing command "STATBLOCKCALC("Channel","1-2501",292)"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
27 **** Error registered on 4/12/2005 at 10:24:24 AM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "Ch(91):=Ch(91)-9.22703324709813E-02"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
28 **** Error registered on 4/12/2005 at 10:24:24 AM [Message file:GFSAUTED / Text area:4 / Text number:1]
Error in (Row: 698, Column: 2):
Runtime Error while executing command "Ch(91):=Ch(91)-9.22703324709813E-02"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
29 **** Error registered on 4/12/2005 at 10:37:46 AM [Message file:GLOBERR / Text area:1 / Text number:409]
Runtime Error while executing command "Ch(98):=Ch(98)*9.80665"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
30 **** Error registered on 4/12/2005 at 10:37:46 AM [Message file:GFSAUTED / Text area:4 / Text number:1]
Error in (Row: 590, Column: 5):
Runtime Error while executing command "Ch(98):=Ch(98)*9.80665"
Error type: ACCESS VIOLATION
Error address: 00000000
Module name:
0 Kudos
Message 1 of 24
(6,690 Views)
More information.
DiaDEM: 9.10.2260 20040319 20041122
USI:1.1.1.2254
OS: Windows 2000 5.0.2195 sp 4
Hardware: 1794.0 MHz (TSC)
255MB (virtual 64kB to 2GB)

Thanx.
0 Kudos
Message 2 of 24
(6,666 Views)
Hi punkmonkey,

We'll need to reproduce this here to debug. Does it happen every time or intermittantly? Please send over all files required to reproduce the problem, and we'll try to figure out what is going on.

Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 3 of 24
(6,662 Views)
Do you have a FTP site? I have about 20Meg of script and support files to send to you not to mention the data itself.
The error only happens on two or three machines here and it only happens the first time you run the script after you open DIAdem. If you leave DIAdem open and restart the script, everything works fine.
I will need to talk to management about sending data files to verify. All our data is proprietary of our customer so it could be a sticky wicket to provide.
0 Kudos
Message 4 of 24
(6,661 Views)
Hi punkmonkey,

The incoming ftp site is:

ftp://ftp.ni.com/incoming

Brad Turpin
DIadem Product Support Engineer
National Instruments
0 Kudos
Message 5 of 24
(6,644 Views)
Hi PunkMonkey,

Does this error show up with your data only? Have you tried some smaller set of data with your script?

If you see the error with only one set of data then it would be helpful if you could provide properties of that data set.

If it happens with any data then you can just attach the script causing the problem.

If you see the errors on few computers then it probably is because of some script running during the start of DIAdem. I would suggest looking for differences between the computer where it's working and where it's not working.

I hope it is helpful,
Rajiv
0 Kudos
Message 6 of 24
(6,641 Views)
Management has allowed me to send some data. I have to strip comments and thing like that out but it should work fine. It happens with any data. I am going to see if I can get it to happen on a smaller script set. (I'm fairly confident I can.) I will get it to you soon. Thanx for your effort so far.
0 Kudos
Message 7 of 24
(6,635 Views)
Sent a bare bones processing routine. It is in the FTP as "TRC Diadem Debug.zip" You will need an ODBC connection called "ISOMnemonics" to the Access Data base provided. The data file is small but I error out before it is done. I only get the error after I first open DIAdem. If I shut down Diadem and restart, when I run the autosrquence again it will crash. After error, if I rerun the script it completes. The root script is processing.vbs.

If you need anything else, let me know.
Thanx.
0 Kudos
Message 8 of 24
(6,626 Views)
Hello Punkmonkey,

I tried the files you sent and I cannot see the same problem here. I created the ODBC connection and loaded the Processing.vbs. I then ran and it prompts me for the DAT and XLS files and then runs to completion. Can you try this script on annother computer and see if you see the same behavior?

Thanks,
Caroline
National Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 9 of 24
(6,605 Views)
Hello,

I have gotten the Access Violation error in the past. In my case, I isolated it to the way DIAdem creates channel groups. Please see the attached script. If variable "YouWantThisToFail" is true, the script will create a channel group then go into a loop that creates and deletes channels in the group. If this is false, the group is not created before executing the channel create/delete loop.

On my machine, if YouWantThisToFail=True, the script will fail after executing a few times. When this variable is false it will run all day w/o the Access Violation error.

I discovered this in a script that created and deleted many temporary channels. I isolated it to the case described above. My work around is to have DIAdem create channel groups implicitly with the "group name\channel name" naming convention. Since I started doing that, I have had no problems.

Thanks for your attention and I hope this helps.
0 Kudos
Message 10 of 24
(6,585 Views)