![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without beinghi everyone,
i have written code for buffer as below. but is shows runtime error "Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without being " . and shows bad pointer. what should i do to remove this error. i need help urgently BYTE *bRecievedData; /* buffer for reciving data */ memset(bRecievedData,0,sizeof(bRecievedData)); |
|||
|
#2
|
|||
|
|||
Re: Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without beYou should probably allocate memory for it before calling memset(). Is bReceivedData a single BYTE or and array or BYTEs?
|
|
#3
|
|||
|
|||
Re: Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without beit is a single byte
|
|
#4
|
|||
|
|||
Re: Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without behi i have solved it. it is just because of pointer. it should be assigned to NULL
|
|
#5
|
|||
|
|||
Re: Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without beQuote:
CPP / C++ / C Code:
|
|
#6
|
|||
|
|||
Re: Run-Time Check Failure #3 - The variable 'bRecievedData' is being used without bethanks , i got it
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding check boxes to Dialog at run time | manmfc | MS Visual C++ / MFC Forum | 2 | 30-Apr-2008 01:57 |
| Life Time of Function static variable? | ahbi82 | C Programming Language | 3 | 16-Oct-2007 02:24 |
| constructors/classes | mapes479 | C++ Forum | 3 | 19-Nov-2006 18:34 |
| Need help understand function prototypes! | Blstretch | C++ Forum | 20 | 25-Oct-2005 15:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The