Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh() method and fatal error
Message
 
 
To
07/12/2001 23:56:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00591606
Message ID:
00591609
Views:
22
Could you see any similarities in the problem, described in Forum: Visual FoxPro Category: Troubleshooting Title: Fatal Error C0000005 and Edit boxes Thread #377352 Message #377352 and yours?

BTW, are you from China or USA and what's your name?

>Would anyone please help.
>
>I'm getting this fatal error C00000005 (FE C5) at random but repeatedly.The dbf file opened is the same one, with 4 memo fields and 1 gen field and several other char fields, with 30 records.The dbf file has no index file; only several records of the Gen field have data; others, memos included, are all empty.
>
>I created a form with a commandbutton that opens a new file to browse, a
>buttongroup that has TOP/Prev/Next/END and some other commandbuttons, a
>grid, and a container. Both the grid and container refer to the same opened
>table.
>
>When I opens the dbf file and when there comes the FE C5, it is always the line, "thisform.refresh" that is causing trouble: it is the last code line (line
>53) in Mytxtbtns1.NavRefresh() of MyVcx.vcx. Mytxtbtns is modelled on the txtbtns in VFP7's Wizbtns. I didn't change much code of it. What follows is from VFP7ERR.Log: Line 53 is the trouble line. All other code line numbers are lines that somehow call NavRefresh().
>
>Fatal error: Exception code=C0000005 @ 12/07/01 06:38:14 PM. Error log file: E:\AppFiles\Microsoft Visual Studio\vfp7\vfp7err.log
> Called from - subcb.mytxtbtns1.navrefresh line 53 {c:\documents and settings\administrator\my documents\visual foxpro projects\libs\myvcx.vct c:\documents and settings\administrator\my documents\visual foxpro projects\libs\myvcx.vct}
> Called from - subcb.mytxtbtns1.init line 27 {c:\documents and settings\administrator\my documents\visual foxpro projects\libs\myvcx.vct c:\documents and settings\administrator\my documents\visual foxpro projects\libs\myvcx.vct}
> Called from - subcb.command1.click line 95 {c:\documents and settings\administrator\my documents\visual foxpro projects\forms\corpus build.sct c:\documents and settings\administrator\my documents\visual foxpro projects\forms\corpus build.sct}
>
>I can't see anything wrong with "Thisform.refresh" in NavRefreh().
>
>Sometimes I got the error when it comes to "thisform.grid1.refresh()" or "thisform.container1.refresh()", either being the last code line in one of the 2 command buttons that activate the grid or the container. What follows is from VFP7ERR.Log:
>
>Fatal error: Exception code=C0000005 @ 12/07/01 10:35:14 PM. Error log file:
>E:\AppFiles\Microsoft Visual Studio\vfp7\vfp7err.log
>Called from - subcb.command3.click line 13 {c:\documents and
>settings\administrator\my documents\visual foxpro projects\forms\corpus
>build.sct c:\documents and settings\administrator\my documents\visual foxpro
>projects\forms\corpus build.sct}
>
>And here is the Command3.click():
>IF !EMPTY(thisform.mytxtbtns1.dbfalias)
> SELECT (thisform.mytxtbtns1.dbfalias)
> WITH thisform
> .grid1.enabled = .f.
> .grid1.visible = .f.
> .grid1.recordsource = ""
> .container2.enabled = .f.
> .container2.visible = .f.
>
> .container1.enabled = .t.
> .container1.visible = .t.
> .container1.Refresh() && line 13, where the Error occurs!
> ENDWITH
>ENDIF
>
>Again I can't see anything wrong with line 13.
>
>I tried setting the grid and/or the container invisible: only when I click a
>button to initialize one of them, is the grid or container set to visible. I packed Myvcx.vcx; I packed the form of subcs; I deleted all blank lines in Myvcx.vcx (as suggested by a VFP programmer); I even zapped the dbf file. Still I get the error, at random.
>
>I can't see anything wrong with "thisform.refresh()" or "thisform.container1.refresh().
>
>Would anyone point a way out for me! Actually I have already been sufferring from this refresh() fatal error since VFP5. I upgraded and rewrote my app, only to find the Error still there with VFP7!
>
>Many thanks in advance.
>
>Chuncan Feng
>China
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform