Board index » cppbuilder » need help plz fast

need help plz fast


2005-03-24 07:23:12 PM
cppbuilder88
i have made a program and this is what happens..
if i compile all units result NO ERROR
if i make program result NO ERROR
if i built program result NO ERROR
when i run the program i immediatly get a access violation in some memmory
address...
i tryied to put in to /* */ all my latest code,even entire cpp file code but
still i get immediatly without even seeing the
first form a access violation
what can i possibly do?i cant rewrite the entire program of course...plz
give me advice
 
 

Re:need help plz fast

On Thu, 24 Mar 2005 13:23:12 +0200, billaras1234 wrote:
Quote
what can i possibly do?i cant rewrite the entire program of course...plz
give me advice
It is not possible to find your problem without seeing some code.
Nonetheless, as a general rule access violations come from stepping on
memory you're not supposed to touch.
Look for at least some of the following:
- pointers for which no memory is allocated
e.g.
char * p;
*p = 'A';
- delete on pointers allocated with new[]
- delete[] on pointers allocated with new
- references to members of classes when the instance has not had
memory allocated
e.g.
class T
{
int data_;
};
T *aT;
aT.data_ = 4;
--
Good luck,
liz