English
Regulars table & Café

Dim, a couple ask...

 
- 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
Declare B#
Dim B#,11
String B#,0 = "0123456789"
Print Char$(B#,0,SizeOf(B#) - 1)
Dim B#,6
Print Char$(B#,0,SizeOf(B#) - 1)
WaitInp

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
 
09/03/08  
 




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?
 
09/08/08  
 



[...] 
 
09/08/08  
 




Frank
Abbing
Nö. Rolands AllocMem has only one parameter. Zähl simply time to...
 
09/08/08  
 



Ä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...
 
09/08/08  
 




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*...
 
09/08/08  
 



I mean this is Heap-Zeugs...
 
09/08/08  
 



 
- 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!
 
09/12/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

27.755 Views

Untitledvor 0 min.
Michaeal03/21/12

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie