PrintOpen crashing application when used after PrintSetPrinter for networked IPP print server

This is on Windows Server 2008 using PB 12.1 Build 7298.
I'm using PrintGetPrinters to get the printer name of the networked IPP print server that is setup on the machine and it comes back as:
\\http://aps-ps-1:631\cp
I then use PrintSetPrinter with that name to change the printer, which works fine.
After calling PrintSetPrinter I call PrintOpen to open a print job, which then crashes the application with a gdi32.dll fault.
If I call PrintOpen( "testing", true ) it works fine, but PrintOpen() or PrintOpen( "testing", false ) crash the app.  This all works fine on a non networked printer on the server, which we've been using for years, but are now trying to switch to a print server.
Does anyone know why PrintOpen would be crashing when not showing the print dialog box?  Any help would be appreciated.
Thanks,
Eric Cole

Hi Chris,
Thanks for the reply.  It's not a catchable exception, already tried that.  It's one of those faults where you get the microsoft windows yourapplication.exe has stopped working popup and it puts an error in the system application events that you can view in the event viewer.  There isn't much info in the event to go off of either.
I did find another older forum post that seems to be the same issue but with PB 12.5.1 and where mine is crashing his just didn't print.  The thread is here: http://nntp-archive.sybase.com/nntp-archive/action/article/%[email protected]%3E
Since it's only an issue with PrintOpen I'm changing it to datawindow.Print instead, but I have to combine 2 datawindows in the same print job without a print dialog so I'm forced to come up with a workaround in order to accomplish that.  I'm going to hopefully create a composite datawindow with the 2 combined dws so I can get them in 1 print job.  It's just going to take longer than I thought because my datawindows have nested reports so I can't use GetChild to get a reference to them and they are being modified with .Modify.
Eric

