Here it is.
I can reproduce the problem each time.
http://www.mikroe.com/forum/viewtopic.p ... highlight=
I wonder for how long and I prefer to write this post before to restart my computer in order to check and be absolutly sure.
By now here is the fact and details. Some of the details could appear out of subject but as I suspect a windows problem, this will be probably usefull to know as much as possible the configuration :
Win XP SP1.
In a folder, I have all my "electronics shortcuts".
On my desktop, I have a shortcut to this folder.
I first open "electronics shortcut" folder. (window is open)
I clic on Mb shortcut.
Mb starts, it is first minimized and short time later Mb window open behind my "electronics shortcut" window. I minimize this window or clic on Mb window.
Here is the code of last project which is loaded automatically with Mb. (16F877A/ flags by default)
(code is only all my week end tries so do to look closely to it, it probably doesn't work.)
Code: Select all
program Led_blinking
dim txtlen as byte
dim text1 as string[30]
dim txtresult as string[30]
sub procedure str_left(dim byref result_txt as string[255], dim byref text as string[255], dim nb_char as byte)
dim i as byte
for i = 0 to nb_char - 1
result_txt[i] = text[i]
next i
end sub
sub procedure str_mid(dim byref result_txt as string[255], dim byref text as string[255], dim start, nb_char as byte)
dim i,j as byte
j = start-1
for i = 0 to nb_char - 1
result_txt[i] = text[j+i]
next i
end sub
sub procedure str_right(dim byref result_txt as string[255], dim byref text as string[255], dim nb_char as byte)
dim i,j as byte
j = strlen(text)-nb_char
for i = 0 to nb_char - 1
result_txt[i] = text[j+i]
next i
end sub
sub procedure str_clear(dim byref strtext as string[255], dim nb_car as byte)
dim i as byte
for i = 0 to nb_car - 1
strtext[i] = chr(0)
next i
end sub
main:
text1 = "AZERTYUIOPQ "
txtresult = "AZERTYUIOP"
txtlen = strlen(text1)
text1[13] = "T"
txtlen = strlen(text1)
str_clear(text1, 50)
text1 = ""
end.
- Open debugger by icon : start debugger. Watch window is open. (First line of program is highlighted in blue : text1 = "AZERTYUIOPQ ")
- Now, if I click anywhere in editor window, watch window is not any more visible! (Debugger icons are still available.)
Now, icon "watch window" open watch window but it is displayed behind all others windows. you can see watch window displayed for few hundreds of ms.
By now, this happens all the time. I'm going to check if this still happen after to restart my computer.