Bonjour,
Je développe une application sous delphi7 et firebird en utilisant les composants MDO .
J'essaye de compiler mon application aujourd'hui puis quand je l’exécute un message d'erreur s'affiche 'Erreur de vérification d'étendue' après l’exécution Pas à pas le problème est arrivé dans cette procédure: qui est la même que IBCustomDataSet
Je pense que c'est arrivé à cause du changement d'heure d'été qui a changé aujourd'hui le 25.03.2012
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172 procedure TMDOCustomDataSet.FetchCurrentRecordToBuffer(Qry: TMDOSQL; RecordNumber: Integer; Buffer: PChar); var p: PRecordData; pbd: PBlobDataArray; i, j: Integer; LocalData: Pointer; LocalDate, LocalDouble: Double; LocalInt: Integer; LocalInt64: Int64; LocalCurrency: Currency; FieldsLoaded: Integer; begin p := PRecordData(Buffer); { Make sure blob cache is empty } pbd := PBlobDataArray(Buffer + FBlobCacheOffset); if RecordNumber > -1 then for i := 0 to BlobFieldCount - 1 do pbd^[i] := nil; { Get record information } p^.rdBookmarkFlag := bfCurrent; p^.rdFieldCount := Qry.Current.Count; p^.rdRecordNumber := RecordNumber; p^.rdUpdateStatus := usUnmodified; p^.rdCachedUpdateStatus := cusUnmodified; p^.rdSavedOffset := $FFFFFFFF; { Load up the fields } FieldsLoaded := FQSelect.Current.Count; j := 1; for i := 0 to Qry.Current.Count - 1 do begin if (Qry = FQSelect) then j := i + 1 else begin if FieldsLoaded = 0 then break; j := FQSelect.FieldIndex[Qry.Current[i].Name] + 1; if j < 1 then continue else Dec(FieldsLoaded); end; with FQSelect.Current[j - 1].Data^ do if aliasname = 'MDO_INTERNAL_DBKEY' then {do not localize} begin if sqllen <= 8 then p^.rdDBKey := PFBDBKEY(Qry.Current[i].AsPointer)^; continue; end; if j > 0 then with p^ do begin // il arrête exactement dans cette ligne qui suit rdFields[j].fdDataType := Qry.Current[i].Data^.sqltype and (not 1); rdFields[j].fdDataScale := Qry.Current[i].Data^.sqlscale; rdFields[j].fdNullable := (Qry.Current[i].Data^.sqltype and 1 = 1); rdFields[j].fdIsNull := (rdFields[j].fdNullable and (Qry.Current[i].Data^.sqlind^ = -1)); LocalData := Qry.Current[i].Data^.sqldata; case rdFields[j].fdDataType of SQL_TIMESTAMP: begin rdFields[j].fdDataSize := SizeOf(TDateTime); if RecordNumber >= 0 then LocalDate := TimeStampToMSecs(DateTimeToTimeStamp(Qry.Current[i].AsDateTime)); LocalData := PChar(@LocalDate); end; SQL_TYPE_DATE: begin rdFields[j].fdDataSize := SizeOf(TDateTime); if RecordNumber >= 0 then LocalInt := DateTimeToTimeStamp(Qry.Current[i].AsDateTime).Date; LocalData := PChar(@LocalInt); end; SQL_TYPE_TIME: begin rdFields[j].fdDataSize := SizeOf(TDateTime); if RecordNumber >= 0 then LocalInt := DateTimeToTimeStamp(Qry.Current[i].AsDateTime).Time; LocalData := PChar(@LocalInt); end; SQL_SHORT, SQL_LONG: begin if (rdFields[j].fdDataScale = 0) then begin rdFields[j].fdDataSize := SizeOf(Integer); if RecordNumber >= 0 then LocalInt := Qry.Current[i].AsLong; LocalData := PChar(@LocalInt); end else if (rdFields[j].fdDataScale >= (-4)) then begin rdFields[j].fdDataSize := SizeOf(Currency); if RecordNumber >= 0 then LocalCurrency := Qry.Current[i].AsCurrency; LocalData := PChar(@LocalCurrency); end else begin rdFields[j].fdDataSize := SizeOf(Double); if RecordNumber >= 0 then LocalDouble := Qry.Current[i].AsDouble; LocalData := PChar(@LocalDouble); end; end; SQL_INT64: begin if (rdFields[j].fdDataScale = 0) then begin rdFields[j].fdDataSize := SizeOf(Int64); if RecordNumber >= 0 then LocalInt64 := Qry.Current[i].AsInt64; LocalData := PChar(@LocalInt64); end else if (rdFields[j].fdDataScale >= (-4)) then begin rdFields[j].fdDataSize := SizeOf(Currency); if RecordNumber >= 0 then LocalCurrency := Qry.Current[i].AsCurrency; LocalData := PChar(@LocalCurrency); end else begin rdFields[j].fdDataSize := SizeOf(Double); if RecordNumber >= 0 then LocalDouble := Qry.Current[i].AsDouble; LocalData := PChar(@LocalDouble); end end; SQL_DOUBLE, SQL_FLOAT, SQL_D_FLOAT: begin rdFields[j].fdDataSize := SizeOf(Double); if RecordNumber >= 0 then LocalDouble := Qry.Current[i].AsDouble; LocalData := PChar(@LocalDouble); end; SQL_VARYING: begin rdFields[j].fdDataSize := Qry.Current[i].Data^.sqllen; rdFields[j].fdDataLength := isc_vax_integer(Qry.Current[i].Data^.sqldata, 2); if RecordNumber >= 0 then begin if (rdFields[j].fdDataLength = 0) then LocalData := nil else LocalData := @Qry.Current[i].Data^.sqldata[2]; end; end; else { SQL_TEXT, SQL_BLOB, SQL_ARRAY, SQL_QUAD } begin rdFields[j].fdDataSize := Qry.Current[i].Data^.sqllen; if (rdFields[j].fdDataType = SQL_TEXT) then rdFields[j].fdDataLength := rdFields[j].fdDataSize; end; end; if RecordNumber < 0 then begin rdFields[j].fdIsNull := True; rdFields[j].fdDataOfs := FRecordSize; Inc(FRecordSize, rdFields[j].fdDataSize); end else begin if rdFields[j].fdDataType = SQL_VARYING then begin if LocalData <> nil then Move(LocalData^, Buffer[rdFields[j].fdDataOfs], rdFields[j].fdDataLength) end else Move(LocalData^, Buffer[rdFields[j].fdDataOfs], rdFields[j].fdDataSize) end; end; end; WriteRecordCache(RecordNumber, PChar(p)); end;
Grand problème qui ne me permet même pas d’accéder à mon application!
Merci pour votre aide.
Mina24
Partager