printer driver crashes Acrobat Reader 7.0



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
.