VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Application hangs

The place where ProMatrix posts coding tips and fixes. Read only.

VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Application hangs

Postby JessicaLawson » Sun Jun 13, 2010 3:23 pm

Applies to: VPM Enterprise 7.0a, VPM Professional 7.0a, VPM Standard 7.0a

Symptoms: When an error occurs and the OK button is clicked on the error
dialog, the application hangs. The same problem also occurs if you add code
to a form that attempts to exit the application.

Resolution: To fix this problem, make the following modification to the
ReleaseApplicationForms method of the VPMApp class in the VPMApp class
library. This modification will only fix the problem in your applications,
not within VPM itself. Therefore, until the next release of VPM, we suggest
that you turn off the error handling in VPM (not your applications). Then,
when an error occurs while you are in VPM the VFP error dialog will be
displayed instead of the VPM error dialog, and the code that causes the
application to hang will be bypassed. You can turn off error handling in VPM
through the PM-Admin->ProMatrix Security->Admin Tools menu option.

Change the following line in the ReleaseApplicationForms method:

sllCheckForFormsToClose = .T.

To:

IF TYPE('_SCREEN.Forms[slnFor].Name') = 'C'
LOOP
ELSE
sllCheckForFormsToClose = .T.
ENDIF
JessicaLawson
 
Posts: 79
Joined: Sun Jun 13, 2010 1:23 pm

Re: VPME 7.0a, VPMP 7.0a, VPMS 7.0a FIX: Application hangs

Postby JessicaLawson » Sun Jun 13, 2010 3:23 pm

In the ReleaseApplicationForms method there are two occurrences of the line:

sllCheckForFormsToClose = .T.

The fix should be applied to the second occurrence, which is within a FOR...ENDFOR loop.
JessicaLawson
 
Posts: 79
Joined: Sun Jun 13, 2010 1:23 pm


Return to ProMatrix Library

Who is online

Users browsing this forum: No registered users and 2 guests

cron