Hi,


Copy the code in the order tab

Code:
            Object oButton1 is a Button
                Set Location to 159 169
                Set Label to 'Test'
                Set peAnchors to anBottomLeft


            
                // fires when the button is clicked
                Procedure OnClick


                    Longptr lVal1 lVal2
                    
                    Move -1 to lVal1


                    Showln "Studio Abort " lVal1
                    
//                  or


                    Send Stop_Box (lVal1/lVal2) "Studio Abort"
                    
                End_Procedure
            
            End_Object


Follow the steps:


1) Compile and insert breakpoint for step by step.
Note that both local and watches are closed.
Click image for larger version. 

Name:	badlocal1.JPG 
Views:	40 
Size:	153.0 KB 
ID:	14422


2) All steps happen normally.
Click image for larger version. 

Name:	badlocal2.JPG 
Views:	42 
Size:	127.5 KB 
ID:	14423


3) Repeating with the local viewer and watches.
Click image for larger version. 

Name:	badlocal3.JPG 
Views:	42 
Size:	150.1 KB 
ID:	14424


4) By checking the function and trying to drag, for watches the studio aborts!
Click image for larger version. 

Name:	badlocal4.JPG 
Views:	43 
Size:	154.7 KB 
ID:	14425

Best Regards,