Autor Beitrag
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 29.12.08 15:35 
mmh also die Funktion ergibt bei mir immer komische Zeichen als ergebnis...
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 29.12.08 16:13 
Ich sehs, CreateFileMapping schlägt fehl wie man sieht, jedenfalls beim Test eben. Ich weiß nicht warum, mal schauen. :nixweiss:
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 29.12.08 16:15 
mmh also bei mir scheints sporadisch manchmal zu gehen und manchmal nicht...
ich hasse Heisenbugs!!!!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 29.12.08 16:25 
Prüf jeweils ob das Handle überhaupt gültig ist. Bei mir hat gleich CreateFileMapping 0 zurückgegeben, aber das wurde nicht geprüft. Die "komischen Zeichen" waren der uninitialisierte Inhalt des Buffers.
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 29.12.08 16:26 
und wie prüft man auf ein gültiges Handle? indem man dann das ergebnis createfilemapping auswertet oder schon früher?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 29.12.08 16:30 
Wenn ein Handle 0 ist, ist es nicht gültig. Weder das deiner Datei noch die Rückgabewerte von z.B. CreateFileMapping sollten 0 sein.
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 29.12.08 16:31 
mmh jetzt gehts, aber dafür hab ich ein anderes Problem...