Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6
This is the forum to discuss the Wrox book Professional XNA Game Programming: For Xbox 360 and Windows by Benjamin Nitschke; ISBN: 9780470126776
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 28th, 2007, 11:31 PM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default Can't get Log to write the Log.txt file

Hey Ben, I can't get the Log helper class to write the Log.txt file. In debug mode my message that a level in breakout has been completed writes to the output window in XNA but no Log.txt file gets created!
Is there a piece of code missing from the download examples?


jnbutler
__________________
jnbutler
  #2 (permalink)  
Old July 6th, 2007, 10:10 PM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default

Is there someone still monitoring this forum? Please help!

jnbutler
  #3 (permalink)  
Old July 7th, 2007, 10:11 AM
Authorized User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: La Vergne, TN, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jnbutler
Default

I guess everyone is on holiday in Europe!


jnbutler
  #4 (permalink)  
Old July 31st, 2007, 04:04 AM
Registered User
 
Join Date: Jul 2007
Location: , , France.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you don't get any error about the creation of the logfile, it's probably a working directory problem.

In Visual C# Express, look at your project proprieties:
Project > Settings (make sure you've selected all configuration or else it will only change the current config, i.e. debug) > Properties > Configuration Properties > Debugging > Working Directory

And set the working directory to your project output directory. By default, it's the project directory and not the output one, so the logfile should be generated here and not next to your executable file.

It's also a common problem when your app don't find some ressource files even if you'r sure about their location. Always look at the working directory if files are not found.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log to server's event log LenexaKS Access VBA 4 March 11th, 2008 12:49 PM
How do Trace and write log files in ASP.NET2.0? arunkishore82 ASP.NET 2.0 Basics 0 March 20th, 2006 01:04 AM
Log file tsimsha Classic ASP Databases 1 April 30th, 2005 04:27 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 12:01 PM
Log file Asish SQL Server 2000 3 November 10th, 2003 01:30 PM



All times are GMT -4. The time now is 04:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.