Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 [2]   Go Down

Author Topic: Memory Allocation Issue  (Read 2993 times)

0 Members and 1 Guest are viewing this topic.
Re: Memory Allocation Issue
« Reply #20 on: August 20, 2009, 03:33:12 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Gah...everyone that reads this doesn't understand the issue.

The call to new on temp is allocating more memory than it should.  The error was not in the loop or in fread or anything, but before it when memory was allocated.  79 was passed to the array index in the allocation, and it created an array of size 94 instead. 

Anyway, the issues been solved with a little memory moving.
Logged



i love big weenies and i cannot lie
Pages: 1 [2]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.029 seconds with 39 queries.

anything