小编Sea*_*ean的帖子

gitignore不会忽略我的.settings /目录(由eclipse创建)

git状态:

Untracked files:
(use "git add <file>..." to include in what will be committed)
    .settings/
Run Code Online (Sandbox Code Playgroud)

我在我的.gitignore文件上尝试了以下变体,似乎没有任何效果:

.settings/

*settings*

*.settings/

.settings/*
Run Code Online (Sandbox Code Playgroud)

我从来没有遇到过这么多麻烦.gitignore,它通常只是起作用.我必须做一些真正愚蠢的事.

注意:我的.gitignore文件中包含的内容多于一行(所有其他行都能正常工作).

eclipse git gitignore

9
推荐指数
3
解决办法
1万
查看次数

VS2012编译器奇怪的内存释放问题

我有一个VS2012编译器的奇怪问题,似乎没有出现在GCC中.重新分配过程最终需要几分钟而不是几秒钟.有人对此有任何意见吗?步调试显示在调用RtlpCollectFreeBlocks()时显着挂起.我在调试和发布模式下都有这个问题.我正在运行Windows 7 32位,但我在64位7上遇到了同样的问题.

#include "stdafx.h"
#include <iostream>
#include <stdint.h>
#include <cstdlib>

#define SIZE 500000

using namespace std;

typedef struct
{
    uint32_t* thing1;
}collection;

/*
 * VS2012 compiler used.
 * Scenarios: 
 *  1) Don't allocate thing1. Program runs poorly.
 *  2) Allocate thing1 but don't delete it. Program runs awesome.
 *  3) Allocate thing1 and delete it. Program runs poorly.
 * 
 * Debug or Release mode does not affect outcome. GCC's compiler is fine.
 */
int _tmain(int argc, _TCHAR* argv[])
{ …
Run Code Online (Sandbox Code Playgroud)

c++ memory windows memory-management visual-studio-2012

6
推荐指数
1
解决办法
809
查看次数