Operating System - HP-UX
1847384 Members
3191 Online
110264 Solutions
New Discussion

dtpad problems with HP-UX 11i

 
SOLVED
Go to solution
Kevin M. Davisson
Occasional Advisor

dtpad problems with HP-UX 11i

clean install 11i latest CDE patches.

after opening multiple documents with dtpad, then closing the initial dtpad window, all other dtpad's terminate with the error:

TT_ERR_PROCID The process ID passed is not valid.

This is driving me nuts! My users will hang me by the cajones if I try and push out 11i with this "feature". Any suggestions?
11 REPLIES 11
harry d brown jr
Honored Contributor

Re: dtpad problems with HP-UX 11i

Do you only get this error when you run it as root? Have you tried another user name?
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: dtpad problems with HP-UX 11i

Hi Kevin:

This thread looks just like you.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x5d547e990647d4118fee0090279cd0f9,00.html

Clay
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: dtpad problems with HP-UX 11i

Try running "dtpad -standAlone " to turn off this "feature".

http://aa11.cjb.net/sun_managers/2000/11/msg00690.html
Live Free or Die
Kevin M. Davisson
Occasional Advisor

Re: dtpad problems with HP-UX 11i

Didn't try as root, just as a normal user

I messed with the -standAlone option which seems to work as advertized. But the problem I'm trying to avoid is having users open multiple dtpad's from the file browser (using file OPEN or double click) and having the whole pile of windows crash in a heap if they accidently close the first window...
harry d brown jr
Honored Contributor

Re: dtpad problems with HP-UX 11i

It's a bug in tooltalk. Maybe they have a fix for it?
Live Free or Die
Kevin M. Davisson
Occasional Advisor

Re: dtpad problems with HP-UX 11i

been digging all day - patch searches are turning up NIL... I agree it seems to be a ToolTalk issue; certainly not the same behavior as in 10.20.
Alex Glennie
Honored Contributor

Re: dtpad problems with HP-UX 11i

why not cp /usr/dt/app-defaults/C/Dtpad -> /etc/dt/app-defaults/C/Dtpad and add the resource Dtpad*standAlone: True, that way all dtpads for all users regardless of how they are started should run in standalone mode ?

I'm suspicious that this is a bug ....where are the CDE session(s) running ? if its remote on a PC I suspect there's a problem with hostname resolution somewhere !

Kevin M. Davisson
Occasional Advisor

Re: dtpad problems with HP-UX 11i

Setting the resource Dtpad*standAlone: True in the Dtpad config file makes it so that the filebrowser>Open functionality is broken. Not only that, only one dtpad will open at a time...
This acts like a bug - I'm running CDE local on the C3000 sitting right here on my desk.
Alex Glennie
Honored Contributor

Re: dtpad problems with HP-UX 11i

the jury is still out so we're call it a "feature" for now as I can reproduce it locally on a J5600 in the UKRC .... I'm investigating ......
Alex Glennie
Honored Contributor
Solution

Re: dtpad problems with HP-UX 11i

It's a bug : Identifier JAGad78683

The labs I beleive are working on a fix which may make it into the next 11.i CDE patch ....maybe later this month !

If you don't want to wait or in case is doesn't make it .... you could try the following work-around ?

cd /usr/dt/bin
mkdir orig
cp dtpad orig
cc dtpad.c -o dtpad

cp /usr/dt/appconfig/types/C/dtpad.dt /etc/dt/appconfig/types/C
Then edit /etc/dt/appconfig/types/C/dtpad.dt:## #####################
#ACTION Dtpad#{# LABEL Text Editor
# ICON Dtpenpd# TYPE MAP
# MAP_ACTION DtTTMediaOpen
# DESCRIPTION The Text Editor (Dtpad) action opens the specified # file in a desktop text editor window.#}ACTION Dtpad{
LABEL Text Editor ICON Dtpenpd
TYPE COMMAND WINDOW_TYPE NO_STDIO
EXEC_STRING /usr/dt/bin/dtpad -standAlone
DESCRIPTION The Text Editor (Dtpad) action opens the specified file in a desktop text editor window.}dtpad.c
=============================================================================
#include main(argc, argv, envp)int argc;char **argv;char **envp;{
char *new_argv[4096]; int i; int new; for (i=0; i<4096; i++) {
new_argv[i] = NULL; } for (i=0, new=0; i if (!strcmp(argv[i], "-server") || !strcmp(argv[i], "-standAlone")) {
continue; } else {
new_argv[new] = malloc(strlen(argv[i]+1));
strcpy(new_argv[new], argv[i]);
/*printf("%s\n", new_argv[new]);*/ new++; } }
for (i=0; i<4096; i++) {
if (new_argv[i] == (char *)NULL || strlen(new_argv[i]) == 0) {
new_argv[i] = malloc(strlen("-standAlone"+1));
strcpy(new_argv[i], "-standAlone");
/*printf("Adding new_argv[%d] = %s\n", i, new_argv[i]);*/ break;
} }/**********************************************************
for (i=0; i<4096; i++) { if (new_argv[i] == (char *)NULL) { break;
} else {
printf("%d new_argv[%d] = %s\n", strlen(new_argv[i]), i, new_argv[i]);
} }***********************************************************/
execve("/usr/dt/bin/dtpad.orig", new_argv, envp);}

If the syntax in this post is screwed post your email and I'll send details that way.

Kevin M. Davisson
Occasional Advisor

Re: dtpad problems with HP-UX 11i

Kind of hard to read - I'd appreciate it if you would send details to kdavis@woodward.com

FYI-I found another work around (sort of).

after logging in , open a term window and type:
nohup dtpad &

it appears that even after closing the resulting dtpad, the server will stay running for the session, and subsequent dtpad's can communicate with the server properly...