Security Software review and downloads
  • Home
  • Spyware & Spyware Remover
  • Registry & Registry Cleaner
  • Firewall
  • Hacked
  • Uninstall & Uninstaller
  • Antivirus

How can i deal with overflow error in turbo pascal?

June 11th, 2008 · 1 Comment

is there any TP code or assembly code to trap overflow errors in the TP. please write code here. thanks.
thank you himanshu s. but i couldn't find SysUtils.tpu or classes tpu under my tp/units folder.
where to find them and how to use stack unit. which procedures or function, when to call?

Related posts:

  • Security code 02 Blazer RDS stock unit?
  • I have an 02 blazer with a RDS head unit. I can't find anywhere that will give you...
  • error in turbo c => cannot convert 'char *' to ….?
  • i have wrote some code in turbo c, but there is an error says: cannot convert...
  • help with a computer problem please "error call stack"?
  • i have been playing on a game on my computer for several weeks with no problems until...
  • how to call a C# dll function from a C code ?
  • hello , i have written dll with C# that stores two functions (GetString &...
  • how can i call C# dll function from a C code ?
  • hello , i have written dll with C# that stores two functions (GetString &...
  • Any professional AC installers willing to uninstall 2 units and install 2 units on personal time?
  • I have 2 older units from 1984. They are R22. I have purchased 2 preowned units that are...
  • C++ Calling a DLL function?
  • How do you call a dll function in C++. Meaning the block of code, and maybe a quick...
  • Why do I keep getting this Fatal error: Call to undefined function:?
  • I am using Easy Banner Free, and everytime I sign in, it sends me to this :Fatal error:...
  • What does a condo assoc cover for drain backup?
  • I know some associations are different. Long story short a drain under the water heater...
  • how do I change my windows XP key?
  • I have XP on an older unit, The CD key I used is invalid.I have a good key now, When I...

    Tags: Windows Error


    1 response so far ↓

    • 1 himanshu s // Jun 11, 2008

      well you can understand overflow logic using stack concept ……..

      i am writing stack algo in Pascal………
      /*statck*/
      unit Stack;

      interface

      uses
      SysUtils, Classes;

      type
      TStack = class
      private
      FList: PPointerList;
      FCapacity, FCount: Cardinal;
      procedure Grow;
      public
      destructor Destroy; override;
      procedure Push( const Data: Pointer );
      function Pop: Pointer;
      end;

      implementation

      { TStack }

      destructor TStack.Destroy;
      begin
      FreeMem( FList );
      inherited;
      end;

      procedure TStack.Grow;
      begin
      if FCapacity > 64 then
      Inc( FCapacity, FCapacity div 4 )
      else
      if FCapacity > 8 then
      Inc( FCapacity, 16 )
      else
      Inc( FCapacity, 4 );
      ReallocMem( FList, FCapacity * SizeOf( Pointer ) );
      end;

      function TStack.Pop: Pointer;
      begin
      if FCount > 0 then
      begin
      Dec( FCount );
      Result := FList^[FCount];
      end
      else
      Result := nil;
      end;

      procedure TStack.Push(const Data: Pointer);
      begin
      if FCapacity = FCount then
      Grow;
      FList^[FCount] := Data;
      Inc( FCount );
      end;

      end.

      Bye:)

    Leave a Comment

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word

    Tags: Email Spam Uninstall spyware Security Software Trend Micro Registry Cleaner Pc Tools Norton Nod32 Kaspersky Internet Security Hacked Firewall Computer Security Avg Avast Antivirus Ad Aware Monitoring Software Encryption Backup


    A Slow System?
    Harassed by DLL errors?
    Plagued by constant Blue Screens?
    Receiving error messages and don't know why?

     
    • Most popular Software downloads

      • Pctools
      • kaspersky
    About | Contact Us | Old Sitemap Security Software review and download . All rights reserved PoweredBy Yahoo!API.