Autor Beitrag
Patriol
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Do 16.08.07 10:36 
Hallo,

ich habe hier das Problem, dass wenn eine DLL dynamisch geladen wird, das Programm bei FreeLibrary stehen bleibt. Es sieht so aus als wäre das Programm beendet, aber der Prozess ist logischerweise noch vorhanden.
Wenn die DLL auf den Rechner eines Kollegen compiliert wird, dann bleibt das Programm nicht bei FreeLibrary stehen. Hat jmd eine Idee woran das das liegen könnte?

Danke im voraus.
Patriol
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Do 16.08.07 12:53 
Stehen bleiben = Fehler werfen?
oder
Stehen bleiben = in Endlosschleife hängen?
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Do 16.08.07 14:03 
Stehen bleiben = Endlosschleife
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Do 16.08.07 17:39 
Post mal bitte bisschen Code.
Dass das Programm bei FreeLibrary wirklich stehen bleibt kommt mir etwas seltsam vor.
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Do 16.08.07 20:52 
Mit den Code Posten is nich so ohne weiteres möglich...

habe aber mittlerweile folgendes rausgefunden:

1. ich brauche keine methode ausführen in der dll, es reicht schon wenn ich sie nur lade und dann versuche gleich wieder freizugeben.

2. das Phänomen, das die DLL nicht freigegeben wird tritt immer dann auf wenn ich eine bestimmte unit einbinde ... welche es konkret ist weiß ich noch nicht ... hangel mich da gerade durch (viele eingebundene units haben wiederrum etliche eingebundene units ...)

eine vermutung ist, dass in irgendeinem initialisation-teil einer unit was nicht rundläuft ... aber is nur ne vermutung. sonst wüsste ich zur zeit nicht waran es liegen kann dass das phänomen dann auftritt wenn ich eine unit x einbinde.

Vielleicht hat jmd von euch noch eine idee was da die ursache sein könnte.
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Fr 17.08.07 13:06 
Hallo,

das Problem hat sich erledigt.

Es war ein Fehler in den cx-Grids von DevExpress in der Version 6.24. Mit der Version 6.27 funktioniert wieder alles.