Autor Beitrag
stan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 16



BeitragVerfasst: Fr 07.10.05 20:26 
Hallo zusammen,

ich habe bei meinem Programm folgendes Problem.
Ich compiliere bzw. starte das Programm und es funktioniert alles so wie es sollte.
Wenn ich das Programm dann beende kriege ich eine "Exception EAccess Violation in Modul ... bei ..."

Wenn ich dann den OK Button betätige kommt:"
Die Anweisung in "0x00..." verweist auf Speicher in "0c00c..." Der Vorgang "read" konnte nicht auf dem Speicher durchgeführt werden.

Das merkwürdige ist einfach, daß das Programm absolut einwandfrei läuft, bis es beendet wird.
Ich verwende Datenmodule für die MySQL Komponenten. Wenn ich testweise die Komponenten aus dem Datenmodul rausnehme und sie in ein Formular packe läuft das Programm ohne Fehler. Packe ich die Komponenten wieder in das Datenmodul kommt der Fehler wieder.
Da ich aber massig Formulare usw. habe brauche ich die Datenmodule.

Wäre toll, wenn Ihr mir kurzfristig helfen könntet.

Danke im Voraus.

Gruß

Stan
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 07.10.05 21:24 
Schau mal an, beim Freigeben welcher Komponente der Bug genau auftritt. Die VCL ist da manchmal etwas allergisch ...

_________________
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.
stan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 16



BeitragVerfasst: Sa 08.10.05 09:29 
Das Nachschauen wann der Fehler genau auftritt ist ja leider nicht möglich, da der Debugger dann schon raus ist und auch Eurekalog da nicht wirklich ne sinnige Aussage zu macht, welche Komponente es sein könnte.
Jedes mal, wenn ich Eurekalog drüber laufen lasse ist es ne andere Komponente, die einzeln aber keinerlei Probleme macht.

Danke für das schnelle Hilfsangebot, aber noch ne Idee?
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: Sa 08.10.05 13:08 
Kannst Du mal kurz etwas Source ausm Destructor geben? Nutzt Du irgendwo im Programm Free\Release?

_________________
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.
stan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 16



BeitragVerfasst: Sa 08.10.05 13:44 
Wir haben keinen Destructor. Wir machen nur ein Application.Terminate;

Free und Release nutze ich nirgendwo....

Ich sagte ja .... es macht nicht so ganz Sinn, was Delphi da macht!
stan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 16



BeitragVerfasst: Di 11.10.05 14:31 
Danke für die Hilfe !

Nach der Korrektur der Erstellungsreihenfolgen mussten wir noch eine Komponente per Hand mit free löschen. Dann waren alle Fehler behoben.
Die Tips zum Debuggen waren ebenfalls sehr hilfreich!