Search found 33 matches

by ccnyou
Sat Sep 29, 2012 10:53 am
Forum: wxWidgets Development (Chinese)
Topic: wxString中是否存在内存泄露?
Replies: 8
Views: 5510

wxString中是否存在内存泄露?

看这段代码: int _tmain() { wxString* aString = new wxString(wxT("a wxString")); cout << aString->ToStdString() << endl; delete aString; scanf("%*c"); return 0; } 在vs2008下调试模式运行,输出窗口提示有内存泄露: Detected memory leaks! Dumping objects -> {518} normal block at 0x00B20700, 256 bytes long. Data: <t ` | ` ` ` > 74...
by ccnyou
Sat Sep 29, 2012 4:43 am
Forum: wxWidgets Development (Chinese)
Topic: wxPuts输入文字到控制台
Replies: 6
Views: 4380

Re: wxPuts输入文字到控制台

并且貌似这个函数有内存泄露。。。