Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fatal Error on Class
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00521439
Message ID:
00521448
Views:
32
This message has been marked as the solution to the initial question of the thread.
Hi!

Tree View control is VERY sensitive to the approaches you use to work with its objects. I met a lot of similar problems in past and ended up with forgetting to use the With and For Each loop. Remove With statements and instead of FOR EACH loop use
for i=1 to ...nodes.count
  if ...nodes(i).Key = ...
  endif
endfor
>Hi,
>
>I´m developing a few generic classes, but when I was almost finishng the most important one, I started to get an error that terminates my debugging and closes VFP. I wrote down the error details:
>
>Fatal Error: Exception code=C0000005
>Called from - myclass.treeview.nodeclick line 134 {c:\classes\classlib.vct}
>
>The code on the nodeclick event is this:
>
>
>132: FOR EACH oPrivNode IN .tvwPrivs.NODES
>133:
>134:    IF (oPrivNode.KEY == xNodeKey)  && here is the error
>135:							
>136:       xFound = .T.
>137:       EXIT							
>138:							
>139:    ENDIF
>140:
>141: ENDFOR
>
>
>What am I doing wrong?
>
>TIA
>
>Alonso.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform