AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

IdIRC.Free flasch?

Ein Thema von DelTurbo · begonnen am 23. Jan 2010 · letzter Beitrag vom 31. Jan 2010
Antwort Antwort
Seite 3 von 3     123   
Assertor

Registriert seit: 4. Feb 2006
Ort: Hamburg
1.296 Beiträge
 
Turbo C++
 
#21

Re: IdIRC.Free flasch?

  Alt 29. Jan 2010, 13:17
Hallo,

DelTurbo hat mir nun eine Demo geschickt.

Das Ergebnis:
1. Seine D7 EXE hat den Fehler
2. Sein Projekt-Source bei mir mit einem frischen D7 und Indy Source kompiliert hat den Fehler nicht

Der Code funktioniert natürlich auch ohne IOHandler.Close und IOHandler.Free, bevor hier ein Leser auf die Idee kommt, selbst sowas zu machen:

Delphi-Quellcode:
IdIRC.Disconnect('Bye');
// IdIRC.IOHandler.Close; <- nicht nötig
// IdIRC.IOHandler.Free; <- nicht nötig
IdIRC.Free;
Im Ergebnis also ein laaaanger Thread für ein Problem, das keins ist. Zumindest kein Indy-Problem oder Bug

Ich tippe auf alte DCUs irgendwo im Pfad, aber das muß DelTurbo nun selbst prüfen... Kann jedem Delphi-Neuling mal passieren. Also, alles halb so wild.

Gruß,
Assertor

Frederik
  Mit Zitat antworten Zitat
DelTurbo

Registriert seit: 12. Dez 2009
Ort: Eifel
1.194 Beiträge
 
Delphi 2007 Architect
 
#22

Re: IdIRC.Free flasch?

  Alt 29. Jan 2010, 16:40
Zitat von Assertor:
Im Ergebnis also ein laaaanger Thread für ein Problem, das keins ist. Zumindest kein Indy-Problem oder Bug

Ich tippe auf alte DCUs irgendwo im Pfad, aber das muß DelTurbo nun selbst prüfen... Kann jedem Delphi-Neuling mal passieren. Also, alles halb so wild.
Deswegen schick ich dir immer lieber "Demos" als zu diskutieren. "Früher" habe ich ja selber durch getraced und dir dann die sachen (ich glaube sogar mit zeilennummer) geschickt.

Aber das hier ist ein sooooo blöder fehler, den kann man schlecht tracen. Wie besprochen werde ich am Wochenende mal Delphi neu auf nen anderen rechner machen und Indy neu draufpacken.

Öhm, ne fileliste was gelöscht werden muss gibt es wohl nicht, oder?
  Mit Zitat antworten Zitat
DelTurbo

Registriert seit: 12. Dez 2009
Ort: Eifel
1.194 Beiträge
 
Delphi 2007 Architect
 
#23

Re: IdIRC.Free flasch?

  Alt 31. Jan 2010, 12:04
So,

ich habe Delphi auf einem "sauberen" System installiert. Meine vorgehens weise hänge ich unten dran. Fehler bleibt. Wenn ich ehrlich sein darf, es juckt mich nicht wirklich. Ich hab halt das .Free drinn und damit geht es. Wenn du noch eine andere idee hast, kannste es ja sagen.

Gruss

Zitat:
Upgrading to Indy 10
Delphi 7 ships with Indy 9. Since the only documentation on the Indy website is now based on release 10, and some examples won't work with older releases, you must remove Indy 9 from the IDE, and install release 10.

There are two possibilities, but both require your uninstalling Indy 9 yourself before installing Indy 10:

