Windows Vista Add Network Printer -> Crash

Discussion in 'Programming and Scripting' started by naikr, Jun 24, 2008.

  1. naikr

    naikr New Member

    Joined:
    Jun 24, 2008
    Messages:
    4
    Likes Received:
    0
    Hi,
    I have an application that is supposed to have printing functionality.
    Application is developed in VC++ 6.0 w/ SP6 and Vista Ultimate OS.

    The problem:
    There are no printers configured/added in the machine yet.
    When I click print button, Add Printers dialog from Vista popsup. It gives me an option to choose local printer or a network printer.
    When I click Network Printer, my application crashes !!!

    I use DoPreparePrinting method.

    Please let me know the cause.
     
  2. Celestra

    Celestra Former Moderator

    Joined:
    Jan 15, 2008
    Messages:
    2,468
    Likes Received:
    14
    Hi!! I have an educated guess, a couple of thoughts really. Is everything squared away with the Universal Naming Convention (UNC) ? KB941542 Could there be anything wrong with say an outpost firewall ? Similar to this man: Tutorials-Win.com >> Vista >> BSOD from Outpost Firewall or Brother network printer? - Microsoft Windows Forum This VC++6.0/SP6- a private program? I've heard they cause problems now and then. Have you run a compatibility test ? (Printer and Computer) What are the error codes? Anything that flags----
     
  3. naikr

    naikr New Member

    Joined:
    Jun 24, 2008
    Messages:
    4
    Likes Received:
    0
    Hi,
    There is no error code as such.The application was developed on win2k and was needed to make it compatible with Vista.So during testing we found that the add printer options dialog Network printer crashes. When we see the call stack the crash is in Ole32.dll.So there is no trace from our module.Once DopreparePrinting is called the systems print dialog pops up and then by selecting network printer it crashes.I tried with the updates mentioned by u .But its not working.Any guess how to resolve this.
     

Share This Page

Loading...