The first parameter for _xalloc is a pointer to an long integer as the function may return a larger block and will update the long at that location with the actual amount allocated so you should have something like:
long block_size;
block_size = szGER+szNOME+szTD+szSet+szL1L2+szSR+szER+szVIR+szCC+szAER+szANA+szFER;
pszGER = _xalloc(&block_size,0, XALLOC_BB);
Regards,
Peter