Einzelnen Beitrag anzeigen

Christian Seehase
(Co-Admin)

Registriert seit: 29. Mai 2002
Ort: Hamburg
11.107 Beiträge
 
Delphi 11 Alexandria
 
#6

Re: Floppy Image schreiben endet mit einer Access Violation

  Alt 17. Okt 2003, 18:51
Moin Luckie,

ich würde mal sagen:

Code:
VirtualFree(IOBuffer, [color=red]0[/color], MEM_RELEASE);
denn:

Zitat von PSDK VirtualFree:
MEM_RELEASE
...If you specify this value, dwSize must be zero, and lpAddress must point to the base address returned by the VirtualAlloc function when the region was reserved.
...

Remarks
...
If a page is decommitted but not released, its state changes to reserved. You can subsequently call VirtualAlloc to commit it, or VirtualFree to release it.
...
Tschüss Chris
Die drei Feinde des Programmierers: Sonne, Frischluft und dieses unerträgliche Gebrüll der Vögel.
Der Klügere gibt solange nach bis er der Dumme ist
  Mit Zitat antworten Zitat