LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 2013f1 Error: The compiler has run out of memory.

Hi again,

 

#pragma pack(push,1)

typedef struct
{
  char   sub_c;
} SUBSTRUCT;

#pragma pack(pop)

#pragma pack (push,8)

typedef struct
{
  char c;
  
  SUBSTRUCT sub1;
  
  struct
  {
    int i;
  } sub2;

} BUGGY_STRUCT_AGAIN;  

#pragma pack (pop)

BUGGY_STRUCT_AGAIN s = {0};

int main (int argc, char *argv[])
{
  return 0;
}

 

fails to compile, too.

 

Even with f1 patch.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 1 of 3
(4,035 Views)

Hello CVI-User,

 

This appears to be a bug in our run-time checking. I have opened bug #450292 to track it and as a workaround I could suggest disabling run-time checking or using #pragma pack (push,8) only if necessary. 

 

Best regards,

= Nelu F. || National Instruments.

0 Kudos
Message 2 of 3
(4,026 Views)

CVI-User,

 

Are you okay with the workarounds suggested by Nelu until we can fix the issue in the next release?

 

 

Jonathan N.
National Instruments
0 Kudos
Message 3 of 3
(3,890 Views)