AGB  ·  Datenschutz  ·  Impressum  







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

Volume Shadow Copy

Ein Thema von Allan · begonnen am 13. Feb 2014 · letzter Beitrag vom 14. Feb 2014
Antwort Antwort
Allan

Registriert seit: 24. Jun 2013
5 Beiträge
 
#1

Volume Shadow Copy

  Alt 13. Feb 2014, 04:32
I am trying out the Volume Shadow Copy example but getting the following error.

(Delphi Xe2 on Win 7)

In procedure GetBackupComponentsAndInitialize...

at line CreateVssBackupComponents(BackupComps);

I get "..... raised too many consecutive exceptions:
'Access violation at 0x00000000: read of address 0x00000000' Process Stopped..."


I have compiled the programs with following two changes.

For Xe2 I have only changed
If (Not CopyFile(PAnsiChar(Path),PAnsiChar(DestPath),True)) Then to
If (Not CopyFile(PWideChar(Path),PWideChar(DestPath),True)) Then and

unmarked from VssApi

Delphi-Quellcode:
Function CreateVssBackupComponents(
  Var ppBackup : IVssBackupComponents) : HRESULT; StdCall;
  External VSS_API_DLL name 'CreateVssBackupComponentsInternal'; { for Windows Server 2003 }

Procedure VssFreeSnapshotProperties(pProp : PVSS_SNAPSHOT_PROP); StdCall;
  External VSS_API_DLL;
Regards
Allan
  Mit Zitat antworten Zitat
Furtbichler
(Gast)

n/a Beiträge
 
#2

AW: Volume Shadow Copy

  Alt 13. Feb 2014, 07:52
What type of path information does 'CopyFile' expect? You cannot just change the type of parameter and expect the function to behave correctly. Remember: All that 'CopyFile' gets are two pointers to some stuff. It expects this stuff to be an array of 8-bit characters (I supose) but you now pass a list of 16-bit characters.
  Mit Zitat antworten Zitat
Allan

Registriert seit: 24. Jun 2013
5 Beiträge
 
#3

AW: Volume Shadow Copy

  Alt 14. Feb 2014, 04:00
Point noted. That is not my problem though as I was just mentioning changes from the original praxis code.
My error is at procedure GetBackupComponentsAndInitialize...

at line CreateVssBackupComponents(BackupComps);

I get "..... raised too many consecutive exceptions:
'Access violation at 0x00000000: read of address 0x00000000' Process Stopped..."
  Mit Zitat antworten Zitat
Antwort Antwort


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 13:25 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