mO SharemO Share

POS Application gets closed automatically while save bill /after SMS Send job/while adding a new customer during billing

SYMPTOMS


POS application abruptly gets closed during an open POS session and user is trying save a bill or a SMS has just been sent from POS application or some times while user is adding a new POS customer to its database. The issue occurs in POS Terminal systems.

Important Note: No error message appears during the abnormal phenomenon nor found in POS application log file.

CAUSE


While POS bill takes a long time for printing, at that time PDF file generation holds its process. In the meantime, POS Application tries to send SMS Notification ( This function is invoked -SendNotificationSMS()) and it checks the PDF and creates.

Due to the Async and Await threading the printing process is trying to print the POS bill and loading the RPT file in the Report Document object but the Report Document is already disposed and closed in another thread. As we know there is a memory leakage issue in the crystal report v13 and v12, as a result the POS is getting crash during the POS bill.

RESOLUTION


A XML tag needs to be add in the following file as a work around basis.

  • Go to Path : \GSL\GINESYS12\Shared\Ginapps.Config

  • Added the following key in the GinApps.Config file under the tag <appsettings></appsettings>.

  • <add key="WithoutAsyncAndAwaitPrint" value="true" />

<appSettings file=""> <add key="WithoutAsyncAndAwaitPrint" value="true" /> </appSettings>

Note : This will route the printing process without Async and Await and maintain a single thread for the POS billing.