我的要求:
可以使用哪种优化模式来提高垃圾收集器的性能?
我的理由是我使用Compact Framework做了很多嵌入式软件.在慢速设备上垃圾收集可能会成为一个问题,我想减少垃圾收集器启动的次数,当它发生时,我希望它能更快地完成.我还可以看到使用垃圾收集器而不是垃圾收集器可以帮助改进任何.NET或Java应用程序,尤其是重型Web应用程序.
以下是我的一些想法,但我没有做任何基准测试.
.net embedded optimization garbage-collection compact-framework
他们是VS2010和.net 4.0的紧凑型框架的新版本,如果是这样,它将包括哪些新功能?WPF?linq到SQL?等等
我开始使用我的数据库的Sql Compact版本,在开发过程中发现数据库需要通过网络访问.因为我无法找到一种方法来通过网络共享SDF文件而无需复制我需要将其导入SQL Server 2008(Express).
有任何想法吗?
我正在考虑为Windows Mobile设备编写简单的应用程序,用户只需输入目标坐标,app就可以计算距离并显示到目的地的方向.
但我还没有找到任何免费的,最好是开源库,其中包含简单的API,可与GPS配合使用.
是否有一个工具可用于分析(内存).NET Compact framework 3.5应用程序(Windows Mobile)?
谢谢!
我正在编写一个允许用户输入布尔表达式的应用程序.我需要能够在运行时评估输入的布尔表达式,并且正在寻找解析器和expressoin验证器.
解析器
解析器需要将布尔表达式作为字符串并返回true/false.
例:
string expression = "(1 == 1) && (1 > 0)"; Parser parser = new Parser(); boolean result = parser.parse(expression); // Result should be True.
除了处理布尔表达式之外,我还需要它来处理数学.
expression = "((1 + 1 * 2) == 1)"; result = parser.parse(expression); // Result should be False.
验证
这样我就可以告诉用户输入的表达式是否有问题我还需要一种方法来验证语法.
我使用.NET Compact Framework在C#中工作,但如果您知道用其他语言编写的内容可能会有所帮助.
感谢您的任何帮助,您可以提供.汤姆

我已经尽一切可能摆脱我认为在Win CE 6.0设备上运行的CF.NET 3.5中的HttpRequest或HttpResponse类的内存泄漏.我正在使用它们与IP摄像头进行通信.
以下是我正在使用的当前代码.代码在线程上的自定义控件中运行,其优先级设置为低于正常值,backgroundworker设置为true.在我的一个表单上有两个这样的控件对象.
我说当前是因为我尝试了异步请求和下面代码的其他排列而没有减少内存消耗:
protected void CamRefreshThread()
{
while (true)
{
if (false != CamEnabled)
{
HttpWebRequest HttpReq = null;
try
{
lock (LockObject)
{
// create request
HttpReq = (HttpWebRequest)WebRequest.Create("http://" + this.Ipv4Address + "/axis-cgi/jpg/image.cgi");
HttpReq.Timeout = 5000;
HttpReq.ReadWriteTimeout = 5000;
HttpReq.Credentials = new NetworkCredential(this.CamUserName, this.CamPassword);
}
/* indicate waiting for reponse */
ResponseRxed = false;
// get response
using (HttpWebResponse HttpResp = (HttpWebResponse)HttpReq.GetResponse())
{
// get response streamImageFromStream
using (Stream ImgStream = HttpResp.GetResponseStream())
{
// get bitmap …Run Code Online (Sandbox Code Playgroud) 我很难在程序集/ exe中获取版本信息.关于这一点似乎有很多问题,但没有一个能帮助我解决这个问题.
在我的exe中包含版本信息似乎是基本和简单的,但是当我从资源管理器查看上下文菜单时它没有显示(右键单击 - >属性 - >详细信息)
如何在我的C#compact framework/WinMobile 6.0项目中添加版本信息(不使用插件)?
这是默认的assemblyinfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TestingVerInfo")]
[assembly: AssemblyDescription("hello")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("world")]
[assembly: AssemblyProduct("TestingVerInfo")]
[assembly: AssemblyCopyright("Copyright © 2011")]
[assembly: AssemblyTrademark("gggg")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. …Run Code Online (Sandbox Code Playgroud) 我有运行Win CE的ICOP VDX-6354板.我正试图从我的C#程序中控制电路板的蜂鸣器.我尝试了所有的playound等"coredll.dll"平台调用.到目前为止他们都没有工作.所以我最后一次机会是创建自己的DLL.
unsigned char inp(short addr)
{
unsigned char cValue;
_asm
{
mov dx, addr
in ax, dx
mov cValue, al
}
return cValue;
}
void outp(int addr, unsigned char val)
{
__asm
{
push edx
mov edx, DWORD PTR addr
mov al, BYTE PTR val
out dx, al
pop edx
}
}
bool MyBeep(DWORD dwFreq, DWORD dwDuration)
{
outp(0x43, 0xb6); // Set Buzzer
outp(0x42, (0x1234dc / dwFreq)); // Frequency LSB
outp(0x42, (0x1234dc / dwFreq) >> 8); // Frequency …Run Code Online (Sandbox Code Playgroud) .net ×5
c# ×3
windows-ce ×2
beep ×1
boolean ×1
components ×1
dll ×1
embedded ×1
expression ×1
gps ×1
httprequest ×1
httpresponse ×1
import ×1
memory ×1
optimization ×1
parsing ×1
profiler ×1
profiling ×1
sdf ×1
sql-server ×1
zip ×1