解决了:此错误仅在Visual 2010中发生,在Visual 2008中不出现,可能是因为在这两种情况下加载内容管道的方式不同。尽管我在MSVCR90.dll中遇到的错误是下一个问题。
我已经开始使用Goblin框架来创建一个增强现实应用程序。虽然到目前为止进展并不顺利。我之所以在stackoverflow.com上问这个问题,是因为这似乎是Goblin和Visual问题的混合体,所以我希望能在这里找到一些帮助。
You need to add 'DebugFont.spritefont' file to your content directory before you can display debug information当我调试CameraCalibration.sln时,我得到了上面的错误,有人知道如何解决这个问题吗?
提前感谢!
--编辑:此错误出现在事件查看器:中
错误应用程序名称: CameraCalibration.exe,版本: 1.0.0.0,时间戳: 0x4e67259c
故障模块名称: MSVCR90.dll,版本: 9.0.30729.4974,时间戳: 0x4b7a226f
异常代码:0xc 0000417
故障偏移: 0x0006ccb5
故障处理id: 0xdc0
故障应用程序启动时间: 0x01cc6d34cfa769a0
错误应用程序路径: D:\My Documents\user\AR-Demo\GoblinXNAv3.6\tools\CameraCalibration\bin\x86\Release\CameraCalibration.exe
故障模块路径: C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\MSVCR90.dll
报告Id: 1296c1c0-d928-11 e0-8928-fa12135e51e5
发布于 2011-09-07 19:25:26
您可以在这里找到抛出此异常的源文件:https://goblinxna.svn.codeplex.com/svn/src/UI/UIRenderer.cs
try
{
debugFont = State.Content.Load<SpriteFont>(@"" + Path.Combine(
State.GetSettingVariable("FontDirectory"), "DebugFont"));
}
catch (Exception exp)
{
}..。
if (debugFont == null)
throw new GoblinException("You need to add 'DebugFont.spritefont' file to your " +
"content directory before you can display debug information");毕竟,这听起来确实是一个数据问题。检查两个VS安装之间的DebugFont.spritefont文件属性。
https://stackoverflow.com/questions/7330305
复制相似问题