createVarCharField crash

jda jda at his.com
Tue Nov 16 18:52:10 CST 2004


  Ruslan,

I've adapted this code from my 1.x-based app. It creates a temporary 
method that should return one of three fields (depending on if any 
are NULL or not).

fld is dimmed as a VField (although I've also tried VVarChar). When 
this line is run it crashes:


    fld = 
myDatabase.myReferences.createVarCharField("authorEditorSortMethod", 
2000, "en_US", EVFlag.fNone, "if (authors IS NULL, if (editors IS 
NULL,title,editors),authors)")


The crash log is

Thread 0 Crashed:
0   Kernel_Carbon_Final.shlb       	0x0209d24c 0x2008000 + 0x9524c
1   Kernel_Carbon_Final.shlb       	0x02038a08 0x2008000 + 0x30a08
2   Kernel_Carbon_Final.shlb       	0x02272248 0x2008000 + 0x26a248
3   Kernel_Carbon_Final.shlb       	0x02037bcc 0x2008000 + 0x2fbcc
4   Kernel_Carbon_Final.shlb       	0x0203772c 0x2008000 + 0x2f72c
5   Plugin                         	0x004f6620 
Table_CreateField_Simple__FP16REALobjectStructP16REALstringStructiiP16REALstringStructQ23fbl29smart_ptr<Q23fbl10I_Property>Q23fbl29smart_ptr<Q23fbl10I_Property> 
+ 0x514



Is this a problem with my code? Or is it a 2.x bug that I should report?

Jon


More information about the Valentina-beta mailing list