Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug ? Successfully having C0000005 error
Message
From
24/12/2006 08:24:24
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
24/12/2006 08:05:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01180000
Message ID:
01180009
Views:
16
>>oh!
>>release all is befor the for
>>sorry,
>>my typo
>>
>>but why does it crash on the
>>?m.f1.af1.af1.name ?
>>
>>release all
>>for m.xi = 1 to 10
>>DIMENSION af1[10]
>>m.f1 = CREATEOBJECT("custom")
>>m.f1.addproperty('af1[1]')
>>ACOPY(af1,m.f1.af1)
>>
>>m.f1.af1[1] = CREATEOBJECT('custom')
>>m.f1.af1[1].addproperty('af1[1]')
>>ACOPY(af1,m.f1.af1[1].af1)
>>?m.f1.af1.af1.name
>>endfor
>>
>>suhashegde
>>
>>Update
>>
>>infact there is also no need of the 'for' loop it crashes without it also
>
>I don't know why the fatal error appears, but at some moment, instead of a fatal error I get "unknown member".
>
>Using the debugger to see how far I can get along the containership, I note the following:
>
>Since af1 is an array, the last line should read:
>
>
>m.f1.af1[1].af1[1]
>
>
>This latest array element has the value .F., it is not an object; so you can't get its .Name property.
>
>Or, you can get the .Name one level before:
>
>
>? m.f1.af1[1].name
>
in fact it crashes without the .name

?m.f1.af1.af1 && crashes
?m.f1.af1[1].af1 && works
?m.f1.af1.af1[1] && crashes

suhashegde
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform