Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This bug has me stumped.
Message
From
09/08/2003 15:07:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
This bug has me stumped.
Miscellaneous
Thread ID:
00818607
Message ID:
00818607
Views:
58
I'm using VFP 7.0
I have a bug that doesn't show up when breakpoint is set, and crashes VFP when a breakpoint is set.
define class myForm1
  oBrowser = .null.

  procedure myProc()
    do form myForm2 with this
    return ! isnull( this.oBrowser )

define class myForm2
  oBrowser = .null
  oCalling_Form = .null

  procedure init( oCalling_Form )
    this.oCalling_Form = m.oCalling_Form
    this.oBrowser = createobject( 'InternetExplorer.Application' )

  procedure destroy()
    this.oCalling_Form.oBrowser = this.oBrowser
1. During runtime myProc() returns .f. and I check the watch window and myForm1.oBrowser=.null.

2. I open the watch window (no breakpoints) and run it again - same results.

3. I open the watch window and set a breakpoint on myForm1.oBrowser and run it again - it stops on the correct line in myForm2.destroy() and shows myForm1.oBrowser = object.
I close the trace window and continue.
myProc() returns .T.
When I close the watch window I get a fatal error and a message to send it to MS.

Where do I start looking?

TIA
Bill Morris
Next
Reply
Map
View

Click here to load this message in the networking platform