我在SSRS中创建了一个包含两个报告参数的报告.我希望第二个根据第一个选择更新它的值.第一个是销售代理商列表,第二个是分销商列表.每个代理商可以有许多经销商.
因此,如果报告用户选择代理,我只希望他们的分销商在列表中显示第二个参数.显然,参数值将来自查询,但我不知道如何在选择代理后重新绑定列表.
我想知道如何使用FFMpeg来拍摄视频的中间帧.我已经编写了C#以在某个时间抓取一个帧(即在第二个3时拉一帧).但我还没弄明白如何使用FFMpeg命令找到视频的中间部分.
在构建包含19个项目的VS 2008解决方案时,我有时会得到:
The "GenerateResource" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.WriteByte(Byte value)
at System.IO.BinaryWriter.Write(Byte value)
at System.Resources.ResourceWriter.Write7BitEncodedInt(BinaryWriter store, Int32 value)
at System.Resources.ResourceWriter.Generate()
at System.Resources.ResourceWriter.Dispose(Boolean disposing)
at System.Resources.ResourceWriter.Close()
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(IResourceWriter writer)
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(String filename)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode …Run Code Online (Sandbox Code Playgroud) 我已经在生产中使用了一段时间的Windows应用程序,并设置为在它抛出异常时向我们发送错误报告.其中大部分都是相当描述性的,可以帮助我快速找到问题(我使用的是MS Application Exception Block).
在某些情况下,我的报告是我无法重现的问题,而且似乎只发生在少数客户端计算机上.
我没有物理访问这些客户端机器,我可以使用哪些策略进行调试?在代码中构建一些跟踪是否会更好,还是有其他替代方案?
谢谢.
编辑:我应该更清楚:错误报告我得到了堆栈跟踪,但由于它是生产代码,它并不表示导致异常的确切行,只是它抛出的方法.
我正在寻找一个工具($,免费,开源;我不在乎),它不仅可以查看.NET程序的内存统计信息,还可以查看对象层次结构.我真的希望能够深入挖掘每个对象并查看它的足迹,以及它所引用的所有对象.
我看过像RedGate这样的Ants Profiler之类的东西,但它不是我想要的:我无法查看特定的实例.
编辑:我之前使用过.NET内存分析器(视觉工作室附带的那个,以及曾经是SDK(?)的一部分的那个),虽然它真的很好(并显示其他大多数人的观点) t),我真正想要的是能够深入查看我的对象层次结构,查看每个对象实例.
我有一个.NET 2.0应用程序在XP和Vista上运行得很好,但在Windows 7 RC(x64)上崩溃时出现以下错误:
例外信息
异常类型:System.OutOfMemoryException消息:内存不足.数据:System.Collections.ListDictionaryInternal TargetSite:空隙.ctor(System.Drawing.Image对象,System.Drawing.Drawing2D.WrapMode)HELPLINK:NULL来源:System.Drawing中
StackTrace信息
在System.Drawing.TextureBrush..ctor(图像图像,WrapMode wrapMode)在System.Windows.Forms.ControlPaint.DrawBackgroundImage(图形克,图片和backgroundImage,颜色背景色,ImageLayout backgroundImageLayout,矩形范围,矩形clipRect,点scrollOffset,从右至左从右至左)在System.Windows.Forms.Control.PaintBackground(PaintEventArgs的E,矩形矩形,颜色背景色,点scrollOffset)在System.Windows.Forms.Control.PaintBackground(PaintEventArgs的E,矩形的矩形)在System.Windows.Forms.Control的. OnPaintBackground(PaintEventArgs的pevent)在System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs的e)上System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs的E,Int16的层,布尔disposeEventArgs)在System.Windows.Forms.Control.WmPaint( Message&m)在System.Windows.Forms.ScrollableControl.WndProc(Message&m)的System.Windows.Forms.Control.WndProc(Message&m)处
关于为什么会发生这种情况的任何想法,或者我如何围绕它进行编程?它只是绘制一个没有特殊背景的标准winform.
更新:我发现这只是BackgroundImageLayout = ImageLayout.Tile时的一个问题,它也是默认值.将其设置为缩放或中心,问题消失.但这非常不令人满意,因为我需要它来平铺.
在矩阵报告中,是否可以根据父组的值隐藏列?例如,我有一个名为"value"的列,当包含它的列组具有特定值时,我想隐藏它.
想知道是否有人在使用JDEdwards XMLInterop功能方面取得了任何成功.我已经使用了一段时间(使用简单的PInvoke,稍后会发布代码).我想看看是否有更好的和/或更强大的方式.
谢谢.
如果我将x86平台作为我的.NET应用程序的目标,它会在AMD芯片上正常运行吗?我知道它可以与英特尔芯片配合使用,并且Vista 64能够以特殊模式运行x86应用程序,但我不知道有多少是硬件,有多少是操作系统.
我已经在Vista 64上使用英特尔芯片进行了测试,它运行良好,但我没有AMD机器进行测试.
.net ×3
.net-2.0 ×1
amazon-ec2 ×1
crash ×1
debugging ×1
ffmpeg ×1
jdedwards ×1
matrix ×1
memory ×1
performance ×1
regex ×1
sql-server ×1
video ×1
windows-7 ×1
x86 ×1