Zugriffsverletzung bei Verwendung der NameDesProgramms.exe.manifest / Anwendungen im XP Stil



  • Hi,

    ich beziehe mich mal auf den Beitrag in der FAQ Forms - Anwendungen im WindowsXP-Stil].

    Ich habe die Manifest Datei aus dem Beitrag in das Verzeichnis der exe kopiert unf gestratet. Alles funktionierte einwandfrei.

    Danach habe ich mich an einem größeren, älteren Projekt von mir versucht. Geleiches Verfahren, anderes Ergebnis:

    Fehlermeldung: Zugriffsverletzung bei Adresse 77E5A6B1 in Modul kernel32.dll. Lesen von Adresse ...

    Dieser Fehler tritt immer im Zusammenhang mit TListViews (auf vsReport) auf. Replizierbar zB wenn man mit der Maus über die Spaltenüberschriften geht. Mouseevents gibt es keine.

    Nun handelt es sich wie gesagt um ein älteres Projekt und ich hatte noch keine Zeit und keinen Nerv zum debuggen... Hat jemand einen Tipp aus Erfahrung für mich?

    Gruß und Danke
    DM



  • VCL-Bug!

    Microsoft warns all developers that they have in fact eliminated a lot of the support code in the comctl32.dll library, and that you should always test thoroughly to ensure all aspects of your controls work properly before distribution. It has been my experience that there are in fact some compatibility issues with Delphi. So far, the only discrepancy I have found was in the TListView component. If you use the TListView component with the view style of vsReport, you run into a problem using the TColumns property. During runtime, you will generate a kernel error if you attempt to use column headers with said view style.

    To fix this:

    Open the ComCtrls.pas file and search for these lines:
    if FImageIndex <> -1 then
    fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES;

    and replace it with:

    if FImageIndex <> -1 then
    fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES
    else
    mask := mask and not (LVCF_IMAGE);



  • Aha...

    Na siehe da, wer sucht findet. Ok, ich war ehrlich gesagt zu faul zu. 😉

    Danke Sunday. Wenn ich mal viel Zeit habe probiere ich das mal aus.

    Ich glaube, es ist ein gute Idee das Zitat an den FAQ Beitrag anzuhängen, oder?

    Gruß

    DM



  • Das steht genau in dem von dir zitierten FAQ-Beitrag.
    Augen auf beim Eierkauf!


Anmelden zum Antworten