Issues with (seemingly) losing a printer connection in a Powerbuilder app deployed within a Citrix environment

A client has our Powerbuilder application (built in version 10.5.2) deployed within a Citrix environment. Something is causing their users to lose the connection to the printer in a pretty random way- there isn't really any rhyme or reason to what's going on in our application, and we're not doing anything (without user input) to change the current Printer or any Printer settings. One minute it works, the next it doesn't. The only thing that causes it to start working again is to go into the Print setup dialog, choose a new printer, then do Print Setup again and change back to your old printer- then it works again. Other applications (non-Powerbuilder) running at the same time don't lose the connection- when the Powerbuilder app can't print, the others still can.

Any ideas? I haven't seen much on the web regarding inconsistent printer problems; most documented problems involve just not being able to print at all, ever. In our situation, it works great... until it doesn't.

We could write code to automatically re-establish the printer connection every time something is supposed to be printed, but we've had issues with instability surrounding those calls in the past. We're hesitant to put a ton of extra calls to printer functions for fear of causing bigger problems (application crashes) than what we're aiming to fix.
LVL 1
grossman52Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

divyeshhdoshiCommented:
Hi
 
This is the issue with only only powerbuilder or with  olther application that is deployed in CItrix env. Becoz that may be the issue with citrix also.
 
Please try to deploy other application or just word and try or analysis so u can check.
 
Thanks & Regards,
Devang Modi.
0
compoohCommented:
Is the printer being maped in as a dynamic asession printer or via the old style mapping?  I have seen an issue with powerbuilder apps in which they will not print using dynamic session printers consistently.  I would suggest mapping printers via old style.  After you change your policy, retest.  You will notice a difference in the naming convention of the mapped printer.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
basrajCommented:
1. Did you check if the server connecting powerbuilder has Citrix services running? Print spooler and Citrix Print management?
2.  Try to do a stress test on the printer drives to check if any drives causing problems and there is some compatibility issues with the application
3. You can download citrix stress tool from the citrix site and can check.
4. Any printer policy applied not to auto-create on any of one of the servers?
5. Try to create ica files for all the servers launching the power builder applicaiton. if 4 servers 4 ica files.
6. Monitor all the application using individual ica to check which server is creating problem. This way u can isolate and concentrate only on the problemmatic server.
0
grossman52Author Commented:
Thanks for the responses.  We are asking our customer to try these suggestions and will post the outcome.

thanks
0
compoohCommented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.