Similar Messages

  • Issue when using HP deskjet D1660 shared by printer server

    Hi,
    I'm trying to use HP D1660 through ReadyNAS's (network storage) printer server feature.
    I connected D1660 and ReadyNAS through USB link. Using system preference-printer&fax, my mac perfectly sees exact printer name broadcasted through bonjour and I assigned snow leopard built-in driver for "HP deskjet D1600 series".
    But it turns out not to be working.
    Interesting thing is, it perfectly works when I try to print on my Windows 7 PC with exactly same configuration (readnas-d1660 shared on network)
    Am I missing something?
    I already tried every single protocols for network printers (IPP, LPD, HP jetdirect...).
    I'm stuck...
    Message was edited by: kdsoo

    I'm attaching part of error log
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Started filter /Library/Printers/hp/cups/filters/commandtohp.filter/Contents/MacOS/commandtohp (PID 3984)
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Started backend /usr/libexec/cups/backend/ipp (PID 3985)
    D [16/Jun/2010:19:09:34 +0900] [Job 40] STATE: +connecting-to-device
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Looking up "kdsoo"...
    D [16/Jun/2010:19:09:34 +0900] [Job 40] backendRunLoop(print_fd=-1, device_fd=6, snmp_fd=5, addr=0x100109418, use_bc=0, side_cb=0x1ece96834)
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Job canceled by "nate"
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Received an interrupt before any bytes were written, aborting!
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Set job-printer-state-message to "빈 프린트 파일!", current level=ERROR
    D [16/Jun/2010:19:09:34 +0900] [Job 40] Backend returned status 1 (failed)
    D [16/Jun/2010:19:09:34 +0900] [Job 40] End of messages
    D [16/Jun/2010:19:09:34 +0900] [Job 40] printer-state=3(idle)
    D [16/Jun/2010:19:09:34 +0900] [Job 40] printer-state-message="빈 프린트 파일!"
    D [16/Jun/2010:19:09:34 +0900] [Job 40] printer-state-reasons=none

  • How to restrict disk space when using time machine for client backup on server?

    We have 10 OS X SL Clients backing up on xserve SL with TM. Now 1 TB disk space is used and disk is full. The clients get the massage that the latest backup could not be finished due to target disk full. Clients run just OS X Standard Software plus Parallels with windows (max. 50 GB per client)
    Why does TM not delete oldest backups like with external USB HD?
    How can we restrict disk space on server to eg. 750 GB for total backup space for all clients?

    johndave, did anyone ever respond to your post?

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Strange LAV applications open in mass when using after effects? + other

    Hey guys, when i use after effect tones of little LAV Splitters and Decoders open;
    How do i get rid of this and what does it affect?
    OTHER: also sometimes i when i play back clips in after effect, the clips jumps 5 frames forward then 5 frames back randomly, really anoying and all compostion and clips are 29.97 fps :/ (this usally occurs after , after effects has been opened for a while and move of these LAV icons appear? coinsidence?)
    Thanks a lot for your help,
    Eggy

    - version : CS5.5 update 10.5.1.2
    - no recent updates
    - Windows 7 64bit service pack 1
    - CPU: i7-2600k, 12gb ram, Crossfired radeon HD6870, 2x 1TB internatin HDD
    - AMD CCC 13.11
    - Third party hardware: Twixtor
    - footage recorded with x264vfw - H.264 codec into .AVI file and rendered as H.264
    -N/a
    -I have been editng for around 5 hours and when i RAM preview my clips the fps jumps back and forth and very unfluid (after having told after effects that the file is 29.97fps and not 25fps) I was thinking this might occure with all the LAV things opening when using after effects..
    - yes quicktime is installed 7.6.2
    - other software running: google chrome
    -Twixtor effects installed
    - not using openGL
    -The problem only occures when i RAM preview, i tried rendering and the clips was fine, but i cant edit with constant fps jumps backwards and forwards.
    VIDEO EXAMPLE:
    in preview RAM as it goes up the stairs and around the corner it jumps a lot of frame for some reason, i also showed the orignal clip just to show that it is smooth.

  • When using Appleworks database for printing labels can I have columns of different widths?

    When using Appleworks database for printing labels can I have a column of different width?
    Case in point, the supplied avery labels in Appleworks does not have 8195. When I build one using custom design  I need a small column between column 2 and 3 to line up the info in columns 3 and 4. All the labels are 1.3/4 inch wide but I need to insert a column 1/4 wide to match up with the avery page....
    Any ideas???    
    Thanks......
    ---warren

    Well, the issue is that when you creat a custom width of 1.3/4 from the edge of the first label to the edge of label 2 all is good. The right and left margins were also set correct in AW. The Avery page, for some reason, has a small 1/4 inch column between the columns of label 2 and 3 therefore making the distance between the left edge of the label in column 2 and the right edge of the label in column 3 - a width of 2 inches and not 1.3/4.
    I guess Avery wanted the page to look even.
    I did this work around.....
    I created a custom lay out of 2 columns (not 4) with the correct width of 1.3/4 from label edge to label edge and the correct left side margin. After printing the first page I just turned the sheet 180 degress and printed the 2nd page to use all the labels on the Avery sheet. Since the upper and lower margin were the same it worked great....
    "Great minds think alike"...   thanks for your suggetion

  • Our iMac (intel, 11.2) freezes up when using Time Machine for Back Ups.  We have 16GB of RAM and the BU drive is 1 TB on firewire.

    Our iMac (intel, 11.2) freezes up when using Time Machine for Back Ups.  We have 16GB of RAM and the BU drive is 1 TB on firewire.

    See Pondini's TM FAQs for starters.

  • I need to get 2 decimal places when using a formula for a quotient and Numbers will only give me whole integers which is useless since most items will be less than 1. How can I change this?

    How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places

    the quotient function returns only whole number portion of the dividing two numbers.  If you want the actual decimal value use the divide operator.  you enter this as:
    A/B
    if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
    =A1/B1

  • Commenting a Line in ABAP Editor when using SAP GUI for java

    Hi,
    In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.

    Hello Kedar,
    please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
    Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
    Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
    Best regards
    Rolf-Martin

  • Volume control when using Apple TV for playing video

    Hi,
    I'm using a pair of active speakers with no built in volume control with my Apple TV. When using the ATV for streaming audio (for example Spotify) I can control the volume with the iOS device I'm using as the source, but not while streaming video. Why is that, and, is there anything I can do about it?
    //J

    does the sound on the pad work for face time when you are using in on the pad, with no apple tv involved?
    If so - apple tv uses a ton of resources.  Facetime uses a ton of resources.  facetime over the TV is hit or miss.
    doulble tap the home button, and see what is in the rask bar.  Close off everything else by touching and holding an icon until they jiggle, the close them by touchinmg the minus sign.

  • When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card

    When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card. I have tested with both 1.0.3 and 1.0.5 clients with RabbitMQ 3.1.5.
    I was wondering if the community was aware of this problem and if there are any workarounds? If not what is the proper channel to file a bug report. An example code snippet is below. The test fails because the TextMessageMatcher expects the destination passed in on construction (second parameter) to equal the desination on the message received (aquired from getJMSDestination).
            Mockery context = new Mockery();
            final MessageListener messageListener = context.mock(MessageListener.class);
            final Latch latch = new LatchImpl();
            final String prefix = "test" + System.currentTimeMillis();
            context.checking(new Expectations() {
                    oneOf(messageListener).onMessage(with(new TextMessageMatcher("MSG1", prefix + ".1234")));
                    will(new CustomAction("release latch") {
                        @Override
                        public Object invoke(Invocation invocation) throws Throwable {
                            latch.unlatch();
                            return null;
            final Connection connection = createConnection(null, null);
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            connection.start();
            Topic wildcardTopic = (Topic) getInitialContext().lookup(prefix + "." + "#");
            Topic destination = (Topic) getInitialContext().lookup(prefix + ".1234");
            final MessageConsumer consumer = session.createConsumer(wildcardTopic);
            consumer.setMessageListener(messageListener);
            MessageProducer producer = session.createProducer(null);
            producer.send(destination, session.createTextMessage("MSG1"));
            latch.await(5000);
            connection.close();
            Thread.sleep(5);
            context.assertIsSatisfied();

    Check where your MDB sends the [response] messages to.

  • securityagent name when using IBM TAM for SSO with Hyerion

    Hi,
    What should we declare in the css_config.xml file for the <securityagent>, when using IBM TAM for SSO with Hyperion.
    The admin guide only mentions Netegrity, but that would be the case when we use Siteminder for SSO.
    Any lights??
    Thanks,
    Sasi

    While, seems one way is to use stream to bypass login.

  • When using quick edit for compressed CSS, edge code does not jump to the particular class but displays the whole thing. This destroys the whole purpose. Does anyone know a fix or extension for that.

    When using quick edit for compressed CSS, edge code does not jump to the particular class but displays the whole thing. This destroys the whole purpose. Does anyone know a fix or extension for that.

    I suspect that beautify doesn't touch CSS that it is not aware  of (e.g. new properties/syntaxes, vendor-prefixes). See if there's a newer version available.
    Which compressed CSS are you using? Most CSS libraries come with both compressed and original stylesheets, so use the original one during development/debugging, and switch to the compressed one for deployment.
    Randy

  • Error when using SAP authentication for Designer

    my error is:
    [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(The
    secSAPR3 DLL could not be found or does not exist(hr=#0x80042a01)
    can you help me?
    regards

    hi,
    pls refer the link
    Error when using SAP authentication for Designer
    try re-installing BOE and check
    hope it helps,
    sundar

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

Maybe you are looking for

  • Installation Error: "install" can't be opened-"

    After spending 4 hours downloaded CS Design Premium 5.5. From here: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html Double click and hope to begin when I get the following error, ' "install can't be opened because it is from an unide

  • I can't edit photos in iphoto 11 9.4.1

    I just installed an update to iPhoto 11 (version 9.4.1). This required the photo library to be updated, which iPhoto did automatically. Now I can't edit any of my photos. I was able to create a duplicate of a photo, but the Edit Photo function is gra

  • R/3 we have partnerfunctions maintained manually which need flow to CRM.

    Hi Guys, We have a scenario where the R/3 partner functions have to flow to CRM. In the R/3 System we have partnerfunctions maintained manually which neednot be a business partner and this information has to flow to CRM. Ex: A customer "20000" has a

  • HT201441 Hi I need activate code for iPhone 5

    Hi I got iPhone 5 remoove old active code please help

  • Name changes on sent email

    My wife and I have a joint gmail email address, and I have designated the name in the accounts pane with both our names.  However, when I send an email, it appears in the "Sent items" with just my name.  I don't know where Mail is getting 'just my na