The right answer will come by giving the right details, you said you made your own base so nobody here can tell you how to undetect it without seeing it...
some details you are forgetting the mention is... what programming language, what D3D9 functions are you hooking, public hooks(I guess not you made this your self)? what are the errors when you crash, what point in the game do you crash? ect.. ect.. the more details you supply the more response you will get to your questions