1. Igor Perisic
  2. PowerBuilder
  3. Wednesday, 23 November 2022 18:53 PM UTC

I want to produce an error in my PowerBuilder code that would create a Memory Dump File (.dmp). I tried dividing an int by 0, but I just get this error popup and no .dmp file.  In C++, diving by 0 creates a memory dump file so I am not sure why it doesn't work for PowerBuilder. Does anyone know what error I can use to generate a .dmp file?

 

My purpose for this is to analyze a simple Memory Dump file with a known error. 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 23 November 2022 19:05 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Igor;

  Please try the undocumented GPF() command.

HTH

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 6 December 2022 22:05 PM UTC
Hi Igor;

I suspect there is but noshing i've tried like this before has rendered an O/S dump.

Hopefully, some other C++ Guru's will "chime in" on this one.

Regards ... Chris
  1. Helpful 1
  1. Igor Perisic
  2. Wednesday, 7 December 2022 01:07 AM UTC
Hi Chris,

I think I exhausted all the different ways I can do that with C++. But is there a way to turn off PowerBuilders internal try...catch. I found some information that I can use "SET TRY/CATCH OFF" , to turn off the try..catch but I haven't been implement it at all. Is this something you might be familiar with?

  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 7 December 2022 18:43 PM UTC
Hi Igor;

FWIW: I have never heard of this option. :-(

There is a "IsTryCatch" setting in the PB.INI ... https://docs.appeon.com/pb2022/pbug/PBINI_settings.html

However that is for use in the DotNetObject object class.

Regards ... Chris
  1. Helpful 1
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.