1. Win32Lib stretchBlt() Lockup
- Posted by Andy Drummond <andy at kestrelt?le.?om> Oct 03, 2007
- 643 views
- Last edited Oct 04, 2007
I use a program to print an order form with a bmp of my signature. I use stretchBlt() to the printer from a bmp read in, and it works fine. Except when the printer is Adobe Acrobat Professional when it locks up stone dead. I have to power off the PC to "recover". Mouse stops, no keys work, it looks like it is in a tight tight loop with no interrupts. Does anyone - Derek, CChris any other pundit - have any idea what I can do about this apart from not have my signature on order forms I print to PDF?? Andy
2. Re: Win32Lib stretchBlt() Lockup
- Posted by Bernie Ryan <xotron at ?luefrog?com> Oct 03, 2007
- 616 views
- Last edited Oct 04, 2007
Andy Drummond wrote: > > I use a program to print an order form with a bmp of my signature. > I use stretchBlt() to the printer from a bmp read in, and it works fine. > Except when the printer is Adobe Acrobat Professional when it locks up > stone dead. I have to power off the PC to "recover". Mouse stops, no keys > work, > it looks like it is in a tight tight loop with no interrupts. > > Does anyone - Derek, CChris any other pundit - have any idea what I can do > about > this apart from not have my signature on order forms I print to PDF?? > Andy: Is Adobe Acrobat Professional the name of a printer ? What is the model number of your printer ? Your post is confusing. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
3. Re: Win32Lib stretchBlt() Lockup
- Posted by Matt Lewis <matthewwalkerlewis at gm?il.c?m> Oct 04, 2007
- 628 views
Andy Drummond wrote: > > I use a program to print an order form with a bmp of my signature. > I use stretchBlt() to the printer from a bmp read in, and it works fine. > Except when the printer is Adobe Acrobat Professional when it locks up > stone dead. I have to power off the PC to "recover". Mouse stops, no keys > work, > it looks like it is in a tight tight loop with no interrupts. > > Does anyone - Derek, CChris any other pundit - have any idea what I can do > about > this apart from not have my signature on order forms I print to PDF?? You could try: http://sourceforge.net/projects/pdfcreator/ It's what I use whenever I want to create a PDF. Matt
4. Re: Win32Lib stretchBlt() Lockup
- Posted by Andy Drummond <andy at ke?trelte?e.com> Oct 04, 2007
- 609 views
Bernie Ryan wrote: > > Andy Drummond wrote: > > > > I use a program to print an order form with a bmp of my signature. > > I use stretchBlt() to the printer from a bmp read in, and it works fine. > > Except when the printer is Adobe Acrobat Professional when it locks up > > stone dead. I have to power off the PC to "recover". Mouse stops, no keys > > work, > > it looks like it is in a tight tight loop with no interrupts. > > > > Does anyone - Derek, CChris any other pundit - have any idea what I can do > > about > > this apart from not have my signature on order forms I print to PDF?? > > > > Andy: > > Is Adobe Acrobat Professional the name of a printer ? > > What is the model number of your printer ? > > Your post is confusing. > > > Bernie > Sorry Bernie. Adobe Acrobat Professional is the program which creates PDF files which you read with Adobe Reader. It runs as a program but it also looks like a printer to Windows so you print to it as if you were printing to a real bit of hardware. I see Matt suggests a different PDF creator and I shall look at that - thanks Matt - but I really hoped to avoid having two PDF creation systems having forked out the loot for Acrobat Professional 8 which does all the clever things. So if there is an answer to my original query that would be best but if not - well, I'll certainly try Matts suggestion ··· Andy > My files in archive: > WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API > > Can be downloaded here: > <a > href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>
5. Re: Win32Lib stretchBlt() Lockup
- Posted by Bernie Ryan <xotron at blue?rog.c?m> Oct 04, 2007
- 631 views
Andy Drummond wrote: > > Sorry Bernie. Adobe Acrobat Professional is the program which creates > PDF files which you read with Adobe Reader. It runs as a program but it > also looks like a printer to Windows so you print to it as if you were > printing to a real bit of hardware. > > I see Matt suggests a different PDF creator and I shall look at that - > thanks Matt - but I really hoped to avoid having two PDF creation systems > having forked out the loot for Acrobat Professional 8 which does all the > clever things. So if there is an answer to my original query that would be > best but if not - well, I'll certainly try Matts suggestion ··· > Andy: Here are somethings to try: Did you try a different PDF doc. maybe PDF is corrupted. You could be running out of memory. The free openoffice program exports PDF docs so you could create a page with open office with your signiture on it or use an older version of Adobe and then simply insert that PDF page in the newer version when you want to sign it. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
6. Re: Win32Lib stretchBlt() Lockup
- Posted by Matt Lewis <matthewwalkerlewis at gm?il.co?> Oct 04, 2007
- 619 views
Bernie Ryan wrote: > > Here are somethings to try: > > Did you try a different PDF doc. maybe PDF is corrupted. > > You could be running out of memory. > > The free openoffice program exports PDF docs so you could create a page > with open office with your signiture on it or use an older version of > Adobe and then simply insert that PDF page in the newer version when > you want to sign it. Or perhaps do some sort of double buffering before writing to the print DC. stretchBlt() to a 'staging' DC, and them do a normal blit to the print DC. Matt
7. Re: Win32Lib stretchBlt() Lockup
- Posted by Andy Drummond <andy at kestre?tele.c?m> Oct 04, 2007
- 596 views
Matt Lewis wrote: > > Bernie Ryan wrote: > > > > Here are somethings to try: > > > > Did you try a different PDF doc. maybe PDF is corrupted. I can write anything, no bothers. And I can write my signature to ordinary printers. When my program locked, I went through and knocked out different bits till I found that it entered stretchBlt and never came back. So lots of trials, lots of other use - I use Adobe 8 for all sorts of things. > > > > You could be running out of memory. > > Hope not. Euphoria uses virtual memory as required, and I have a gig anyway. > > The free openoffice program exports PDF docs so you could create a page > > with open office with your signiture on it or use an older version of > > Adobe and then simply insert that PDF page in the newer version when > > you want to sign it. > I don't think that is a viable route, to be honest. > Or perhaps do some sort of double buffering before writing to the print > DC. stretchBlt() to a 'staging' DC, and them do a normal blit to the > print DC. > > Matt That is a good idea. I can stretchBlt to a pixmap and then blit it... yeah, I will give it a go. thanks, gents.
8. Re: Win32Lib stretchBlt() Lockup
- Posted by Andy Drummond <andy at kest?e?tele.com> Oct 04, 2007
- 597 views
Matt Lewis wrote: > > Bernie Ryan wrote: > > > > Here are somethings to try: > > > > Did you try a different PDF doc. maybe PDF is corrupted. > > > > You could be running out of memory. > > > > The free openoffice program exports PDF docs so you could create a page > > with open office with your signiture on it or use an older version of > > Adobe and then simply insert that PDF page in the newer version when > > you want to sign it. > > Or perhaps do some sort of double buffering before writing to the print > DC. stretchBlt() to a 'staging' DC, and them do a normal blit to the > print DC. > > Matt Matt, thanks, that fixed it fine. Andy
9. Re: Win32Lib stretchBlt() Lockup
- Posted by Pete Lomax <petelomax at blueyon?er?co.uk> Oct 06, 2007
- 606 views
Andy Drummond wrote: > having forked out the loot for Acrobat Professional 8 which does all the > clever things. <snip> > When my program locked, I went through and knocked out different > bits till I found that it entered stretchBlt and never came back. <snip> > It works now, thanks Matt While I care not for the future of Adobe, I trust you have or will package up your findings and submit said to them for further analysis. Just as a matter of basic courtesy. Otherwise you'll only have yourself to blame if this comes back to haunt you in 18 months time. Be honest and let them know you've found the work-round, submit your cut-down sources (one that works and one that does not) and a copy of exw.exe with the rapideuphoria.com url should they mistrust the exe, and state that if they don't want to run either, they should find it trivial to translate the source to C or whatever. Your call to ship your sig.bmp or craft an equivalent, obvs. Regards, Pete
10. Re: Win32Lib stretchBlt() Lockup
- Posted by Andy Drummond <andy at ke?treltele.com> Oct 06, 2007
- 631 views
Pete Lomax wrote: > > Andy Drummond wrote: > > having forked out the loot for Acrobat Professional 8 which does all the > > clever things. > <snip> > > When my program locked, I went through and knocked out different > > bits till I found that it entered stretchBlt and never came back. > <snip> > > It works now, thanks Matt > While I care not for the future of Adobe, I trust you have or will package up > your findings and submit said to them for further analysis. Just as a matter > of basic courtesy. Otherwise you'll only have yourself to blame if this comes > back to haunt you in 18 months time. Be honest and let them know you've found > the work-round, submit your cut-down sources (one that works and one that does > not) and a copy of exw.exe with the rapideuphoria.com url should they mistrust > the exe, and state that if they don't want to run either, they should find it > trivial to translate the source to C or whatever. Your call to ship your > sig.bmp > or craft an equivalent, obvs. > > Regards, > Pete Now that is something I'd not thought of. I don't care too much for Adobe, but while PDF files are invariably too big (IMHO) they are at least a standard across the board. I'll put together a package which they can ignore at their peril (and, again, IMHO) they will do. They'll just blame it on the Euphoria language and the implementation of stretchBlt(). I think I would in their shoes. Especially since it was OK with Blitting. Andy