Jump to content
  • Advertisement

AlexB.hpp

Member
  • Content count

    37
  • Joined

  • Last visited

Community Reputation

201 Neutral

About AlexB.hpp

  • Rank
    Member

Personal Information

  1. AlexB.hpp

    ranges and glsl

    In hlsl there is normalize()... Probably there should be something like that. But you should check this by yourself 'cause I do learn shaders for 2 months and don't know much.
  2. AlexB.hpp

    [?++] Memory leak checker

    Oh, many thanks again. Looks like I've fixed the old one problem with infinite loop in stl. So... Actually I've done major work on it. Ok I pretty sure that realloc is ok now. It does; new_ptr = realloc(old_ptr, size) if (!new_ptr) return old_ptr return new_ptr I'll read stuff about exceptions. And figure out how it should be. I have funny stuff as one of my friends said. I have calls of delete on unregistered ptrs Try to erase unregistered pointer 0x82f10f8! Memory leak summary: operator new (0x82f1008) missed 4 bytes in main.cpp:5 operator new [] (0x82f1040) missed 4 bytes in main.cpp:6 malloc (0x82f1078) missed 4 bytes in main.cpp:7 calloc (0x82f10b0) missed 4 bytes in main.cpp:8 realloc (0x82f10e8) missed 8 bytes in main.cpp:10 Total leaked 24 bytes Try to erase unregistered pointer 0x82f10f8! Try to erase unregistered pointer 0x82f10c0! Try to erase unregistered pointer 0x82f1088! Try to erase unregistered pointer 0x82f1050! Try to erase unregistered pointer 0x82f1018!
  3. AlexB.hpp

    [?++] Memory leak checker

    Damn it, I've stuck a little. Meet cool bug when some containers of STL use my funcs and do stucking in infinite loop. You know how it happens - you read about 1000 books of cpp and still doing this stupid mistakes in you code.
  4. I want to join you guys. I have 4 years experience in C++. Now I'm working on 2d engine with few friends of mine. I'm about 3rd month working in game dev. It's AlexBolotsin@Gmail.com
  5. AlexB.hpp

    [?++] Memory leak checker

    Hm. I've read it already. Tomorrow I'll fix it. That bastard is really tricky, too many behaviors for just one func... About including my header - yeah it has a bug here, I know about it. I'll describe it in docs. Have no ideas now. Thank you. Many thanks. Still need some tests. It's in todo list. About placement new... I'll keep it in mind.
  6. Read opened thread for this problem to find out better solution. It's really interesting.
  7. AlexB.hpp

    [?++] Memory leak checker

    To prevent all misunderstandings I've implemented it via original funcs. Also I have improved output: Memory leak summary: operator new (0x83af008) missed 4 bytes in main.cpp:5 operator new[] (0x83af040) missed 4 bytes in main.cpp:6 malloc (0x83af078) missed 4 bytes in main.cpp:7 calloc (0x83af0b0) missed 4 bytes in main.cpp:8 realloc (0x83af0e8) missed 8 bytes in main.cpp:10 Total leaked 24 bytes
  8. AlexB.hpp

    [?++] Memory leak checker

    Many thanks about this issue with old ptr. Yeah I knew about greater size then old ptr had. Will it be ok if i'll do memset(new_ptr, 0, size)?
  9. AlexB.hpp

    [?++] Memory leak checker

    I'm planning such output: Memory leaks summary: operator new in main.cpp:34 (0x0fa43d41) allocated 4 bytes ... What output would be enough informative for you? I'm making it as cross-platform solution. But however thanks.
  10. AlexB.hpp

    [?++] Memory leak checker

    Added malloc, calloc, realloc and free wrappers. Added gitignore. I have a question about realloc. Does it reallocate of incoming pointer? Is it correct in my code?
  11. AlexB.hpp

    [?++] Memory leak checker

    Thx for calloc don't even know about it.
  12. AlexB.hpp

    [?++] Memory leak checker

    Cause there is no malloc overloading. Will add to todo list. Thx 1st issue added.
  13. I've started working on simple and little class for C++ to check some memory leaks. I have made some work on it, but there is a lot of work to do. I'm planing to add cppunit, autoreconf, documentation, static class instread of global functions, different loggers. Now it has: shared library, header with some funcs declarations, makefile to build it via g++, simple script to test it, linux only but I'll port it to win after some researching. I do it for my own project but I would like to share it with a great pleasure. Now it looks like this alexb leak_checker> ./run.sh MEMORY LEAK! 0x8c1a008 main.cpp 5 MEMORY LEAK! 0x8c1a038 main.cpp 6 with such main: [source] #include <iostream> #include "allocation_hooks.h" int main(int argc, char** argv) { int* num = new int; num = new int[1]; check_map(); } [/source] Repo is here. PS Warning it has some magic in it!
  14. AlexB.hpp

    Stuck on newbie project

    Don't be mad about that... I didn't mean any stupid stuff. I wanted to said that you have a great possibility to make a nice game and take a lot of experience. Some time I write/say totally strange things, but it's ok for me. That's how I start deep thinking.
  15. AlexB.hpp

    Stuck on newbie project

    You need collision detector cauze bullets gets thought terrain. Actually there is a lot of possible improvements. Does your character can shot only horizontal ax? Are there any other types of weapons? What about some enemies? What about twitter or smth else in it? Does it have achievements? --- Looks like my English still pretty bad if I couldn't talk what I want.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!