XamlPad unable to print (CTP Feb 2006)

Hello,

When I press the Print button in XamlPad, I always get the error "Attempted to read or write protected memory. ...".

This happens on Windows XP SP2.

Is there any way to make this work in the current bits

Thank you,
Adrian




Answer this question

XamlPad unable to print (CTP Feb 2006)

  • Jorg Jooss

    Thank you Adrian for reporting this.

    Few clarifying questions:

    1) Does this happen with any XAML content your are trying to print

    Or if it only happens with a specific XAML, can you please share it.

    2) Does it happen immediately after you press the Print button in Xamlpad, or do you first see the Print Dialog appear and after you click ‘Print’ button in fails.

    3) There are known issues w/ specific printer drivers. Can you send us the printer & printer driver information that this fails with

    4) there may be some issues w/ prntvpt.dll, msxml6.dll that may have left behind from previous install. Can you please send us the version of these 2 dlls.

    Thanks.

    Jossef Goldberg


  • DMM-e

    Hi Adrian

    Unfortunately it appears that on your machine there is a leak from a previous install.

    For example file version “(vbl_wcp_um_d2.050609-2015)" should not be there.

    The recommend approach to fix that is:

    a) Remove ALL printers and printer drives.

    1) From office setup, remove the Microsoft Office Document Image Writer printer

    2) uninstall _all_ printers (by going to Printer & Faxes window, File menu / ServerProperties /Drivers)

    3) uninstall _all_ printer drivers

    b) Reboot

    1. Make sure there are no drivers left, if so repeat (a) from above

    1. Delete _both_ Unidrv.dll and UnidrvUi.dll, if any left, from both:

    · \windows\system32\spool\drivers\w32x86\3

    · \windows\system32\spool\drivers\w32x86

    2. reinstall all desired printers

    3. from office setup add back the Microsoft Office Document Image Writer printer if desired

    c) Verify that Unidrv and unidrvui.dll are not the beta versions. Version (vbl_wcp_um_d2.050609-2015) is an earlier beta/ctp and should not be used any longer.

    Please let us know.

    Jossef Goldberg


  • Pejsa Ballistics

    Hi Jossef,

    1. Unidrv.dll has file version "0.3.5209.0". In version info, it tells file version "6.0.5209.0 (vbl_wcp_um_d2.050609-2015)" and product version 6.0.5209.0.
    2. All drivers for "HP LaserJet 4250" came on CD with the printer. The PS driver works well, PCL 5e / PCL 6 drivers don't work. The driver for "HP LaserJet 5Si" which was included in Windows XP does not work.
    3. This is the list from Server Properties / Drivers tab:
      Adobe PDF (from Adobe Acrobat 7.0 Professional)
      BTA Overlay Creator (developed by us, unidrv-based, WHQL signed)
      BTA RiteDocs (as above)
      Canon GP555-605-605P PCL (download)
      Canon iR 3100C EUR UFR (download)
      HP LaserJet 4100 Series PCL (not sure about origin)
      HP LaserJet 4250 PCL 5e (came with printer)
      HP LaserJet 4250 PCL 6 (came with printer)
      HP LaserJet 4250 PS (came with printer)
      HP LaserJet 5Si (Windows XP)
      hp psc 2500 series (came with printer)
      hp psc 2500 series fax (came with printer)
      HP remote printers (not sure about origin)
      Microsoft Office Document Image Writer Driver (came with Office 2003)
    4. Yes, MDDW was installed earlier, but printer and printer driver were removed. However, some files are still present under \WINDOWS\system32\spool\drivers\w32x86\microsoftwindows_mddwmddw.
      >>>I suspect that my system still uses the unidrv files from this driver.

    Best regards,

    Adrian



  • sarmistead

    Hello Jossef,

    Thank you for picking up my post. Here are my results:

    1. It happens with any XAML content, even if it's very simple:
      <TextBlock
      FontSize="48"
      xmlns="
      http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="
      http://schemas.microsoft.com/winfx/2006/xaml">
      Print Me!
      </TextBlock>
    2. It happens immediately after pressing the Print button.
    3. On my machine, "HP LaserJet 4250 PCL 6" was set as default printer. I switched to "HP LaserJet 4250 PS", and now the print dialog is shown, and printing WORKS just fine!
      After going through a couple of printer drivers, I reckoned the problem occured only with UNIDRV-based printer drivers. Let me know if you need more specific information about my installed drivers.
    4. prntvpt.dll has version 6.0.5298.0 (VBL_wcp_avalon.060116-1804),
      msxml6.dll has version 6.00.3883.0. (Both from system32 directory).

    Best regards,
    Adrian



  • LongTom

    I just saw your earlier post, we must have crossed wires. I am glad the issue is fixed.

    Jossef


  • Andreas Kranister

    Jossef,

    Based on your feedback, I replaced files unidrv.dll, unidrvui.dll and unidrvui.res with versions that came with "normal" printer drivers.

    Now, printing works just perfectly with all printer drivers, and I can dive into WinFX / WPF / XPS / XAML etc.

    Thanks your support!

    Best regards,
    Adrian



  • reklis

    Thank you Adrian

    At least now we isolate the problem to a specific driver.

    Few more questions that should help us identify the source of the problem

    1) Can you pleas tell us the version information for unidrv (should be in \windows\system32\spool\drivers\w32x86\3\*)

    2) Where exactly did you get the driver from for the "HP LaserJet 4250 PCL 6" (Came w/ machine, HP.com, came w/ printer, etc)

    3) Which other printer drivers did you install and from where

    4) Do you have MDDW or MXDW installed on the machine

    Thanks.

    Jossef Goldberg


  • XamlPad unable to print (CTP Feb 2006)