【问题标题】:Runtime Error in titanium app: android.database.CursorWindowAllocationException钛应用程序中的运行时错误:android.database.CursorWindowAllocationException
【发布时间】:2013-05-22 13:33:00
【问题描述】:

当我运行代码然后从数据库中获取数据时,就会出现这个错误。

android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb  failed. # Open Cursors=741 (# cursors opened by this proc=741) run time error in titanium app

这基本上是一个数据库错误,但我没有解决方案。

【问题讨论】:

    标签: javascript android sqlite titanium


    【解决方案1】:

    这是因为你没有关闭光标。

    你可以按照这个:

     Cursor cursor = null;
      try {
          cursor = query();
      } catch (Exception e) {
    
      } finally {
          if (cursor != null)
             cursor.close();
       }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多