Providing support for all E. Crane Computing products, including POWERGEN, PBSERVICE, HARPB, VERSIONEDIT, PBLRESCUE, and PBLEXPLORER.
You are not logged in.
Pages: 1
I've used PowerGen in the past and back then I set the build machine to logon automatically and use a tray scheduler to run the build harness that ran powergen. I seem to recall trying to run the harness as a service would result in PowerGen doing an abnormal c++ program termination.
Lately I've been doing alot of C# / TFS / Team Build automation and I was asked to put together a build automation solution for a Powerbuilder 8.01 application. I've created my .GEN and .OLF files, bootstrap exported my objects and checked them into TFS Source Control.
I've put together a teambuild type that pulls the source tree down to a workspace then overrides the default AfterCompile target with an Exec task to invoke Powergen. The TeamBuild client runs using a domain account that has local admin privs on the build box. From what I can tell I have everything setup correctly except as far as working directory and arguments to specify the /I= /T= /G= only I get a pgerror.log of 116 and the following in the event viewer:
An unhandled win32 exception occurred in Pwrgn8.exe [2984]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.
Any thoughts?
BTW, I see the "start /wait" tip... it doesn't help. I kick off my build, it seems to hang, I walk over to the build box and hit OK on the debug error screen then come back and see my build finish. It thinks it's good since there was no bad exit code but when I look at the workspace I can see the pgerror.log.
Target "AfterCompile" in file "C:\TEAMBUILD\ANTHEM\Clerk\BuildType\TFSBuild.proj":
Using "Exec" task from assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Exec"
Command:
start /wait Pwrgn8.exe /I=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\clerk.gen /T=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\clerk.olf /G=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\powergen.log
Done executing task "Exec".
Done building target "AfterCompile" in project "TFSBuild.proj".
Ok, it seems that my args are wrong .... it should be /J=Project.gen List.olf
Somewhere I read /I=Project.gen /T=List.olf
Of course I finally figured this out after I wrote a custom .NET remoting harness to allow me to pass powergen off to the interactive desktop user.
Ohwell, it was fun....
Please pass on the exact command line that produced the problem. Even though the arguments were wrong, they shouldn't have produced a crash. We'll fix it, if you can let us know.
Regards,
Phil
Target "AfterCompile" in file "C:\TEAMBUILD\ANTHEM\Clerk\BuildType\TFSBuild.proj":
Using "Exec" task from assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Exec"
Command:
Pwrgn8.exe /I=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\clerk.gen /T=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\clerk.olf /G=C:\TEAMBUILD\ANTHEM\Clerk\BuildType\..\Sources\Trunk\Clerk\powergen.log
Done executing task "Exec".
Done building target "AfterCompile" in project "TFSBuild.proj".
Pages: 1