線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1825
推到 Plurk!
推到 Facebook!

哇咧...Too many local constants...??

答題得分者是:malanlk
Theodore
一般會員


發表:11
回覆:10
積分:4
註冊:2003-05-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-09-03 11:23:15 IP:220.135.xxx.xxx 未訂閱
求助各位大大, 今天把程式打開來加點code, 編譯時出現 Too many local constants. Use shorter procedure. 我也不過多寫了幾行程式而已.. 請問這要怎麼解決呢.? 我用的是Delphi6
malanlk
尊榮會員


發表:20
回覆:694
積分:577
註冊:2004-04-19

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-09-03 11:38:49 IP:61.219.xxx.xxx 未訂閱
http://www.sparkyowns.com/mpp/mpp710/mpp710rc5.txt 這篇跟你同樣的問題 i really didn't like this, and as much as i hated it i really didn't want to rewrite all of the damn code. this one change had me working for 2 days almost non stop - and when i was done it was too much code for delphi to handle. in the end i was no longer able to build mcc.exe: Error: Too many local constants. Use shorter procedures. One or more of your procedures contain so many string constant expressions that they exceed the compiler's internal storage limit. This can occur in code that is automatically generated. To fix this, you can shorten your procedures or declare constant identifiers instead of using so many literals in the code. i have never in my life overloaded delphi. after another 2 or 3 hours i finally managed to break the connection proceedure into smaller functions to satisfy delphi's compiler - but you have no idea how many times i almost threw in the towel and gave up on all of these changes. 其實, ㄧ個 procedure 寫的太長不是好習慣....
系統時間:2024-06-29 8:08:33
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!