Hi,
this code crashes my IDE (also in a new application based on the StandardMDI sample, and also in another project - so repo corruption can be excluded):
class LVWindow inherit SplitWindow
method ListViewColumnClick( oEv ) class LVWindow
local oEvent as ListViewColumnClickEvent
oEvent := oEv
if oEvent:NameSym == #Hallo // this code line crashes the IDE
endif
return super:ListViewColumnClick( oEvent )
Wolfgang
P.S. VO SP4b, build 2838
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Hi Dick,
the compiler crashes only if I access the :NameSym on the strongly typed variable.
If I don't use a local variable it works (and it always worked...).
I'm using similar code to strongly type the passed events in many places of my application, but only with this event the compiler crashes.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
wriedmann wrote:Hi Dick,
the compiler crashes only if I access the :NameSym on the strongly typed variable.
Does the compiler crash? Or your program when you run that line?
What you are doing is actually exact what is recommended in the help (never realized that until now):
Most of the accesses/assigns of the event classes have been strongly typed in Visual Objects 2.8 for performance reasons. We strongly advise you to take advantage of this by assigning unsigned Event handler parameters to typed local parameters.
Probably Robert can say something about it when he's back from holiday.
Same error is thrown with SP3. It would be interesting to see what happens if the X # Compiler + X # VO GUI is used. If it works - as i expect - the method would be a #IFDEF __XSHARP__ candidate.
as suspected: this code does not crashes the X# compiler in a ported VO application that uses the VO compatible GUI classes delivered with X# Bandol RC2.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it