print spool file disappears

Having problems with a specific game or application? Post your problems here!

print spool file disappears

Postby walter_j » 2011-6-13 @ 20:18

I have a dos app written in clipper 5.2 that uses a windows print spooler (pagescript for clipper 4.2) that prints to a spool file that is then captured by the windows print spool program for print to a windows printer. Everything runs great, a temp spool file is created, but within a few seconds the file disappears. I'm using dosbox .73 under ubuntu 10.04.

Why would the spool file disappear?
walter_j
Newbie
 
Posts: 4
Joined: 2011-6-13 @ 20:11

Re: print spool file disappears

Postby Jorpho » 2011-6-13 @ 20:38

Because it was programmed to, evidently. You said yourself it was a temp file; why wouldn't it disappear? The original programmer could probably tell you the details.

This isn't really a DOSBox problem unless you can say for certain that it doesn't work this way in authentic DOS.

P.S. The current version of DOSBox is 0.74.
User avatar
Jorpho
l33t
 
Posts: 4247
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: print spool file disappears

Postby walter_j » 2011-6-14 @ 02:17

In dos (win xp) it stays open until the app closes, so it's a dos box problem. I checked this!
walter_j
Newbie
 
Posts: 4
Joined: 2011-6-13 @ 20:11

Re: print spool file disappears

Postby Jorpho » 2011-6-14 @ 03:24

Whoa there. The XP command prompt is very different from DOS. The program could very well be using some clever technique to delete the file that works in DOS (and DOSBox) but doesn't work under the XP command prompt.
User avatar
Jorpho
l33t
 
Posts: 4247
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: print spool file disappears

Postby walter_j » 2011-6-14 @ 04:08

Thats the way pagescript works. It reads the temp file until the clipper app quits. The clipper app actually creates the file. Clipper is an _old_ dos compiler, and therefore it works the way it's supposed to. Only, under linux, the spool file disappears immediately after it's created. Why would dosbox do that? it makes no sense.

The app worked great for many years, until I tried to get it to work under linux/dosbox.

Are you a dosbox programmer/dev? If you are, I'd be willing to work with you to sort this out.
walter_j
Newbie
 
Posts: 4
Joined: 2011-6-13 @ 20:11

Re: print spool file disappears

Postby Jorpho » 2011-6-14 @ 04:14

walter_j wrote:Are you a dosbox programmer/dev? If you are, I'd be willing to work with you to sort this out.
No, I am not a DOSBox porgrammer/dev, because if I was, I would probably have immediately directed you to the prominent notice regarding the fact that DOSBox is not intended for non-gaming applications. I am surprised this thread hasn't been locked already, actually.

I would think that being "captured by the windows print spool program" would have much to do with the file not getting deleted. Why are you running this under Linux when you say this spooler is supposed to be for Windows? That doesn't make much sense either.

Also, as I said, DOSBox 0.74 is the most recent version. Does the problem occur under DOSBox 0.74? Let's start with that.
User avatar
Jorpho
l33t
 
Posts: 4247
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: print spool file disappears

Postby walter_j » 2011-6-14 @ 19:44

Upgraded to .74 but no change. File which should stay open until dos program quits still disapears within seconds. Any devs have an idea whats going on?
walter_j
Newbie
 
Posts: 4
Joined: 2011-6-13 @ 20:11

Re: print spool file disappears

Postby wd » 2011-6-14 @ 20:35

Since this is about "should interact with windows spooler" i seriously doubt it works under real dos.
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23


Return to DOSBox Games/Apps

Who is online

Users browsing this forum: No registered users and 3 guests