LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay smaller then 1ms

The code I posted will compile and run in CVI.  The sample code is part of a utilities library (DLL).

This code below works fine for me.

Iam running CVI 7.1 on Windows XP.

#include <ansi_c.h>
#include <stdio.h>

int main()
{
 __int64 a = 0;
 __int64 b = 0;
 
 a = 3;
 a = a << 1;
 printf("a: %I64d\n",a);
 
 b = 2;
 b = a - b;
 printf("b: %I64d\n",b);
 
 return 0;
 

0 Kudos
Message 11 of 36
(2,501 Views)

Thanks.

Looks like it's a CVI 8.0.1 problem.

I fired up a copy of CVI 7.1 and it works fine as you said.

What stupidity, I've wasted so many hours on this ...

Menchar

0 Kudos
Message 12 of 36
(2,491 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
 
0 Kudos
Message 13 of 36
(2,482 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
 
0 Kudos
Message 14 of 36
(2,483 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
  
0 Kudos
Message 15 of 36
(2,483 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
   
0 Kudos
Message 16 of 36
(2,480 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
    
0 Kudos
Message 17 of 36
(2,480 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
     
0 Kudos
Message 18 of 36
(2,480 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
      
0 Kudos
Message 19 of 36
(2,480 Views)
The problem turns out to be the use of the static storage classifier (heap) on a LARGE_INTEGER.
 
This code fails with a GPF:
 
static LARGE_INTEGER lia;
          LARGE_INTEGER lib;
 
       
0 Kudos
Message 20 of 36
(2,480 Views)