Class wont work unless global
-
I have a class call CFileDog, it is derivered from CNALABase which uses a template member to store data to a file. But whenever i run the program it crashes, i worked out that it wirks when CFileDog is used as a global, but inside a class or function it crashes, Con anyone help. Thanks
-
I have a class call CFileDog, it is derivered from CNALABase which uses a template member to store data to a file. But whenever i run the program it crashes, i worked out that it wirks when CFileDog is used as a global, but inside a class or function it crashes, Con anyone help. Thanks
Without more info, it is hard to say what your problem is. A little code'd help a lot (definitions of the classes involved, crashing code, tc.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
I have a class call CFileDog, it is derivered from CNALABase which uses a template member to store data to a file. But whenever i run the program it crashes, i worked out that it wirks when CFileDog is used as a global, but inside a class or function it crashes, Con anyone help. Thanks
Is the class going out of scope whilst you are still trying to call its functions or access its data. Michael :-)