Members in Shoutbox
None.

Shoutbox Search
Search for:


Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper
/me > Marks as action

Shoutbox Information
Moderators may delete any and all shouts at will.
Global Shoutbox
Please log in to shout.
Pages: < 1 « 3314 3315 3316 3317 33183570 >

[2014-10-13. : 5:26 am]
O)FaRTy1billion[MM] -- the 3D game stuff I've done has been in C, the 2D stuff in C++ :P
[2014-10-13. : 5:25 am]
O)FaRTy1billion[MM] -- I played with XNA back when it was new... I prefer C/C++ over C# :P
[2014-10-13. : 5:25 am]
trgk -- GC rules
[2014-10-13. : 5:25 am]
Dem0n -- Like C# has a bunch of frameworks and shit that help you with that
[2014-10-13. : 5:24 am]
Dem0n -- I feel like newer languages make game-making much easier
[2014-10-13. : 5:24 am]
O)FaRTy1billion[MM] -- but I've also used C
[2014-10-13. : 5:24 am]
O)FaRTy1billion[MM] -- actually I've used C++ for games
[2014-10-13. : 5:24 am]
O)FaRTy1billion[MM] -- I'm making stuff in C :(
[2014-10-13. : 5:24 am]
Dem0n -- Why would I make a game in C though lul
[2014-10-13. : 5:23 am]
Dem0n -- o
[2014-10-13. : 5:23 am]
O)FaRTy1billion[MM] -- I think really the biggest hurdle would be drawing graphics
[2014-10-13. : 5:23 am]
O)FaRTy1billion[MM] -- well, you can replace 'photo' with 'unit', instead of just 'id' add like x,y coordinates, HP, etc.
[2014-10-13. : 5:22 am]
Dem0n -- i have no clue how anything i'm learning relates to gaming
[2014-10-13. : 5:22 am]
Dem0n -- lol i wish
[2014-10-13. : 5:21 am]
O)FaRTy1billion[MM] -- And now that you can program, are you going to make like a game, maybe some 3D graphics? :awesome:
[2014-10-13. : 5:19 am]
O)FaRTy1billion[MM] -- maybe you just needed to recompile? xD
[2014-10-13. : 5:19 am]
Dem0n -- I didn't change anything dealing with memory
[2014-10-13. : 5:18 am]
Dem0n -- well what the fuck, it works now
[2014-10-13. : 5:17 am]
O)FaRTy1billion[MM] -- I don't see anything, other than description isn't tested for NULL, but that shouldn't cause a problem
[2014-10-13. : 5:04 am]
Sacrieur -- inf go to bed :f
[2014-10-13. : 5:03 am]
lil-Inferno -- poop
[2014-10-13. : 5:02 am]
Dem0n -- But I don't see what I did wrong there
[2014-10-13. : 5:02 am]
Dem0n -- The leak occurs when I try to destroy the photo, and this tool that I'm using is saying there's a problem in that function
[2014-10-13. : 4:59 am]
Dem0n -- The other ones were written by my professor and they were written correctly
[2014-10-13. : 4:59 am]
Dem0n -- Well this is the only file I'm allowed to edit, so it's definitely in here
[2014-10-13. : 4:58 am]
O)FaRTy1billion[MM] -- I don't see the memory leak, so unless I'm missing something really subtle I don't think it's in this part of the file
[2014-10-13. : 4:58 am]
O)FaRTy1billion[MM] -- oh xD
[2014-10-13. : 4:57 am]
l)ark_ssj9kevin -- o ok, i don't really know how c++ works just inferring
[2014-10-13. : 4:56 am]
O)FaRTy1billion[MM] -- so it is freed when Photo is freed
[2014-10-13. : 4:55 am]
O)FaRTy1billion[MM] -- id is part of the struct, it's not dynamic
[2014-10-13. : 4:54 am]
l)ark_ssj9kevin -- doesn't photo have an id that you need to free
[2014-10-13. : 4:53 am]
Jack -- oke I gtg do some stuff, can try again in like 2 hours if you gib zip of code
[2014-10-13. : 4:52 am]
Dem0n -- yeah
[2014-10-13. : 4:52 am]
l)ark_ssj9kevin -- album's just a struct with int size and Photo all_photos[] i'm guessing
[2014-10-13. : 4:51 am]
Dem0n -- there are like 4 different files that need to be compiled at once
[2014-10-13. : 4:51 am]
Dem0n -- that's so complicated
[2014-10-13. : 4:50 am]
Jack -- Jack
Jack shouted: Copypasta album for me so I can compile the code?
[2014-10-13. : 4:48 am]
Dem0n -- I guess this is the more important stuff
[2014-10-13. : 4:47 am]
Dem0n -- that's only like half of it htough
[2014-10-13. : 4:46 am]
Dem0n -- that's what i get from valgrind
[2014-10-13. : 4:44 am]
Jack -- Copypasta album for me so I can compile the code?
[2014-10-13. : 4:43 am]
Jack -- puush the valgrind output that makes you think there's a memory leak?
[2014-10-13. : 4:42 am]
Dem0n -- but description's memory has to be dynamically allocated, so those lines do that and then check to see if malloc worked
[2014-10-13. : 4:42 am]
O)FaRTy1billion[MM] -- 18-21 is if malloc failed for the description
[2014-10-13. : 4:41 am]
Jack -- Well, 18-21
[2014-10-13. : 4:41 am]
Dem0n -- The Photo struct has two variables: int id and char* description
[2014-10-13. : 4:41 am]
Dem0n -- it's in another file
[2014-10-13. : 4:41 am]
Jack -- What is lines 17-21 for?
[2014-10-13. : 4:40 am]
Jack -- where is your Photo struct?
[2014-10-13. : 4:39 am]
Jack -- Pros use printf statements everywhere get on my level scrub! :wob:
[2014-10-13. : 4:39 am]
Dem0n -- I have no clue what any of it means, though
[2014-10-13. : 4:39 am]
Dem0n -- Yeah, I'm using valgrind
[2014-10-13. : 4:39 am]
Jack -- I think I saw that further down somewhere
[2014-10-13. : 4:39 am]
Dem0n -- updated code: http://pastebin.com/5YEb7Gpe
[2014-10-13. : 4:39 am]
Jack -- valgrind dbg?
[2014-10-13. : 4:38 am]
O)FaRTy1billion[MM] -- He's using some sort of tool for it
[2014-10-13. : 4:38 am]
Jack -- Like, how do you know
[2014-10-13. : 4:38 am]
Jack -- When you say "I get a memory leak" what do you mean by that?
[2014-10-13. : 4:38 am]
O)FaRTy1billion[MM] -- O.o that's weird. How do you get a memory leak from only reading the memory?
[2014-10-13. : 4:38 am]
Jack -- pastebin your current code?
[2014-10-13. : 4:37 am]
Dem0n -- I create the photo and print it, and after it prints, I get a memory leak
[2014-10-13. : 4:37 am]
Dem0n -- It happens after I try to print the description of the first photo
[2014-10-13. : 4:37 am]
Dem0n -- yeah
[2014-10-13. : 4:37 am]
O)FaRTy1billion[MM] -- Still occuring after removing the size--; in destroy_album and adding the size++; in add_photo_to_album?
[2014-10-13. : 4:36 am]
Sacrieur -- the proof is in the sum operation
[2014-10-13. : 4:36 am]
O)FaRTy1billion[MM] -- Is it still occuring?
[2014-10-13. : 4:36 am]
Dem0n -- still have no idea where this memory leak is occuring, though
[2014-10-13. : 4:36 am]
Sacrieur -- for all rational and irrational numbers summed, the result will always be irrational
[2014-10-13. : 4:36 am]
O)FaRTy1billion[MM] -- you can set it to 0 at the end to try and remove the possibility of trying to do something with the album after it was destroyed
[2014-10-13. : 4:34 am]
Dem0n -- yeah I got rid of that

Pages: < 1 « 3314 3315 3316 3317 33183570 >


Members Online: NudeRaider, lil-Inferno