Skip to main content

[archive] Win$printer Error When No Printers Available

  • February 5, 2008
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 01 February 2008]

Hello,

I'm getting a memory access violation error when trying to get the number of printers installed in my system.

call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.

The fact is no printers are installed but i think i must get a zero in printer count instead of an error.

Any ideas?

Thanks afterwards

4 replies

[Migrated content. Thread originally posted on 01 February 2008]

Hello,

I'm getting a memory access violation error when trying to get the number of printers installed in my system.

call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.

The fact is no printers are installed but i think i must get a zero in printer count instead of an error.

Any ideas?

Thanks afterwards
This is a known bug, corrected in 8.0.0.
Install a dummy printer (Generic printer to a file) to circumvent the problem.

[Migrated content. Thread originally posted on 01 February 2008]

Hello,

I'm getting a memory access violation error when trying to get the number of printers installed in my system.

call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.

The fact is no printers are installed but i think i must get a zero in printer count instead of an error.

Any ideas?

Thanks afterwards
This is a known bug, corrected in 8.0.0.
Install a dummy printer (Generic printer to a file) to circumvent the problem.

[Migrated content. Thread originally posted on 01 February 2008]

Hello,

I'm getting a memory access violation error when trying to get the number of printers installed in my system.

call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.

The fact is no printers are installed but i think i must get a zero in printer count instead of an error.

Any ideas?

Thanks afterwards
Ok, thanks Gforseth for the information, we must get the new version then.

[Migrated content. Thread originally posted on 01 February 2008]

Hello,

I'm getting a memory access violation error when trying to get the number of printers installed in my system.

call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.

The fact is no printers are installed but i think i must get a zero in printer count instead of an error.

Any ideas?

Thanks afterwards
Ok, thanks Gforseth for the information, we must get the new version then.