SOLVED: Text setText Issue Verification [message #492058] |
Sat, 17 October 2009 20:11 |
Ricky Patel Messages: 33 Registered: July 2009 |
Member |
|
|
I came upon this issue because I was creating a Wizard and was attempting to set the text of one of the Text fields in the wizard in the createControl method.
I'm running Windows x64 Vista and eclipse 3.4.2 and I have yet to try it on another platform (seeing that I have none others)
Within the createControl method I have the following code
new Label(composite, SWT.NONE).setText("Username");
username = getUsernameControl(composite); //which will return an already created username control or in this case a brand new username control. I've checked, it doesnt return null
username.setText(tempUsername);
Where tempUsername is a string that can be anything but null. I've run two tests, one where tempUsername = "" and tempUsername = "test".
When tempUsername = "" the program works perfectly fine.
When tempUsername = "test" the program will fault quietly at line 1877 org.eclipse.swt.widgets.Text: OS.SetWindowText (handle, buffer); when attempting to execute the method setText
Anyone else see anything like this or have a clue what I have done wrong? Thought i would ask the masses before opening a bug
[Updated on: Sat, 17 October 2009 20:20] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02744 seconds