Solved

What's the difference between EOutOfMemory.CreateRes(@s) and EOutOfMemory.Create(s)

Posted on 2002-06-21
3
172 Views
Last Modified: 2010-04-04
If I define s as:

resourcestring
  s = 'hello, world!';

then both EOutOfMemory.CreateRes(@s) and EOutOfMemory.Create(s) are valid.

Then, can anyone tell me what's the difference between the two and which one is better.
0
Comment
Question by:chcw
3 Comments
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 7100184
The right one is:

  raise EOutOfMemory.Create(s);

CreateRes used with resource string such as:

resourcestring s = 'hello, world!';
begin
  raise EOutOfMemory.CreateRes(@s);

Motaz
0
 

Expert Comment

by:CleanupPing
ID: 9343178
chcw:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9453480
chcw,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Motaz http:#7100184

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now