Even i am facing a similar kind of problem.This is my stack info when the exeption occurs.And while debugging, i found that dynamic memory allocation is failing, and it gives an NTDLL access violation.Pls provide me with a solution.
NTDLL! 7c91b3fb()
NTDLL! 7c96d6aa()
NTDLL! 7c949d18()
NTDLL! 7c91b298()
_heap_alloc_base(unsigned int 34608) line 161
_heap_alloc_dbg(unsigned int 34560, int 1, const char * 0x00000000, int 0) line 367 + 9 bytes
_nh_malloc_dbg(unsigned int 34560, int 0, int 1, const char * 0x00000000, int 0) line 242 + 21 bytes
malloc(unsigned int 34560) line 130 + 21 bytes
Demod(double * 0x0004c4f0, unsigned long 47520, unsigned short * 0x0003b420, short * 0x0004b458, short * 0x0004b454) line 53 + 21 bytes
Dec(double * 0x014a0068, unsigned short 1) line 320 + 55 bytes
Rec(double * 0x00550040, unsigned long 51870) line 260 + 14 bytes
main_funct() line 69 + 13 bytes
main() line 31
mainCRTStartup() line 206 + 25 bytes
KERNEL32! 7c816fd7()