Hi to yo all,
Here is an crash that I spent many hours to find out.
I am using two different way to put color codes into my editor field.
Code number one calls from the main menu --> to an Sub SetColor
<start>
dim c as color
dim nc as String
dim ok as Boolean
dim cString as Variant
c = rgb(128,128,128)
ok = SelectColor(c, "Select Color")
if ok = true then
cString = c
cString = mid(cString,3,6)
nc = "#" + cString +";"
PutCommandString(Lowercase(nc))
end if
</end>
And Code number 2 from an Floating Window
<start>
dim f as FolderItem
dim c as color
dim s as string
dim nc as String
dim ok as Boolean
dim cString as Variant
if IsStop then return true
WebKit2.Enabled = false
c = me.FillColor
ok = SelectColor(c, "Select a Color")
if ok = true then
f = PreferencesFolder.child("SE-Prefs").Child("Color").Child("c2")
cString = c
cString = mid(cString,3,6)
nc = "#" + cString
s = "background-color: " + nc
me.fillColor = c
put(s +";" )
WriteColorToDisk(f,c.red,c.green,c.blue)
end if
IsStop = true
Timer1.mode = 1
WebKit2.Enabled = true
</end>
When I use Code 1 from the menu.. It works as it should.
When I use Code 2 from the Floating window it works as it should.
Here I get an Crash:
1 - I start my application
2 - Insert an color using code 1 from the menu (Works as it should)
3 - Open my floating window and use Code 2
Here I get the Crash--> ok = SelectColor(c, "Select a Color")
And this only when I first used Code 1 from the menu! And I get the
crash to 100%
Using OS X 10.3.5 RB 5.2.4 (but an user reported the same using 10.2.x)
Any ideas about this problem?
Thanks,
Sven E
(Mac OS X 10.3.4 RB 5.4.2, RB 5.5.3)
Sven E Olsson
svenerik at xhtmlsoft dot com
http://www.xhtmlsoft.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|