Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

ACCESS_VIOLATION when calling DAQmxCreateDIChan,DAQmxCreateDOChan etc

I am getting ACCESS_VIOLATION exception  when calling DAQmxCreateDIChan,DAQmxCreateDOChan etc from my C++ application. The NIDAQmx version 20.1.0. But the same NIDAQmx version works fine in another PC. My suspicion is that PCs  with higher spec (CPU,RAM etc) is having this issue. Relevant call stack section from the exception file:

 

 
Call stack:
Address   Frame
Stack Frame:
0a5cea60  A0 D0 0C 01  88 F0 5C 0A  B0 55 EB 68  31 00 00 00   ......\..U.h1...
0a5cea70  B1 55 EB 68                                          .U.h
691E4EE4  0A5CEA74  nicsru.dll + 0x001C4EE4
Stack Frame:
0a5cea7c  BC 65 68 69  88 F0 5C 0A  78 FC FC 2C  E8 D3 0C 01   .ehi..\.x..,....
0a5cea8c  A0 D0 0C 01                                          ....
6926A3F6  0A5CEA90  setEEPROM + 0x0003A306
Stack Frame:
0a5cea98  78 FC FC 2C  BC 65 68 69  C0 EA 5C 0A  88 F0 5C 0A   x..,.ehi..\...\.
0a5ceaa8  F4 AE DC 1A  B0 6F 65 13  88 F0 5C 0A  3C AF DC 1A   .....oe...\.<...
0a5ceab8  D0 EA 5C 00  A0 40 F7 0E  78 E9 51 2E  A9 E9 51 2E   ..\..@..x.Q...Q.
0a5ceac8  00 AE DC 1A  AA E9 51 2E                             ......Q.
692EFE22  0A5CEAD0  setEEPROM + 0x000BFD32
Stack Frame:
0a5cead8  78 FC FC 2C  B0 6F 65 13  88 F0 5C 0A  00 F1 F9 71   x..,.oe...\....q
0a5ceae8  7C FF FC 2C  8C F0 5C 0A  14 FF FC 2C                |..,..\....,
71D23F33  0A5CEAF4  nNIMSEL200__tOutputTableScaleExpression__getOutputPtr + 0x00002C93
Stack Frame:
0a5ceafc  B0 6F 65 13  E8 D3 0C 01  F4 AE DC 1A  A0 FD FC 2C   .oe............,
0a5ceb0c  00 01 09 01  88 F0 5C 0A  C0 FD FC 2C  3C 32 68 69   ......\....,<2hi
0a5ceb1c  A8 02 52 2A  9B 05 D1 71  00 01 09 01  01 00 00 00   ..R*...q........
0a5ceb2c  E8 D3 0C 01                                          ....
71D1042B  0A5CEB30  nNIMAS100__tChannelTaskFacade__translateFromTableIndexToName + 0x00001B6B
Stack Frame:
0a5ceb38  7C FF FC 2C  88 F0 5C 0A  FC ED 5C 0A  88 F0 5C 0A   |..,..\...\...\.
0a5ceb48  88 F0 5C 0A  F4 AE DC 1A  0A 00 00 00  E0 B4 D8 5F   ..\............_
0a5ceb58  E8 2F 2B 1B  78 EB 5C 0A  01 00 00 00  B0 EF 2C 17   ./+.x.\.......,.
0a5ceb68  00 00 50 2A  10 00 4F 2A  80 06 50 2A  A0 06 50 2A   ..P*..O*..P*..P*
0a5ceb78  00 00 50 2A  10 00 4F 2A  60 64 50 2A  AC EC 5C 0A   ..P*..O*`dP*..\.
0a5ceb88  D1 75 2D 06  10 00 4F 2A  EE 75 2D 06  80 64 50 2A   .u-...O*.u-..dP*
0a5ceb98  FC ED 5C 0A  DC 0F 63 17  DC 0F 63 17  D0 EB 5C 0A   ..\...c...c...\.
0a5ceba8  3C AF DC 1A  0C 00 00 00  B8 EC 5C 0A  E8 2F 2B 1B   <.........\../+.
0a5cebb8  3C AF DC 1A  E0 EB 5C 0A  F8 03 C2 70  E8 2F 2B 1B   <.....\....p./+.
0a5cebc8  02 00 00 00  B0 EF 2C 17  B8 EC 5C 0A  20 EC 5C 0A   ......,...\. .\.
0a5cebd8  D6 11 C3 70  F4 EB 5C 0A  F8 03 C2 70  E8 2F 2B 1B   ...p..\....p./+.
0a5cebe8  D0 D8 3D 2E  F9 D8 3D 2E  00 EF 2C 17  FA D8 3D 2E   ..=...=...,...=.
0a5cebf8  E4 BF F9 71  35 7C 6E DA  55 37 EC 11  80 45 98 0A   ...q5|n.U7...E..
0a5cec08  09 A3 AF 63  00 00 00 00  40 C1 F9 71  0C 9F 2B 72   ...c....@..q..+r
0a5cec18  C8 05 95 06  00 00 00 00  C4 C2 F9 71  D4 CA FB 71   ...........q...q
0a5cec28  00 00 00 00  00 00 00 00  08 02 08 01  FC ED 5C 0A   ..............\.
0a5cec38  E8 31 2E 06  20 00 00 00  80 1F C9 55  A0 FD FC 2C   .1.. ......U...,
0a5cec48  3C AF DC 1A                                          <...
71D106E5  0A5CEC4C  nNIMAS100__tChannelTaskFacade__translateFromTableIndexToName + 0x00001E25
Stack Frame:
0a5cec54  00 01 09 01  7C FF FC 2C  14 01 09 01  B0 FC FC 2C   ....|..,.......,
0a5cec64  88 F0 5C 0A  50 00 07 01  00 00 00 00  A4 EC 5C 0A   ..\.P.........\.
0a5cec74  3C AF DC 1A  00 00 00 00  14 ED 5C 0A  95 47 BF 70   <.........\..G.p
0a5cec84  B8 EC 5C 0A  B0 EC 5C 0A  F8 03 C2 70  E8 2F 2B 1B   ..\...\....p./+.
0a5cec94  AF 47 BF 70  8C F0 5C 0A  14 ED 5C 0A  F4 AE DC 1A   .G.p..\...\.....
0a5ceca4  F4 AE DC 1A  2A 00 00 00  10 00 4F 2A  04 ED 5C 0A   ....*.....O*..\.
0a5cecb4  00 00 00 00  08 00 00 00  E1 83 2D 06  10 00 4F 2A   ..........-...O*
0a5cecc4  00 00 00 00  00 00 4C 2E  10 00 4F 2A  98 26 4C 2E   ......L...O*.&L.
0a5cecd4  39 D9 3D 2E  D1 75 2D 06  10 00 4F 2A  EE 75 2D 06   9.=..u-...O*.u-.
0a5cece4  D4 00 07 01  29 00 00 00  0C ED 5C 0A  9E 3D 2D 06   ....).....\..=-.
0a5cecf4  00 00 00 00  B2 32 2E 06  98 26 4C 2E  00 00 00 00   .....2...&L.....
0a5ced04  18 ED 5C 0A  E1 B2 F3 71  18 ED 5C 0A  FC B2 F3 71   ..\....q..\....q
0a5ced14  A8 26 4C 2E  28 ED 5C 0A  ED E2 F7 71  A8 26 4C 2E   .&L.(.\....q.&L.
0a5ced24  00 00 00 00  4C ED 5C 0A  0F 3C CF 71  A8 26 4C 2E   ....L.\..<.q.&L.
0a5ced34  D4 00 07 01  A8 26 4C 2E  50 00 07 01  2A 00 00 00   .....&L.P...*...
0a5ced44  10 D9 3D 2E  68 C5 CC 71  64 ED 5C 0A  D4 00 07 01   ..=.h..qd.\.....
0a5ced54  00 00 00 00  B9 58 3D 2E  A0 ED 5C 0A  D4 00 07 01   .....X=...\.....
0a5ced64  84 ED 5C 0A  CA 06 D0 71  84 ED 5C 0A  F1 06 D0 71   ..\....q..\....q
0a5ced74  A0 FD FC 2C  50 00 07 01                             ...,P...
71D0F488  0A5CED7C  nNIMAS100__tChannelTaskFacade__translateFromTableIndexToName + 0x00000BC8
Stack Frame:
0a5ced84  FC ED 5C 0A  7C FF FC 2C  88 F0 5C 0A  8C F0 5C 0A   ..\.|..,..\...\.
0a5ced94  B0 FF FC 2C  88 F0 5C 0A  E8 31 2E 06  90 58 3D 2E   ...,..\..1...X=.
0a5ceda4  B9 58 3D 2E  00 00 07 01  BA 58 3D 2E  E4 BF F9 71   .X=......X=....q
0a5cedb4  35 7C 6E DA  55 37 EC 11  80 45 98 0A  09 A3 AF 63   5|n.U7...E.....c
0a5cedc4  00 00 00 00  40 C1 F9 71  0C 9F 2B 72  C8 05 95 06   ....@..q..+r....
0a5cedd4  00 00 00 00  C4 C2 F9 71  D4 CA FB 71  00 00 00 00   .......q...q....
0a5cede4  00 00 00 00  88 F0 5C 0A  C0 00 00 2D  20 01 00 2D   ......\....- ..-
0a5cedf4  00 22 D0 71  20 01 00 2D  00 EE 5C 0A  50 00 09 01   .".q ..-..\.P...
0a5cee04  30 DD 51 2E  00 00 00 00  50 00 07 01                0.Q.....P...
71D06740  0A5CEE10  nNIMUCK100__tORBReflectionAdapter<nNIMEL200__iTaskFacade>_____CPPKRLCast + 0x00008DB0
Stack Frame:
0a5cee18  01 00 00 00  14 01 09 01  88 F0 5C 0A  B0 FF FC 2C   ..........\....,
0a5cee28  00 EF 5C 0A  28 DD 51 2E  30 DD 51 2E  40 DD 51 2E   ..\.(.Q.0.Q.@.Q.
0a5cee38  30 DD 51 2E  00 00 00 00  50 00 07 01  E4 BF F9 71   0.Q.....P......q
0a5cee48  03 DA A3 1B  56 37 EC 11  80 1F C9 55  70 B5 AB 45   ....V7.....Up..E
0a5cee58  E4 FF FF FF  A0 2B 2B 72  0C 9F 2B 72  00 00 00 00   .....++r..+r....
0a5cee68  00 00 00 00  0C 2B 2B 72  D4 CA FB 71  AA 26 4C 2E   .....++r...q.&L.
71D02334  0A5CEE78  nNIMUCK100__tORBReflectionAdapter<nNIMEL200__iTaskFacade>_____CPPKRLCast + 0x000049A4
Stack Frame:
0a5cee80  00 EF 5C 0A  88 F0 5C 0A  30 F7 52 2A  80 F7 52 2A   ..\...\.0.R*..R*
0a5cee90  88 F0 5C 0A  00 00 00 00  B2 32 2E 06  70 84 55 2E   ..\......2..p.U.
0a5ceea0  B0 FF FC 2C  B0 24 0C 72  B4 EE 5C 0A                ...,.$.r..\.
71E63A9A  0A5CEEAC  nNIMSAI100__configureTimingSourceSignalFromTask + 0x00000C5A
Stack Frame:
0a5ceeb4  B4 28 00 00  A7 27 00 00  00 EF 5C 0A  50 F0 5C 0A   .(...'....\.P.\.
0a5ceec4  00 00 00 00  58 25 0C 72  88 F0 5C 0A  00 00 00 00   ....X%.r..\.....
0a5ceed4  88 F0 5C 0A  20 64 27 72  10 00 4F 2A  80 84 55 2E   ..\. d'r..O*..U.
0a5ceee4  9A 84 55 2E  00 F0 5C 0A  9C 84 55 2E  50 00 50 2A   ..U...\...U.P.P*
0a5ceef4  50 00 50 2A  00 26 4C 2E  60 00 50 2A  20 2A FA 71   P.P*.&L.`.P* *.q
0a5cef04  00 00 00 00  00 00 00 00  18 DD 51 2E  F8 02 52 2A   ..........Q...R*
0a5cef14  30 EF 5C 0A  B0 24 0C 72  B0 FF FC 2C  00 00 00 00   0.\..$.r...,....
0a5cef24  04 00 00 00  00 00 00 00  40 DD 51 2E                ........@.Q.
71E647FC  0A5CEF30  nNIMSAI100__configureTimingSourceSignalFromTask + 0x000019BC
Stack Frame:
0a5cef38  78 EF 5C 0A  70 EF 5C 0A  B4 28 00 00  A7 27 00 00   x.\.p.\..(...'..
0a5cef48  50 F0 5C 0A  00 00 00 00  58 25 0C 72  00 00 00 00   P.\.....X%.r....
0a5cef58  88 F0 5C 0A  90 00 50 2A  58 25 0C 72  EC F1 DA 61   ..\...P*X%.r...a
0a5cef68  F8 02 52 00  B0 FF FC 2C  00 F9 DA 61  F8 02 52 2A   ..R....,...a..R*
0a5cef78  00 47 0C 72  80 F7 52 2A  A8 26 4C 2E  AA 26 4C 2E   .G.r..R*.&L..&L.
0a5cef88  00 A5 21 08  AC 26 4C 2E  90 03 F7 08  C4 1D DB 61   ..!..&L........a
0a5cef98  F8 02 52 2A  08 03 52 2A  00 F0 5C 0A  09 03 52 2A   ..R*..R*..\...R*
0a5cefa8  C4 1D DB 61  74 F0 5C 0A  6E 4F B6 61  10 00 00 00   ...at.\.nO.a....
0a5cefb8  10 00 4F 2A  10 F0 5C 0A  00 00 00 00  04 00 00 00   ..O*..\.........
0a5cefc8  E1 83 2D 06  10 00 4F 2A  00 00 00 00  20 00 00 00   ..-...O*.... ...
0a5cefd8  10 00 00 00  20 00 00 00  23 3D 2D 06  10 00 56 06   .... ...#=-...V.
0a5cefe8  20 00 00 00  00 00 00 00  10 00 00 00  0C F0 5C 0A    .............\.
0a5ceff8  00 03 F7 08  E8 31 2E 06  20 00 00 00  00 00 00 00   .....1.. .......
0a5cf008  50 C9 5B 06  00 00 00 00                             P.[.....
71E64DDA  0A5CF010  nNIMSAI100__MAPICreateChannel + 0x0000024A
Stack Frame:
0a5cf018  B0 24 0C 72  B0 F0 5C 0A  A0 F0 5C 0A  B4 28 00 00   .$.r..\...\..(..
0a5cf028  A7 27 00 00  00 00 00 00  50 F0 5C 0A  00 00 00 00   .'......P.\.....
0a5cf038  58 25 0C 72  88 F0 5C 0A  00 00 00 00  50 C9 5B 06   X%.r..\.....P.[.
0a5cf048  90 03 F7 08  00 00 00 00  90 00 50 2A  90 00 50 2A   ..........P*..P*
0a5cf058  00 00 00 00  A0 00 50 2A  00 00 00 00                ......P*....
71E69B8A  0A5CF064  nNIMSAI100__MAPICreateDILineChan + 0x0000007A
Stack Frame:
0a5cf06c  B0 24 0C 72  A0 F0 5C 0A  B0 F0 5C 0A  58 25 0C 72   .$.r..\...\.X%.r
0a5cf07c  88 F0 5C 0A  00 00 00 00  38 D6 25 08  00 00 00 00   ..\.....8.%.....
0a5cf08c  00 00 00 00  B0 24 0C 72  00 00 00 00  50 00 50 2A   .....$.r....P.P*
0a5cf09c  AC F0 5C 0A  28 50 13 01  48 50 13 01  00 00 00 00   ..\.(P..HP......
0a5cf0ac  4A 50 13 01  20 84 55 2E  3A 84 55 2E  00 00 00 00   JP.. .U.:.U.....
0a5cf0bc  3C 84 55 2E  01 00 00 00  00 00 00 00  00 00 00 00   <.U.............
0a5cf0cc  00 00 00 00  50 00 50 2A  58 25 0C 72  58 25 0C 72   ....P.P*X%.rX%.r
0a5cf0dc  88 F0 5C 0A  B0 24 0C 72  00 00 00 00  00 00 00 00   ..\..$.r........
0a5cf0ec  00 00 00 00  60 D8 DF 5F  90 B5 EC 76  00 F1 5C 0A   ....`.._...v..\.
0a5cf0fc  F9 32 71 64  28 E3 7D 64  E7 32 71 64  42 C3 2A 57   .2qd(.}d.2qdB.*W
0a5cf10c  00 00 00 00  38 D6 25 08  90 03 F7 08  31 00 00 00   ....8.%.....1...
0a5cf11c  08 F1 5C 0A  00 00 00 00  34 F2 5C 0A  D0 CC 72 64   ..\.....4.\...rd
0a5cf12c  D6 F5 0A 39  FE FF FF FF  E7 32 71 64  97 30 71 64   ...9.....2qd.0qd
0a5cf13c  B4 F1 5C 0A  50 F1 5C 0A  ED E3 E6 61  0C 95 25 08   ..\.P.\....a..%.
0a5cf14c  B4 F1 5C 0A  64 F1 5C 0A  29 E3 E6 61  28 70 58 09   ..\.d.\.)..a(pX.
0a5cf15c  70 F1 5C 0A  EB 77 E6 61  08 A5 21 08  08 A5 21 08   p.\..w.a..!...!.
0a5cf16c  28 70 58 09  8C F1 5C 0A  B7 7B E6 61  62 BF 84 5F   (pX...\..{.ab.._
0a5cf17c  28 70 58 09  34 F2 5C 0A  50 97 E7 61  FF FF FF FF   (pX.4.\.P..a....
0a5cf18c  94 F1 5C 0A                                          ..\.
61D741F5  0A5CF190  DAQmxCreateDIChan + 0x000002F5
Stack Frame:
0a5cf198  B0 24 0C 72  08 A5 21 08  10 70 58 09  00 00 00 00   .$.r..!..pX.....
0a5cf1a8  AE BC 84 5F  18 F2 5C 0A  CC F1 5C 0A  70 A0 25 08   ..._..\...\.p.%.
0a5cf1b8  30 5B 33 07  70 A0 25 08  34 F2 5C 0A  50 97 E7 61   0[3.p.%.4.\.P..a
0a5cf1c8  FF FF FF FF  D8 F1 5C 0A  00 00 00 00  00 00 00 00   ......\.........
0a5cf1d8  70 A0 25 08  F0 65 58 09  38 D6 25 08  00 00 00 00   p.%..eX.8.%.....
0a5cf1e8  9C F2 5C 0A  F8 F1 5C 0A  61 76 E6 61  9C F2 5C 0A   ..\...\.av.a..\.
0a5cf1f8  9C F2 5C 0A  08 F2 5C 0A  31 65 E6 61  9C F2 5C 0A   ..\...\.1e.a..\.
0a5cf208  14 F2 5C 0A  F1 64 E6 61  9C F2 5C 0A  20 F2 5C 0A   ..\..d.a..\. .\.
0a5cf218  11 65 E6 61  9C F2 5C 0A  3C F2 5C 0A  D8 65 E6 61   .e.a..\.<.\..e.a
0a5cf228  D2 BC 84 5F  9C F2 5C 0A  AE BC 84 5F  08 F3 5C 0A   ..._..\...._..\.
0a5cf238  C8 A2 E7 61  FF FF FF FF                             ...a....








Please let me know what can be the possible reasons for the exception.
 
 
 
 

 

0 Kudos
Message 1 of 2
(119 Views)

If you expect a problem with the DAQmx compatibility with your computer, why don't you try a new version? Just make sure to check which version is compatible with your DAQ card if you have an older hardware.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(74 Views)