Hard crash on incorrectly cast field

Steve Albin steve at steve-albin.com
Sun Aug 3 11:04:19 CDT 2014


Using V5RB 5.5 on a Mac, I have this code:
	 return cursor.DateTimeField(3).Month 

The field I'm returning is a DateField, so I know I'm miscasting the field and should get an error.  Instead, I get a hard crash of the app.  No big deal for me since I'll make the simple correction and move on, but should I submit this to Mantis or something?  Is a hard crash expected or should we expect an exception?



Here's the snippet of the stack dump implicating Valentina:

0   V4RB.rbx_0.dylib              	0x05b9da39 DateTime_GetMonth(REALobjectStruct*, int) + 162
1   com.soundcatalog.BRIAN        	0x002dc38a VDateTime.Month.Get%i4%o<VDateTime>i4 + 68
2   com.soundcatalog.BRIAN        	0x00634473 VC_Sessions.GetSessDateMM%i4%o<VC_Sessions> + 165
3   com.soundcatalog.BRIAN        	0x006ccb1b genXML_Sess.GenSessInfo%%o<genXML_Sess> + 969
4   com.soundcatalog.BRIAN        	0x006cc69e genXML_Sess.Constructor%%o<genXML_Sess>&o<XmlNode>&o<XmlDocument>i4 + 556


Steve
  
--
Steve Albin, Montclair, NJ
http://www.steve-albin.com
http://www.jazzdiscography.com



More information about the Valentina mailing list