Autor Beitrag
Sascha999999999
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Fr 25.05.07 21:22 
Giebt es einen GCHandle in Delphi?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var test: GCHandle;
//Compiler Fehler

var testint: IntPtr;

GCHandle.Alloc()


Kann das bitte jemand in Delphi übersetzen, binn für Ansatz dankbar.

Danke!

mfg
Sascha999999999

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Fr 25.05.07 21:56 
In Delphi.NET? Höchstwahrscheinlich. Wäre traurig wenn eine Klasse des NET Frameworks nicht benutzbar wäre.

Wenn du Delphi Win32 meinst ist die Antwort Nein.
GCHandle macht nur in managed Code Sinn. Wo keine Garbage Collection da kein GCHandle.

Gruß
Sascha999999999 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: So 27.05.07 17:46 
In delphi .NET gets, ich möchte aber win32, das muss doch da irgendwie auch gehen, zumdest muss man irgendwie das selbe rechnen können oder?

Was machen die Funktionen von GCHandle denn überhaupt?

Danke.

mfg
Sascha Ortmann
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 27.05.07 17:49 
Den Garbage Collector, welcher ein Teil der CLR ist und für den es kein Pendant in Win32 gibt.

_________________
Markus Kinzler.
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4701
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Di 29.05.07 16:21 
Spannend. Du möchtest es ganz dringend benutzen weißt aber nicht mal ansatzweise wofür das gut ist.

Kannst du mal bitte kurz erklären was du vor hast?