problem with camera

Everything related to 3D programming
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

problem with camera

Post by AndyLy »

I made in the program, two full-screen camera and periodically switch between them with each other.
Everything works fine, but when exit the program, I get the error "memory access" on a command "End".
[11:11:58] [ERROR] Invalid memory access. (read error at address 7)

With the single camera, no such problems.
Somebody faced similar?
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: problem with camera

Post by Fred »

Could you post a small working snippet showing the issue ?
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: problem with camera

Post by AndyLy »

No, I can not.
I mean I wrote a little code, but it works fine.
Strangely.. But the camera is the only change in the program that I did.
Okay, I'll look further reason, in my code.
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: problem with camera

Post by AndyLy »

I have not figured out what the problem is, but when replaced SwitchCamera() on CreateCamera() and FreeCamera() - error disappeared.
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
Post Reply