At 3:26 AM -0600 25/3/06, Bob Delaney wrote:
I'm using a 1.25 GHz iMac with OS X 10.4..5.

My OMMs program is made with REALbasic 2006 R1. The user enters the number of characters to be output in an EditField. But when 1,000,000 characters are asked for, the program appears to hang and must be forced quit.

Since the program was already using my Extended Plugin, I decided to let that plugin do all the work, using a random number generator to help generate the desired string of characters. So this line in my OMMs displayed the output to the user:

EditFieldMonk.text=OMMsRNG(numToType)

where OMMsRNG was my plugin function.

With numToType=100000 the program took about 10 seconds to display the string of 100,000 characters. But with numToType=1000000 I forced quit the program after waiting over 10 minutes for output.

Then I modified my source code. With monkStr declared as a string:

monkStr=OMMsRNG(numToType)
EditFieldMonk.text="got monkStr"
EditFieldMonk.refresh
EditFieldMonk.text=monkStr

With numToType=100000 I saw "got monkStr" in less than one second. But it took about 10 seconds more to see the output. With numToType=1000000 I saw "got monkStr" in about 3 seconds. But after waiting over 10 minutes for output I forced quit.

So my plugin took only about 3 seconds to generate a C string of 1,000,000 characters, convert it to a REALstring, and hand it over to my OMMs program. The single line:

EditFieldMonk.text=monkStr

was taking more than 10 minutes to complete when I forced quit. This appears to be a bug.

Bob


Could the problem be that the editfield is confused about the encoding of the supplied string, anbd trying to guess the encoding. Can you define ht estring's encoding before passing it to the editfield. Just a guess.
--

Cheers,

Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.

If you're not part of the solution, you're part of the precipitate.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to