Questions tagged [getmem]

5 questions
6
votes
2 answers

Delphi Access Violation Error When Assigning Strings between record types

I have a simple record type. I allocate an new instance of this record and use a procedure ("_clone") to copy values from an existing record to the new one. I obtain an access violation only when assigin a string value. Any ideas? Help is much…
mad moe
  • 322
  • 3
  • 14
5
votes
1 answer

What allocating method to use for a high volume logger application?

I'm developing a logger/sniffer using Delphi. During operation I get hugh amounts of data, that can accumulate during stress operations to around 3 GB of data. On certain computers when we get to those levels the application stops functioning and…
Ran
  • 391
  • 1
  • 4
  • 10
4
votes
1 answer

Why do I get access violations using Mike Heydon's TStringBuilder class?

I am using a TStringBuilder class ported from .Net to Delphi 7. And here is my code snippet: procedure TForm1.btn1Click(Sender: TObject); const FILE_NAME = 'PATH TO A TEXT FILE'; var sBuilder: TStringBuilder; I: Integer; fil: TStringList; …
John
  • 1,834
  • 5
  • 32
  • 60
1
vote
1 answer

How to allocate memory to pointer to a record? Delphi 7

I have this type: type pTRegex_sec=^TRegex_sec; TRegex_sec = record secs: Array of pTRegex_sec; len: byte; hasSections: boolean; hasUnits: boolean; units: Array of TRegex_unit; end; type TRegex_assertions = record len: byte; secs:…
John Boe
  • 3,501
  • 10
  • 37
  • 71
0
votes
1 answer

How put the free memory info in a texview

How can i put this in a textview? ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); activityManager.getMemoryInfo(memoryInfo); memoryInfo.availMem; the…
Atlas91
  • 5,754
  • 17
  • 69
  • 141