Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with these errors
Message
From
30/07/2001 15:28:06
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534158
Message ID:
00537414
Views:
10
>Hi Friends!
>
>I have a new trivia:
>
>An application works fine. But sometimes, only sometimes, 1 in 1000, the app returns an error. The Main form it´s named ENTRADA and calls 8 subforms in that way:
>
>Thisform.visible = .F.
>Thisform.lostfocus()
>do form formx
>
>And every object returns to main form in that way
>
>Thisform.release
>ENTRADA.visible = .t.
>ENTRADA.gotfocus()
>
>The problem is that sometimes, with no aparent reason, the app returns this error message:
>
>"ENTRADA is not an object"
>
>
>The other problem, it´s in other part of the application, the client, that sometimes returns:
>
>"OLE erro code 0x80020006 Uknown COM status mode" Everything works fine, just this error, and in the same way, 1 in 1000.
>
>Can anybody help?
>
>Thanks in advance!

just an observation about your question ...
you can make your main form 'modeless' and all your subforms 'modal'.
to access a subform, just issue DO FORM FORM_X. you don't need to set
visible=.F. for your parent form. your don't need to explicitly call
THISFORM.LOSTFOCUS() for your parent form, it gets called automatically.
i suppose if your parent form were larger (dimension) than your subform
and you really didn't want it to show, you could set Visible=.F. , but
you could do that in the LostFocus event for your main form. as for
returning to your parent form from a subform, you just issue THISFORM.RELEASE
and focus will return to your parent form. if you had set visible=.F.
in the parent LostFocus event, you can set Visible=.T. in the parent
GotFocus() event. stylistically, in a subform, i would never refer to
the parent form by name, because i might want to use that subform somewhere
else, and it wouldn't be applicable if the name of the parent form were
different.
only on the 'close' button of the main form, issue a CLEAR EVENTS command
(right after your THISFORM.RELEASE)


as for you other error, i don't see anything wrong with asking 2 questions
at the same time, but i'd address them one at a time. fix your form problem
first, and it may affect your OLE problem.
patrick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform