Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Sincrono

    How to deal with stubborn "Dereference to null pointer" errors?

    That is why I am a tech user [upsidedown]. Dind'nt understand all you said, but I dind't correct the code to ensure that there were problems (for example than cleanbuffer is never freed). The buffer==NULL comparation is remnant of previous intent of solving the issue. Thanks I'll pass this to...
  2. Sincrono

    How to deal with stubborn "Dereference to null pointer" errors?

    Think I got It. I just have too free memory (i.e. closing other running software) before calling the same function again. My program is very non economical so 3 Gb of RAM is not enough sometimes. I'll have to do something with that. Not many time right now (I must USE the program not reprogram...
  3. Sincrono

    How to deal with stubborn "Dereference to null pointer" errors?

    Thanks fot the code, It worked to check the pointer value returned by malloc, but after that, if repeating the function, memory never gets allocated. For some reason, when memory for _buffer is not allocated, the same happens to cleanbuffer. I thought that because this occurs sometimes, retrying...
  4. Sincrono

    How to deal with stubborn "Dereference to null pointer" errors?

    Very good answer. So, if elementos is well defined, should I just expect to use something like if (_buffer==NULL) MessagePopup ("here I am", "try again"); ?? In that case, I'd repeat the whole procedure (reloading the file) until the error stops?? I tried a stupid thing before if(...
  5. Sincrono

    How to deal with stubborn "Dereference to null pointer" errors?

    When errors appear at random, say, when the identical procedure sequences of a program crash only sometimes, first we doubt about the reliability of the code. But as in this example, I can't imagine how a simple initialization fails sometimes. Like the one below. The image shows an example of...

Part and Inventory Search

Back
Top