Advertisement Jump to content
Sign in to follow this  
Bobboau

MSVC Profiler problems

This topic is 4912 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

trying to use the profiler, doesn't work. on program termination I get: "PREP : fatal error PRF1012: cannot read expected number of bytes from file i:\games\freespace2\fs2_open_d.pbo" I have tryed removeing all copies of the profile dll and exe outside the bin folder. it was working at one point in time I remember. and arg! zee google, eet does nutzing. any ideas?

Share this post


Link to post
Share on other sites
Advertisement
well is there a way to see if MSVC is putting in the profileing info like it's suposed to (sence the option is checked and the comand is in the litle box)?
if it isn't how would I manualy force it to, maybe calling the linker on the comand line?

Share this post


Link to post
Share on other sites
You mean the profiler in VS.NET 2005 Beta 2? I'm not exactly sure what problem you're having, but I was able to get it to work by turning on all release-mode optimizations (/O2, Whole Program Optimization, ect...). Then I specified the /Zi command line switch because the profiler needs a .pdb file (I believe) to debug the application correctly (this is for "Instrumentation Mode"). I would see if trying that works.

Share this post


Link to post
Share on other sites
nope, all I get is

"PREP : fatal error PRF1012: cannot read expected number of bytes from file..."

the pbo file (wich profile.exe makes)is empty, wich is makeing me think that the executeable is not getting linked with the stuff it needs, but I would expect this to cause an error mesage of some sort, or something.

Share this post


Link to post
Share on other sites
I just tried resetting both the c++ and linker tbs, after getting it to build again, it had no effect, I still get the same problem.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!