views:

20

answers:

0

I have a .Net 3.5 mobile project which i try to run on a casio DTX-30 machine. But when my CacheCollections function is running, the database file is corrupted. My function contains these codes:

Friend Sub CacheCollections()
    If Not cachedCollections Then
        CustomerRevenueTypeFacade.FillAllItems(CustomerRevenueTypeCollection)
        ProductBarcodeFacade.FillAllItems(ProductsList)
        CampaignCustomerFacade.FillAllItems(CampaignCustomerCollection)
        CampaignFacade.FillAllItems(CampaignCollection)
        ProductProductGroupFacade.FillAllItems(ProductProductGroupCollection)
        UnitConvertingFacade.FillAllItems(UnitConvertingCollection)
        CampaignGroupDetailFacade.FillAllItems(CampaignGroupDetailCollection)
        CampaignGroupHeaderFacade.FillAllItems(CampaignGroupHeaderCollection)
        CampaignRevenueFacade.FillAllItems(CampaignRevenueCollection)
        CampaignTobeGivenFacade.FillAllItems(CampaignTobeGivenCollection)
        DealerPriceListHeaderFacade.FillAllItems(DealerPriceListHeaderCollection, DealerPriceListMarjCollection)
        DealerPriceListHeaderFacade.FillAllItemsDetail(DealerPriceListDetailCollection)
        SharedCustomerFacade.FillAllItems(SharedCustomerCollection)
        BonusScopeFacade.FillAllItems(CustomerBonusScope)
        BonusScoreFacade.FillAllItems(CustomerBonusScore)
        ProductDeliveryFacade.FillAllItems(ProductDeliveryCollection)
        CampaignQuotaFacade.FillAllItems(CampaignQuotaCollection)
        DocumentTraceFacade.FillAllItems(DocumentTraceCollection)
        ProductGroupFacade.FillAllItems(ProductGroupCollection)
        CampaignGroupSubDetailFacade.FillAllItems(CampaignGroupSubDetailCollection)
        Common.GPSOpen()
        cachedCollections = True
    End If
End Sub

When I run this code normally, sdf is corrupted. But when I run it step by step, it's accomplished with no error.

I want to talk about a point that, this application run normally on another DTX-30 machine.

Can anyone help me about this subject?