Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Wieder mal die ntdll (https://www.delphipraxis.net/137310-wieder-mal-die-ntdll.html)

PhilmacFLy 18. Jul 2009 13:40


Wieder mal die ntdll
 
Hallo DP-User
Ich hab folgendes Problem und zwar, hab ich auf meiner Form ein Image liege.
Jetzt will ich bei MouseMove eine aktion festlegen. Das Problem is nur das ich dann jedes mal wenn ich den Code einprogrammiert habe, einen Fehler krieg, und zwar:
Delphi-Quellcode:
Zugriffsverletzung bei Adresse 7C92B1FA in Modul 'ntdll.dll'. Schreib von Adresse 00000010
Hier mal der Code
http://pastebin.com/m733fe306
Weiss jemand woran das liegen könnte?

PhilmacFLy 18. Jul 2009 13:45

Re: Wieder mal die ntdll
 
Alter ich bin so blöd ich habs schon sry
btm.Canvas.Destroy;
:wall: :wall: :wall: :wall: :wall: :wall:

himitsu 18. Jul 2009 13:47

Re: Wieder mal die ntdll
 
ich vermute mal, es liegt vermutlich daran:

Delphi-Quellcode:
image2.Picture.Bitmap := btm;
gold := btm;
...
btm := gold;
Du kannst nicht so einfach die Instanzen von TBitMap hin- und herkopieren ... du solltest deren Inhalt kopieren und nicht die Instanz selber.

PhilmacFLy 18. Jul 2009 16:26

Re: Wieder mal die ntdll
 
danke,dass löst ein anders Problem mit dem ich im moment kämpfe. Aber wie gesagt ich hatte das Problem schon in den grif gekriegt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz