我正在构建一个当前只有UI元素的WPF应用程序.我正在尝试通过导入dll来使用我在另一个项目中创建的一些类.当我运行wpf应用程序时,Visual Studio会在团队资源管理器中弹出此对话框:

应用程序仍然运行,但我不知道此错误的原因及其影响.有没有其他人遇到此错误并有一些见解?
不确定它是否相关,但我导入的项目是使用NHibernate和Log4Net.我也使用Visual Studio 2013 Express,如果它与它有任何关系.
更新:
这是堆栈跟踪:
at DatabaseUI.DatabaseViewModel..ctor() in c:\Users\andrew\Documents\Visual Studio 2013\Projects\DatabaseUI\DatabaseUI\ViewModels\DatabaseViewModel.cs:line 36
at DatabaseUI.MainWindow..ctor() in c:\Users\andrew\Documents\Visual Studio 2013\Projects\DatabaseUI\DatabaseUI\MainWindow.xaml.cs:line 30
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] …Run Code Online (Sandbox Code Playgroud) 这是我用于上传图像的代码.
$this->load->library('upload');
$ext = pathinfo($file_name, PATHINFO_EXTENSION);
$img_name = now() . "." . $ext;
$imgConfig['upload_path'] = $this->image_path;
$imgConfig['file_name'] = $img_name;
$imgConfig['max_size'] = '2048';
$imgConfig['allowed_types'] = 'jpg|png|bmp';
$imgConfig['overwrite'] = FALSE;
$this->upload->initialize($imgConfig);
if ($this->upload->do_upload("image_url")) {
$this->Playlist_model->update_playlist($insert_id, array("image_url" => $img_name));
}
Run Code Online (Sandbox Code Playgroud)
而前端只是一个
<input type = 'file' >
Run Code Online (Sandbox Code Playgroud)
问题是,由于图片上传应该是视频缩略图,我该怎么做才能实现上传?例如在前端使用插件来限制/裁剪(任何推荐)
另外,在服务器端我该如何查看?
我在上个月用c#创建了一个简单的国际象棋引擎,并取得了一些不错的进展.它使用简单的Alpha-Beta算法.
为了纠正Horizon-Effect,我试图实现静态搜索(并在它工作之前多次失败).发动机的强度似乎有点改善了安静,但速度非常慢!
在此之前,我可以在大约160秒(在游戏中期的某个地方)搜索6层深度,通过静态搜索,计算机需要大约80秒才能在搜索深度3上移动!
蛮力节点计数器在深度3处大约20000个节点,而静态节点计数器高达2000万!
由于这是我的第一个国际象棋引擎,我真的不知道这些数字是否正常,或者我是否在我的静止算法中犯了错误.如果有经验的人能告诉我BF节点/静态节点的通常比例是多少,我将不胜感激.
顺便说一句,看看:(每当searchdepth为0时,此方法由BF树调用)
public static int QuiescentValue(chessBoard Board, int Alpha, int Beta)
{
QuiescentNodes++;
int MinMax = Board.WhoseMove; // 1 = maximierend, -1 = minimierend
int Counter = 0;
int maxCount;
int tempValue = 0;
int currentAlpha = Alpha;
int currentBeta = Beta;
int QuietWorth = chEvaluation.Evaluate(Board);
if(MinMax == 1) //Max
{
if (QuietWorth >= currentBeta)
return currentBeta;
if (QuietWorth > currentAlpha)
currentAlpha = QuietWorth;
}
else //Min
{
if (QuietWorth <= currentAlpha)
return currentAlpha;
if (QuietWorth …Run Code Online (Sandbox Code Playgroud) 我想使数字更新控件不可编辑,或者至少应该在Winforms中禁用旋转控件.我尝试设置控件只读,但使用鼠标滚动值正在改变.请帮助我实现这个目标
algorithm ×1
c# ×1
chess ×1
codeigniter ×1
html ×1
jquery ×1
mousewheel ×1
php ×1
readonly ×1
winforms ×1