cristi_bd


I was testing a program with debug and watch window . I enter a function in the watch windw than a window like passward with no title apears and evry think is bloked. I have to end forcely by task manager. Since than evry time I start watch window I get the same window and bloking situation.I uninstald Visual fox pro and I reinstald it. The same think. I uninsald Visual FoxPro and I deleted all the directory from program file . I reinstald Visual FoxPro 9 and the same think happends. I posted a screen copy of the event to www.bluejeans.lx.ro if you want to see it. What can I do   

In the watch window I tested this

UPPER(ALLTRIM(INPUTBOX(DVDLOGIN_LOC,DVDLOGINCAP_LOC)))

it permanently genereit an imput box blocking evry thik.

What can I do

 





Re: Visual foxpro 9 watch hang

dni


IF DVDLOGIN_LOC and DVDLOGINCAP_LOC are characters strings, each of them, it should work.





Re: Visual foxpro 9 watch hang

Tamar E. Granor

Find the FoxUser.DBF that's in use (probably in the C:\Documents and Settings hierarchy) and rename or delete it. Once you get back into VFP, you can actually open that table and just remove the entries related to the Debugger, so that you don't lose your other settings.

Tamar





Re: Visual foxpro 9 watch hang

cristi_bd

did you try it in your Foxpro watch window Just try it and than talk.

You can try it even in a ampty space with no variables definited with no databases open or any dbf open. Aftar you'l get the bloking state, evry time you star wach window you'l get the same bloking situation without etering ani expresion in thw watch window. You can see the situatio image on the site I posted.

You can try just with this expresion in watch window: 

inputbox("aa","bb")

Thanks

 






Re: Visual foxpro 9 watch hang

cristi_bd

I deleted all foxuser.dbf from my HD . I reinstald 5 times Visual FoxPro with diferent options , the same think.

If you are not afreid to destroi your fox gest test inputbox("aa","bb") in wacht window

This function is testing permanently for a value in the input box. I thik this is a bug and if I am corect than this can be extendet to al functions that ar calling a value in a dialog window. Am I corect

Thanks






Re: Visual foxpro 9 watch hang

dni

IF YOU PUT getfile() in watch window you will have the same result because MS say somewhere:

"Assign methods cannot be executed from within the Watch and Local windows of the Debugger window."

So, I won't try that.






Re: Visual foxpro 9 watch hang

cristi_bd

OK, than way is this hapning the same after I reinstald fox and I did not test the expresio in watch window , and what is the solution for the problem Do I have to erase windows

Assign methods cannot be executed from within the Watch and Local windows of the Debugger window,

but does it specify that an atempt like this is bloking the system I don 't think so........

Thanks

 






Re: Visual foxpro 9 watch hang

dni

May be you are right and you may report to MS.

May be someone else will give you a better answer.






Re: Visual foxpro 9 watch hang

AndyKr

This is not a bug! This is precisely the behavior that I would have expected because all you are doing here is creating an infinite loop - you are telling VFP:

Display the dialog and return the result, and when you get a result, display the dialog and return the result

If you want to know what a function returns, set a watch on the variable to which the value it returns is set. So instead of creating a watch on [inputbox("aa","bb")]

What you should do is set a watch on [lcInVal] and then execute: [lcInVal = inputbox("aa","bb")]






Re: Visual foxpro 9 watch hang

cristi_bd

Thanks for the replay , but the question is how can I solve my problem I can not use no more the trace be cause the watch window was activ when the bloking situation hapend and it is stil now,so when I start trace Fox hangs ...........

Solutions please , no coments. Now I know what I'l do in the future , but how can I use trace again without bloking the system and eventualy not saving data






Re: Visual foxpro 9 watch hang

AndyKr

I don't understand what you are saying. Are you saying that you cannot run anything because this value is still in the debugger

Try this:

SET RESOURCE OFF
USE foxuser EXCLUSIVE
DELETE FOR "DEBUG" $ UPPER( id )
PACK

That will remove any references to the debugger from your resource file

Then re-start Fox and you should be good to go....(by the way, what version of VFP are you using )






Re: Visual foxpro 9 watch hang

cristi_bd

I have Fox 9. I said befoure that I deleteted all the foxuser.dbf from my HD and it did not work so I tried by your sugestion but there is no foxuser.dbf . In Option, File location, I remouved the item for the resources file and I tried watch window. It was good. I resored the last location of the foxuser.dbf even it uas not there and in watch windw happend the same think hang. So I have changed the location for foxuser.dbf and since then evry think is OK.

Thanks

Cristi from Romania