Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TMemo - clears its "Lines" by itself

Status
Not open for further replies.

yizhar

MIS
Sep 1, 2001
2,282
IL
HI!

I am using Delphi 3 statndard, running on Win98SE.

I am using TMemo in different programs I write, to present the user with information.
The Lines property is edited in design time and is not modified by the program.

From time to time (I can't tell when and why), the content of the Lines is clearing and I get an empty Memo, and I have to reenter (or load from file) the text again in design time.

Is this a known bug of Delphi 3
Any other info and solution, other then buying a newer version?

Thanx

Yizhar

Yizhar Hurwitz
 
It wouldn't just be a case of forcing a repaint or refreshing the form to redisplay the lines in the memo again ?
Steve
 
HI

No steve, the lines are realy gone...
When it happens, I have to get into the editor and type or load from file again.
It happens only with TMemo. StringLists, ComboBoxes and other that hold multistring values don't have this problem.
It happens when I work on my product and many times I press F9 to compile and run.
One guess I have is that the system is going low on resources (I use Resource Meter, It sometimes go little below 50% but not much further), and then Delphi starts loosing control.

Or maybe there is a small alian in my PC that takes them to his UFO?

Well, I guess it's a bug but I don't know.

BTW, this is the program it happens most with:
The TMemo objects are in the first 2 pages of the main TPageControl.

You won't see there the problem since I check the EXE before distribution, but you can see the structure of the program.

Thanks for your reply
Yizhar Hurwitz
 
Hi yizhar

I would go with the alien theory, seriously I used D3 for about 4 years and never had this problem, you could try the 'Delphi bug list' web pages.

Steve..


 
I have used Delphi 3 for about two years and sometimes
some of the basic components just got a mind of their own.
Maybe somehow your TMemo component got "fucked up" (excuse
the expression). Try reinstalling the TMemo component.
And after that place the newly installed TMemo on your prog.
Maybe it helps (helped me a couple of times components).

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top