| |
|
|
- Page 1 - |
|
Jörg Sellmeyer | the here functions. SizeOf determined too whom right worth. with String$(B#,0) becomes however nevertheless always the whole String outputted: CompileMarkSeparation Profanhilfe
The commands can ex XProfan 10 number of times on a Memory-Variable apply and be changes dynamic The Size the Speicherbereiches. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/30/08 ▲ |
|
|
|
|
| |
|
- Page 5 - |
|
|
there SizeOf() too to one new dimensionieren whom korrekten worth supply, ought to not heavy his String/Char on the Bereichsgrenze auszubremsen.
The Bereichsgrenzen of/ one Memory-Variable should one not eingrenzen through further ausbremsen with String-Überprüfung etc, this is a suitor area for User. here would like I mean freiheiten and have yourself of first byte until last byte to determine. If I memory so reserviere and it überschreite must I so calculate the the program abstürtz. And if windows not everything on "0" staid has, must I for care.
mfg peter |
|
|
| |
|
|
|
RGH | Michael Wodrich
there SizeOf() too to one new dimensionieren whom korrekten worth supply, ought to not heavy his String/Char on the Bereichsgrenze auszubremsen.
clear is the without Problems possible. The question would here, whether it too of all so desired would. the shining I do not so. (if i remember rightly, was former too time so, watts but because of of Userwünschen removes.)
supra there were The question to the manner the memory-reservation. I use in Delphi following row:
If Z <> NIL Then ReAllocMem(Z,ParLng) Else Z := AllocMem(ParLng);
Hierbei is Z the Pointer on the memory and ParLng The angeforderte Size.
to that "Nullen" the Bereiches to the first Dim can Clear use.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/08/08 ▲ |
|
|
|
|
Frank Abbing | which API hide itself behind whom Delphi-functions? |
|
|
| |
|
|
|
| |
|
| |
|
|
|
Frank Abbing | Nö. Rolands AllocMem has only one parameter. Zähl simply time to... |
|
|
| |
|
|
|
| Ähm what Have I there abkopiert? lol!
Well here standing too what: [...]
z.B. standing there heaph.inc and the getmem using becomes: "Allocate new memory on the heap".
hähphähphähp... |
|
|
| |
|
|
|
Frank Abbing | this is no API, iF. becomes a Delphi-function his. therefore becomes Roland me too sure say, that it not knows, which API itself behind it hide *prophezei*... |
|
|
| |
|
|
|
| I mean this is Heap-Zeugs... |
|
|
| |
|
|
| |
|
- Page 6 - |
|
|
RGH | from the help of Delphi 5 (in the Help Turbo-Delphi missing the entry):
"AllocMem points a Speicherbereich the angegebenen Size on the Heap To. thereby becomes each byte the Blocks on zero staid. with FreeMem can the Puffer again released go."
means becomes the memory at first DIM still genullt! (Sorry, the was me entfallen.) Also becomes it on the Heap allocated. so should any obscurities eliminating his.
and here yet To ReAlllocMem:
"Diese operation affects not whom Content the Speicherblocks from. becomes the block however vergrößert, are The new allocated Speicherbereiche not definiert. can the block not on this position in memory reserved go, becomes it in a others area on the Heap verschoben"
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/08/08 ▲ |
|
|
|
|
Michael Wodrich | then is freepascal means The repository in the one search must. The Heap-bites Reserviererei know I yet from Turbo-Pascal.
the ought to itself but with ASM well controlling let - for Übertragungen in both directions.
momentarily Have I for no Time, but its definitiv on the Todo-list.
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 09/11/08 ▲ |
|
|
|
|
Frank Abbing | Yes. thanks for Info, Roland! |
|
|
| |
|
|