Advertisement

Strange VC++ 6.0 Profiler Error

Started by October 04, 2000 09:53 AM
0 comments, last by mr_jrt 24 years, 3 months ago
I''m getting a strange error from the VC++ profiler. When I run my program, the profiler crashes at the same point every time, but when I run both release and debug builds, they''re fine. So I narrowed it down to the function/line(s) and it seems that the profiler crashes whenever it tries to access a certain one of my class members. So I set up line coverage on the function, and this time the profiler throws up an access violation when it tries to access the class member. Great I thought, I''ve found a bug that I wouldn''t of otherwise noticed. I went into debug mode and broke into the function, and hey presto - the value in the class member is correct. This problem is really bugging me, but as it only happens when I profile, I can''t use the debugger to find out what the problem really is thats causing it to crash. Ideas anyone? Waassaap!!
Waassaap!!
Hellu.
Maybe you should check so that the files your app needs (models, texture, config files) is in the same dir
as the .exe .
When running in debug mode vc++ sets the CWD ( current working directory) to the same as the workspace file (.dsw).
But when running the profiler it seems to set it to where the .exe is located (Debug or Release).
So its possible that you app doesn''t find the files it needs to
run correctly.

Don''t know if thats your problem but I struggled with that once.

Good Luck.
------------------------------- Derwiath -

This topic is closed to new replies.

Advertisement