home *** CD-ROM | disk | FTP | other *** search
- uses bigmem;
-
- { ************************************
- User Runtime Error Demo 1
-
- This program demonstrates how FRTE can be used. This program uses a "unit"
- which allocates heap space for a particular type of data struture. When
- a heap error occurs, rather than a runtime error ocurring in the unit
- where the actual call to new() occurs, the error is shown to occur
- where the program called the "unit's" routine that does memory allocation.
- This allows user written "units" to be linked into Turbo's runtime
- error support.
- ************************************ }
-
- var B:bigmemptr;
- i:word;
- begin
- InUnit := false;
- for i:=1 to 100 do
- begin
- { This is the call that causes problem }
- get_bigmem(B);
- end;
- end.
-