1. addLVItem crash
- Posted by jacktarred at yahoo.com Apr 23, 2002
- 419 views
When adding an item to a LVbox, my program crashes. Any help would be appreciated, thanks. the code lv[x] = create( ListView, {"Date", "Action", "#Shares", "$/Share", "Ext1", "Cmsn", "Total" }, tab[x], 10, 25, 410, 200, LVS_REPORT ) lvDataItm = { DBdata[4], DBdata[3][1], tShares, tPrice, tExt1, tCom, tExt2, usaIcon } thesize = length(DBdata[4]& DBdata[3][1]& tShares& tPrice& tCom& tExt1& tExt2& usaIcon ) lv[x] = repeat(0, thesize ) lvData = addLVItem( lv[x], lvDataItm[8], lvDataItm[1..7] ) >From my trace output the last few lines look like this: US_or_CA = equal( CA_USA, "USA" ) thesize = length(DBdata[4]& DBdata[3][1]& tabtest3 lv[x] = repeat(0, thesize ) lvData = addLVItem( lv[x], lvDataItm[8], lvD ------------------------ Win32Lib.ew:4311 hWnd=window_handle[id] Win32Lib.ew:4312 if window_handle_type[id]!=kht_Window Win32Lib.ew:4315 return hWnd Win32Lib.ew:6262 if window_type[id]=ListView then Win32Lib.ew:6263 message=LVM_SETIMAGELIST Win32Lib.ew:6267 VOID=sendMessage(id,message,size,IL) Win32Lib.ew:4769 if validId(id) Win32Lib.ew:4281 if integer(id) Win32Lib.ew:4281 if integer(id) Win32Lib.ew:4281 if integer(id) Win32Lib.ew:4296 return True from ex.err win32lib.ew:10970 if sequence(lUserReturn) win32lib.ew:10975 lHandledEvent=find(iMsg,vEventsHandled) win32lib.ew:10976 if lHandledEvent=0 or win32lib.ew:10978 if pSource=kReturnNow then win32lib.ew:10981 if window_type[id]=TabControl and iMsg=WM_NOTIFY then win32lib.ew:10986 result=w32Func(xCallWindowProc,{window_func[id],hWnd,iMsg,wParam,lParam}) win32lib.ew:11010 return result