upgrade manually following thoses instructions: How do I install Indy into Borland Delphi?, Upgrading to Indy 10, [D7] Upgrade propre des composants Indy vers Indy 10.1.5?, [D7 Ent] How to upgrade Indy properly?, Indy 10 in Delphi 2006
run the upgrader Indy Plus Install, free for personal or educational users, while commercial projects require buying the Indy Plus package
Removing Indy9:
Close the Borland Delphi IDE if it is open.
If you are using the version of Indy included in Delphi 6 or 7, use the MSI installer to remove Indy: In "Program Files", click on the drop-down list before Indy, and select Do Not Install. If you didn't install Corba, uncheck "Use Visibrocker/CORBA Support" before proceeding with the uninstall
Remove all Indy files from the Delphi directory, including dclIndy*.bpl, Indy*.bpl, the Id*.pas, and the Id*.dcu's. Take care that you only remove the old Indy files and not something else. Be sure that you also remove any Indy*.bpl from your Windows\System32 directory (IndyCore70.bpl, IndyProtocols70.bpl, and IndySystem70.bpl)
When restarting Delphi, it will fail loading the Indy 9 BPL: "Error/Can't load package c:\program files\borland\delphi\Bin\dclindy70.bpl. The specified module could not be found. Do you want to attempt to load the package the next time a project is loaded?" Just tell it not to try reloading this package the next time.
Manually installing Indy10
Place the new version of Indy in a directory of your choice. When unzipping, please keep the \source directory for the archive intact because that is used by some build batch files.
In the source directory, there are several batch files. Run the appropriate one for your version of Indy:
FULLD4.BAT - Delphi 4
FULLD5.BAT - Delphi 5
FULLD6.BAT - Delphi 6
FULLD7.BAT - Delphi 7
These batch files create subdirectories in the main Indy directory folder. They are (D4 for Delphi 4, D5 for Delphi 5, D6 for Delphi 6, and D7 for Delphi 7). These directories contain:
The Indy .DCU's
The Indy Design-Time .BPL
In your Delphi IDE, add the Indy design-time package with Component|Install Package...|Add... Go to the subdirectory where the Indy .DCU's and Design-Time .BPL was placed by the batch file. Add the Design-Time .BPL that is listed. It usually is named dclIndy followed by the Borland Delphi version and an 0
Add the path where the .DCU's are located to your environment. Do this with Tools|Environment Options...|Library...|Library Path...
(Difference with above instructions?) Compiling and installing manually:

Note: All packages are followed by X0 (Where X is your Delphi verison). Example: For Delphi 6, the IndySystem package would be named: IndySystem60.dpk

Download the latest source code
Open and compile .dpk files in the following order:

Lib\System\IndySystemX0.dpk
Lib\Core\IndyCoreX0.dpk
Lib\Protocols\IndyProtocolsX0.dpk

Lib\SuperCore\IndySuperCoreX0.dpk
If you are not using SuperCore, then you do not need to compile this package.

Now open these .dpk files and click install in the following order:

Lib\Core\dclIndyCoreX0.dpk
Lib\Protocols\dcl\IndyProtocolsX0.dpk

Lib\SuperCore\dcl\SuperCoreX0.dpk
Only install this if you have compiled SuperCore.
After installing Indy 10, you might get the following error when adding a IdUDPServer widget and code for the UDPRead event: "[Error] Unit1.pas(15): Undeclared identifier: 'TBytes'"

=> "That is a known Delphi bug, not an Indy one. The bug is that Delphi parses the signature wrong when generating the event handler. As for why TIdBytes is used in the event, it is because the Intercept system in Indy 10 is based on TIdBytes to begin with. It Indy 9, it was based on Streams instead."
Quelle: http://www.fredshack.com/docs/indy.html
  Mit Zitat antworten Zitat
DelTurbo

Registriert seit: 12. Dez 2009
Ort: Eifel
1.194 Beiträge
 
Delphi 2007 Architect
 
#24

Re: IdIRC.Free flasch?

  Alt 31. Jan 2010, 12:20
Ich hänge das Testprogramm mal hier dran. Es sind 3 Buttons drauf.

Zuerst Erstellen connecten klicken. Dann connected er ins irc.iz-smart.net. Dann wahlweise Löschen mit .Free oder ohne .Free klicken.

Bei mir kommt bei ohne .Free

Zugriffsverletzung bei Adresse 004751DD in Modul 'Project1.exe'. Lesen von Adresse 00000094.

Gruss
Angehängte Dateien
Dateityp: zip ircclientfree_184.zip (7,3 KB, 6x aufgerufen)
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 3 von 3     123   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz