錯誤訊息:"無法找到程序輸入點.....(在動態連結程式庫 XX.bpl)" |
尚未結案
|
a_mi
一般會員 發表:43 回覆:43 積分:22 註冊:2003-12-07 發送簡訊給我 |
我在我的package裡定義了以下的動態陣列
[code]
type //定義一個struct
TStoreData = record
No: String;
Name: String;
end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列
begin
Getmem(StoreList, sizeof(StoreList) *sCount);
end;
[code] compile 都正常,但在執行時就出現了錯誤訊息
是我動態陣列宣告有問題嗎 = =?
|
jest0024
高階會員 發表:11 回覆:310 積分:224 註冊:2002-11-24 發送簡訊給我 |
引言: 我在我的package裡定義了以下的動態陣列 [code] type //定義一個struct TStoreData = record No: String; Name: String; end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(StoreList) *sCount); end; [code] compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =?指定資料? Pointer(StoreList[i].No):=nil; StoreList[i].No:=String......; 想買台TPC..TTAB-B12D |
Mickey
版主 發表:77 回覆:1882 積分:1390 註冊:2002-12-11 發送簡訊給我 |
引言: 我在我的package裡定義了以下的動態陣列GetMem....為何不用 SetLength(StoreList,sCount) ? 發表人 - Mickey 於 2004/04/22 21:04:01type //定義一個struct TStoreData = record No: String; Name: String; end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(TStoreData) *sCount); end;compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =? |
a_mi
一般會員 發表:43 回覆:43 積分:22 註冊:2003-12-07 發送簡訊給我 |
|
a_mi
一般會員 發表:43 回覆:43 積分:22 註冊:2003-12-07 發送簡訊給我 |
|
a_mi
一般會員 發表:43 回覆:43 積分:22 註冊:2003-12-07 發送簡訊給我 |
唔..我找到問題發生點了 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列
begin
Getmem(StoreList, sizeof(StoreList) *sCount);
end; 當我的主程式在呼叫這個procedure時..compile會過,但在實際在執行程式時,
程式初始化時就會發生錯誤< >,但是如果把該行呼叫的程式碼 >..唔..不會是 > 發表人 - >< >< >< >< >
謝謝你們的回答< > 發表人 -
|
a_mi
一般會員 發表:43 回覆:43 積分:22 註冊:2003-12-07 發送簡訊給我 |
引言: 我在我的package裡定義了以下的動態陣列type //定義一個struct TStoreData = record No: String; Name: String; end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(StoreList) *sCount); end;compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =? |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |