[問題] BCB使用COMPORT API後實體記憶體不斷增加
開發平台(Platform): (Ex: Win10, Linux, ...)
win7
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
BCB6.0
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
引用了控制Comport的DLL
void __declspec(dllexport) __stdcall Send_Data(int Port,String txtStr);
每使用一次Send_Data時
實體記憶體都會多4K
去網路上找了一些釋放實體記憶體的方法都無效
想請問一下該如何解決
餵入的資料(Input):
無
預期的正確結果(Expected Output):
無
錯誤結果(Wrong Output):
無
程式碼(Code):(請善用置底文網頁, 記得排版)
使用Comport 3時
Send_Data(3,"1111");
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.66.174.13
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1495444517.A.5E6.html
推
05/22 21:29, , 1F
05/22 21:29, 1F
→
05/25 00:50, , 2F
05/25 00:50, 2F