Autor Beitrag
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Do 01.09.05 16:06 
hi,
ich hab in meiner dll die md5.pas eingefügt und bekomme beim aufruf deren funktion einen integerüberlauf. benutze ich die md5.pas in einer exe funktioniert es problemlos.

hat einer eine idee woran das liegt und wie ich das problem beheben kann?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 01.09.05 16:20 
Meine Glaskugel schreibt gerade: "Error 472a: Code missing" :roll:

AXMD
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Do 01.09.05 17:25 
am code kanns doch eigentlich nicht liegen da der gleiche code in einer exe ohne probleme funktioniert
hier ist der aufruf von meiner dll
ausblenden Delphi-Quelltext
1:
   if MD5Print(MD5String(Password))<>MeM.ReadString('A1','Dat','') then Fehler:=True;					


der fehler tritt beim ausführen von MD5String auf und da in einer unterfunktion
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure FF(var a: DWORD; b, c, d, x: DWORD; s: BYTE; ac: DWORD);
begin
  inc(a, F(b, c, d) + x + ac);    //<--- hier wird der fehler gemeldet
  rot(a, s);
  inc(a, b);
end;


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 02.09.05 10:46 
Set in die Unit MD5.pas mal eine Direktive {$RANGECHECKS OFF}. Dann sollte sich das Problem eigentlich geben ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Fr 02.09.05 13:57 
{R-} hats nicht gebracht. hab dazu noch {Q-} gesetzt und dann ging es. dafür bekomm ich jetzt eine externe exception ;) mal sehn ob ich die abfangen kann und die funktion überhaupt noch ihren zweck erfüllt