1. Praveen Govindasamy Raju
  2. PowerBuilder
  3. Monday, 13 January 2020 07:12 AM UTC

We have developed the application using power builder r2 build 1756 . The application is used for bulk insert/update of summary records ( more than 1 lakh) into tables . The application successfully inserts some 18000 records and then it closes/crashes abruptly.

Please find the Event viewer error of the application crash.

 

Faulting application name: PB170.EXE, version: 17.0.0.1756, time stamp: 0x5a5f6daf
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2be1e
Exception code: 0xc0000005
Fault offset: 0x00002930
Faulting process id: 0x4e4c
Faulting application start time: 0x01d5c9d7bf7a97a6
Faulting application path: C:\Program Files (x86)\Appeon\PowerBuilder 17.0\PB170.EXE
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR100.dll
Report Id: 3bb7f4e5-c760-4e9c-b0d2-df716b685a15
Faulting package full name:
Faulting package-relative application ID:

 

 

Praveen Govindasamy Raju Accepted Answer Pending Moderation
  1. Tuesday, 14 January 2020 07:55 AM UTC
  2. PowerBuilder
  3. # 1

Hi Chris,

Thanks for the response

we have built the 64 bit version and checked . The application exe is failed to launch with below error.

Error calling external object in below sample code

 

ole_vbscript = CREATE OLEObject
ole_vbscript.ConnectToNewObject("MSScriptControl.ScriptControl")
ole_vbscript.Language = "vbscript"

 

Please suggest

 

 

 

 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 14 January 2020 17:06 PM UTC
Hi Praveen;

Yes, this Microsoft OLE control is 32 bit and MS does not supply a 64 bit version. :-(

Try this control though for 64 bit apps ...

FYI: https://tablacus.github.io/scriptcontrol_en.html

Regards ... Chris





  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 January 2020 17:40 PM UTC
  2. PowerBuilder
  3. # 2

Hi Praveen;

   It might be a memory space issue ... have you tried compiling & running your PB App as a 64bit application EXE?

Regards ... Chris

Comment
There are no comments made yet.
Praveen Govindasamy Raju Accepted Answer Pending Moderation
  1. Monday, 13 January 2020 11:02 AM UTC
  2. PowerBuilder
  3. # 3

Hi Michael - Thanks for the quick response

We are not importing the data from import file.

The code gathers data from different tables and after formatting the data, it will frame into a summary text and inserts into a table. the datatype of the column is "text"(sybase database) where the data inserts.

From your points I suspect either "memory leak" or "arithmetic overflow" or "external code" causing the problem.

Please suggest!! Thanks in advance!!

 

 

 

 

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Monday, 13 January 2020 10:10 AM UTC
  2. PowerBuilder
  3. # 4

Exception 0x00000005 in MSVCR100.dll is pretty much "something went haywire" without much detail. So you need to do some additional investigation to find the actual cause.

Questions I would ask myself if I had similar issue:

  • Do we have test file that reproduces the crash consistently?
  • Exactly where in the import file does app crash?
    • Same imported text line every time?
    • Does data in text line or lines close by look different?
  • Is a memory leak causing the crash?
  • Is external code (DB driver, external function calls, OLE integration, etc.) causing this problem?
  • Is arithmetic overflow causing the crash? EX:
    int intCount =  32767;   long longCount =  32767
        intCount ++;              longCount ++
    //  intCount = -32768;   //   longCount = +32768

You will need to investigate your code deeper to find the cause of this crash. 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.