Archived

This topic is now archived and is closed to further replies.

Strange VC++ 6.0 Profiler Error

This topic is 6280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites