Página 1 de 1

problem with Printer:Setup()

Publicado: Mié Jul 05, 2006 6:27 pm
por Ingo Junge-Herrmann
Ignacio, Jose,
when using a Canon Printer PIXMA IP 4000 and calling Printer:Setup()the debug
windows shows an error message. To localize it I inserted a logdebug() before
and after the line with the Printer:Setup() call.
the code:
LogDebug("line before Printer:Setup()")
lOk:=Printer:Setup()
LogDebug("line after Printer:Setup()")
the error message in the debugger window:
#1: line before Printer:Setup()
#2: HEAP[mwinse.exe]:
#3: Heap block at 0022D648 modified at 0022D72C past requested size of dc
#4: HEAP[mwinse.exe]:
#5: Invalid Address specified to RtlFreeHeap( 00150000, 0022D650 )
#6: line after Printer:Setup()
This error only occurs when the Canon Printer is the default printer
Any idea to work around?
Thanks in advance
Ingo

problem with Printer:Setup()

Publicado: Mié Jul 05, 2006 6:48 pm
por jfgimenez
Ingo,
> when using a Canon Printer PIXMA IP 4000 and calling Printer:Setup()the
> debug
> windows shows an error message. To localize it I inserted a logdebug()
> before
> and after the line with the Printer:Setup() call.
>
> the code:
> LogDebug("line before Printer:Setup()")
> lOk:=Printer:Setup()
> LogDebug("line after Printer:Setup()")
>
> the error message in the debugger window:
> #1: line before Printer:Setup()
> #2: HEAP[mwinse.exe]:
> #3: Heap block at 0022D648 modified at 0022D72C past requested size of dc
>
> #4: HEAP[mwinse.exe]:
> #5: Invalid Address specified to RtlFreeHeap( 00150000, 0022D650 )
> #6: line after Printer:Setup()
>
> This error only occurs when the Canon Printer is the default printer
>
> Any idea to work around?
Just ignore it ;-)
Those messages are generated directly by the printer driver, via the API
function OutputDebugString(). Xailer's IDE catch them because it becomes a
debugger when executing the program, and all messages generated in the same
process (including DLL and drivers) are catched by it.
However, those messages are shown only when the prorgram is executed from
the IDE. If you run the program alone (like in production environment) you
won't see any message.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

problem with Printer:Setup()

Publicado: Mié Jul 05, 2006 6:48 pm
por jfgimenez
Ingo,
> when using a Canon Printer PIXMA IP 4000 and calling Printer:Setup()the
> debug
> windows shows an error message. To localize it I inserted a logdebug()
> before
> and after the line with the Printer:Setup() call.
>
> the code:
> LogDebug("line before Printer:Setup()")
> lOk:=Printer:Setup()
> LogDebug("line after Printer:Setup()")
>
> the error message in the debugger window:
> #1: line before Printer:Setup()
> #2: HEAP[mwinse.exe]:
> #3: Heap block at 0022D648 modified at 0022D72C past requested size of dc
>
> #4: HEAP[mwinse.exe]:
> #5: Invalid Address specified to RtlFreeHeap( 00150000, 0022D650 )
> #6: line after Printer:Setup()
>
> This error only occurs when the Canon Printer is the default printer
>
> Any idea to work around?
Just ignore it ;-)
Those messages are generated directly by the printer driver, via the API
function OutputDebugString(). Xailer's IDE catch them because it becomes a
debugger when executing the program, and all messages generated in the same
process (including DLL and drivers) are catched by it.
However, those messages are shown only when the prorgram is executed from
the IDE. If you run the program alone (like in production environment) you
won't see any message.
--
Regards,
Jose F. Gimenez
http://www.xailer.com