My server get two errors at cs50check: -Requesting cat.jpg returns 200, image/jpeg, and correct image (TODOS) -Requesting two files in a row (cat.html then cat.jpg) succeeds (TODOS)

  • If those are the only two errors you are getting, The problem is probably in load. Use gdb or debug50. Commented Oct 21, 2016 at 14:16
  • OR it could be a memory leak somewhere else in the program. Use valgrind. valgrind -v --leak-check=full --show-leak-kinds=all --track-origins=yes will maximize feedback. Commented Oct 21, 2016 at 14:17
  • If you "can't manage to find these errors" and you can see the code, you should know that no one else will be able to find the errors without seeing the code. This post reports the same failures. Look it over. And review the "Reasonable" section of the Honor Code, specifically Sharing snippets of your own code online so that others might help you identify and fix a bug. You can always edit your post and delete the code after you get the help you need. Commented Oct 21, 2016 at 19:14
  • your iabsolutly rigth dinocodersaurus. iv added the load funct.
    – lkoks
    Commented Oct 23, 2016 at 10:34
  • I've just tested your load() function and it seems to work fine. It's passing all check50 tests. Maybe the problem lies elsewhere. Commented Oct 23, 2016 at 18:01


You must log in to answer this question.

Browse other questions tagged .