printer driver crashes Acrobat Reader 7.0

Discussion in 'Windows Vista Drivers' started by AF, May 24, 2005.

  1. AF

    AF Guest

    Hello,

    my printerdriver is written from scratch, but I have looked a lot at the
    plotter driver from the DDK samples.

    My Driver initializes the structures GDIINFO, DEVINFO, DEVMODE and so
    on. The surface is created in "DrvEnableSurface" using functions
    "EngCreateDeviceBitmap((DHSURF)pPDev, SurfSize, BMF_24BPP)" and
    EngAssociateSurface(pPDev->hsurf, (HDEV)pPDev->hpdev, HOOK_COPYBITS |
    HOOK_STROKEPATH | HOOK_TEXTOUT).

    The driver compiles very fine and applictaions like OpenOffice,
    MS-Paint, WordPad and Webbrowsers assess my functions like DrvTextOut.

    Only "AcrobatReader 7.0" crashes if I want to print a document. The
    crash occures, if a accept print dialog with ok.


    Thx for help and please ask each question you have.

    Best regards

    AF
     
    AF, May 24, 2005
    #1
    1. Advertisements

  2. AF

    Vipin Guest

    Vipin, May 24, 2005
    #2
    1. Advertisements

  3. AF

    Ken Guest

    Assumptions regarding the order of receving startdoc/startpage -- program
    defensively in each handerl -- assume nothing. Debug output all
    startdoc/etc. and compare the various programs -- there will be a difference
    from the one that crashes that none of the others has/does.
     
    Ken, May 24, 2005
    #3
  4. AF

    AF Guest

    Hello,

    I have made outputs, but the fuctions startdoc/startpage are not called
    before the crash. Only functions like DrvEnableDriver, DrvEnablePDEV,
    DrvCompletePDEV and DrvDisablePDEV are called.

    Do you have any ideas I can go on checking?
     
    AF, May 25, 2005
    #4
  5. Have you tried attaching a debugger and looking at the callstack to see
    where the crash is happening?

    Thank you,
    Bobby Mattappally
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    Date: Wed, 25 May 2005 11:01:11 +0200
    From: AF <>
    User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
    X-Accept-Language: de-DE, de, en-us, en
    MIME-Version: 1.0
    Subject: Re: printer driver crashes Acrobat Reader 7.0

    Hello,

    I have made outputs, but the fuctions startdoc/startpage are not called
    before the crash. Only functions like DrvEnableDriver, DrvEnablePDEV,
    DrvCompletePDEV and DrvDisablePDEV are called.

    Do you have any ideas I can go on checking?
     
    Bobby Mattappally [MS], May 25, 2005
    #5
  6. AF

    AF Guest

    Hello,

    in my opinion the crash happens in Accrobat Reader, because my driver
    has not so much logic at this time. This means, I have implemented the
    needed function, for instance DrvTextOut withresult TRUE and a
    MessageBox before the result. So I can see which functions called at
    which time. After pushing "Ok" directly follows the crash and not a
    popup of a function I have implemented. So I assume an error in my
    parameters I set in DrvEnablePDEV.
     
    AF, May 26, 2005
    #6
  7. AF

    Vipin Guest

    Crash will never happen in acrobat code. Acrobat is widely used software
    and that too reader.
    I myself have done quite some development with acrobat.
    This is some goof up in the custom driver. Only way is attach the debugger
    and debug the custom driver.

    Thanks
    Vipin
     
    Vipin, May 26, 2005
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.