|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Pointing to the wrong thing......
results is pointing to a random place in memory; or do you have >'results=(int *)malloc(sizeof(int)*<the number of ints you want>)' >somewhere? Additionally you will need a 'delete <variable name>' >somewhere. *** The code in the example is somewhat far removed from the code that I am having problems with. In the actual code, I am allocating and deallocating the appropiate amounts of address space using the new and delete operators...... Names with underscores (ie _* or __*) are reserved for the >compilers use. While you will probably get by, it can create problems >(especially if you ever did something like _max); these problems will >typically be very hard to track down. **** Ok.. I have never had problems with this before, but I will look into it. Thanks Josiah ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|