Lee Allen
19-03-2007, 02:02
Hi Eros
Just thought you would like to know there appears to be a problem around the
Dialog_ChooseColor function. Although the problem appears AFTER the function
ends and the Message Box is dismissed.
Maybe a stack issue or a uninitiated pointer somewhere?
This is how to reproduce the problem. The code is the Dialog_ChooseColor.tBasic Sample Script
uses "UI"
dim lColor as long
lColor = Dialog_ChooseColor(0, rgb(255, 0, 0), %CC_RGBINIT OR %CC_FULLOPEN )
if lColor = -1 then
msgbox 0, "Color Dialog cancel by user"
else
msgbox 0, "Your color is: " & hex$(lColor, 6)
end if
1: Run script
2: Click Button Add to Custom Colors
3: Select the new red custom color
4: Click OK
5: Message Box appears (all OK so far)
6: Click OK on Message box then this message pops up...
The instruction at "0x77fcd989" referenced memory at "0x00000000". The memory could not be written
Just thought you would like to know there appears to be a problem around the
Dialog_ChooseColor function. Although the problem appears AFTER the function
ends and the Message Box is dismissed.
Maybe a stack issue or a uninitiated pointer somewhere?
This is how to reproduce the problem. The code is the Dialog_ChooseColor.tBasic Sample Script
uses "UI"
dim lColor as long
lColor = Dialog_ChooseColor(0, rgb(255, 0, 0), %CC_RGBINIT OR %CC_FULLOPEN )
if lColor = -1 then
msgbox 0, "Color Dialog cancel by user"
else
msgbox 0, "Your color is: " & hex$(lColor, 6)
end if
1: Run script
2: Click Button Add to Custom Colors
3: Select the new red custom color
4: Click OK
5: Message Box appears (all OK so far)
6: Click OK on Message box then this message pops up...
The instruction at "0x77fcd989" referenced memory at "0x00000000". The memory could not be written