cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

12.6 MessageBox

Former Member
0 Likes
435

I'm working on some apps recently upgraded from PB 5 to PB 12.6 and use a recent copy of PFC.

The main app uses the RUN() function to execute several windowless PB apps. If the windowless apps try to use MessageBox, the message never appears. At first I thought it was nulls in the string being displayed but even hard coded messages don't appear.

Does anyone have any experience like this and know what can be done?

Thanks!

View Entire Topic
Former Member
0 Likes

Hi Roland;

  FWIW: Just a guess - maybe now you might need to use a Run & Wait approach vs PB's old Run ( ) method for the MB's to appear.

Q1: Are you running from the IDE or an EXE?

Q2: Are you running in ADMIN mode?

Q3: What O/S version are you using?

Q4: How recent is the PFC layer (was it the PB 12.6 version) - http://pfc.codeplex.com/SourceControl/latest?

Regards ... Chris

Former Member
0 Likes

Q1 - Exe

Q2 - No

Q3 - Windows Server 2003

Q4 - I believe it is the 11.5 version

Former Member
0 Likes

Q2) Try ADMIN Mode

Q3: Try running the EXE in "backward compatibility mode" on W2003

Good luck!

Former Member
0 Likes

The user has admin permissions.Not sure what compatibility mode would change, the calling program is able to display messagebox. The only difference I can tell is that one doesn't display a window.

Former Member
0 Likes

Roland,

From what I understand, messagebox does not work on Windows Server OSes. I have had a similar experience using VBScript - msgbox. You should consider alternates like using a log file or creating an application eventlog entry.

Correction...

From what I understand, messagebox does not work on Windows Server OSes when called from a non visual process. I have had a similar experience using VBScript - msgbox. You should consider alternates like using a log file or creating an application eventlog entry.

Hope that helps.

Former Member
0 Likes

Thank you. Good to hear it isn't a PowerBuilder bug.