Recent

Author Topic: tmemo behaviour on wince  (Read 5546 times)

zariq

  • Full Member
  • ***
  • Posts: 109
tmemo behaviour on wince
« on: March 08, 2010, 11:11:23 am »
Hi everyone,

after finishing a small program for windows mobile I noticed an issue with the memo component. If you delete some letters from a line and then do a statement like  "variable := memo1.lines[index]",
the variable usually contains an extra letter, usually the last one deleted. If the line contains two or less characters then the variable contains an extra letter whether anything is deleted or not. It behaves like this on the windows mobile emulator and on my mobile which is an xda orbit with windows mobile 6 professional. I did a test program just to make sure  the program wasn't messing with the strings. The test program contained just that one assignment statement, but same results.

This is only happening with  wince, everything is fine in windows xp. allthough it happens on the emulator and the phone, it is a lot worse on a real device. On the phone contents of the memo get more garbled with each save and load. I have tried different string types for the variable thinking it might be a conversion problem but no luck.

I have tried the test program with lazarus 0.9.28.2 fpc 2.4.0 and lazarus 0.9.29 fpc 2.4.1. Could somebody please point out what I'm doing wrong.

Thank you.

Zariq

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: tmemo behaviour on wince
« Reply #1 on: March 08, 2010, 02:43:43 pm »
Please report this bug in the bug tracker.

 

TinyPortal © 2005-2018