1. Win32Lib stretchBlt() Lockup

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

new topic     » topic index » view message » categorize

2. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32Lib stretchBlt() Lockup

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>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: Win32Lib stretchBlt() Lockup

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.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: Win32Lib stretchBlt() Lockup

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu