1. getPageSetup() crashes

When I call getPageSetup() and click the 'OK' button, I get this error:

subscript value 2 is out of bounds, reading from a sequence of length 0 

Am I doing anything wrong? Or is this a Win32Lib bug?

Here is a snippit from ex.err:

C:\EUPHORIA\include\tk_mem.e:906 in function fetch() 
subscript value 2 is out of bounds, reading from a sequence of length 0 
 struct = 7151752
 s = {}
 size = <no value>
 char = <no value>
 cnt = <no value>
 at = <no value>

... called from C:\EUPHORIA\include\Win32Lib.ew:8940 in function getPageSetup()
 psd = 7151752
 ok = 1
 flags = 4
 paperSize = 7151772
 margins = 7151796
 devname = <no value>
 result = {
      {8500,11000},
      {1000,1000,1000,1000}
    }


~Greg

new topic     » topic index » view message » categorize

2. Re: getPageSetup() crashes

----- Original Message -----
From: "Greg Haberek" <g.haberek at comcast.net>
To: "EUforum" <EUforum at topica.com>
Subject: getPageSetup() crashes


>
> When I call getPageSetup() and click the 'OK' button, I get this error:
>
> subscript value 2 is out of bounds, reading from a sequence of length 0
>
> Am I doing anything wrong? Or is this a Win32Lib bug?
>
> Here is a snippit from ex.err:
>
> C:\EUPHORIA\include\tk_mem.e:906 in function fetch()
> subscript value 2 is out of bounds, reading from a sequence of length 0
>  struct = 7151752
>  s = {}
>  size = <no value>
>  char = <no value>
>  cnt = <no value>
>  at = <no value>
>
> ... called from C:\EUPHORIA\include\Win32Lib.ew:8940 in function
getPageSetup()
>  psd = 7151752
>  ok = 1
>  flags = 4
>  paperSize = 7151772
>  margins = 7151796
>  devname = <no value>
>  result = {
>       {8500,11000},
>       {1000,1000,1000,1000}
>     }
>
>
> ~Greg
>

This has been fixed in v0.58x.

You get the current testing version at

http://www.users.bigpond.com/ddparnell/euphoria/w32005803.zip

----------------
cheers,
Derek Parnell

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

3. Re: getPageSetup() crashes

On Sat, 29 Mar 2003 08:46:38 +1100, Derek Parnell
<ddparnell at bigpond.com> wrote:

>----- Original Message -----
>From: "Greg Haberek" <g.haberek at comcast.net>
>Subject: getPageSetup() crashes
>>
>> When I call getPageSetup() and click the 'OK' button, I get this =
error:
>>
>
>This has been fixed in v0.58x.
>
>You get the current testing version at
>
>http://www.users.bigpond.com/ddparnell/euphoria/w32005803.zip
>

;-((=20

Derek, you have still not put my print changes in. Is there a problem?

Pete

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

4. Re: getPageSetup() crashes

Yeah, I only got 24 hours in each day, sorry.

----------------
cheers,
Derek Parnell
----- Original Message ----- 
From: "Pete Lomax" <petelomax at blueyonder.co.uk>
To: "EUforum" <EUforum at topica.com>
Subject: Re: getPageSetup() crashes



On Sat, 29 Mar 2003 08:46:38 +1100, Derek Parnell
<ddparnell at bigpond.com> wrote:

>----- Original Message -----
>From: "Greg Haberek" <g.haberek at comcast.net>
>Subject: getPageSetup() crashes
>>
>> When I call getPageSetup() and click the 'OK' button, I get this error:
>>
>
>This has been fixed in v0.58x.
>
>You get the current testing version at
>
>http://www.users.bigpond.com/ddparnell/euphoria/w32005803.zip
>

;-(( 

Derek, you have still not put my print changes in. Is there a problem?

Pete

==^^===============================================================
This email was sent to: ddparnell at bigpond.com


TOPICA - Start your own email discussion group. FREE!

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

5. Re: getPageSetup() crashes

I'm sorry Peter, that outburst was uncalled for.

I've been looking through the issue list for win32lib, and I can't see any
printer issues from you. If you don't mind, can you resend the problem
description (and fix?).

What I do have from you is ...

** UpDOwn control not calling the Click handler.
** Selecting better nonTrue-Type font sizes
** Automatically setting a font size based on container dimensions.
** Statusbar not resizing properly on Windows Maximise.

----------------
cheers,
Derek Parnell
----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, March 29, 2003 5:14 PM
Subject: Re: getPageSetup() crashes


>
> Yeah, I only got 24 hours in each day, sorry.
>
> ----------------
> cheers,
> Derek Parnell
> ----- Original Message -----
> From: "Pete Lomax" <petelomax at blueyonder.co.uk>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, March 29, 2003 10:50 AM
> Subject: Re: getPageSetup() crashes
>
>
> On Sat, 29 Mar 2003 08:46:38 +1100, Derek Parnell
> <ddparnell at bigpond.com> wrote:
>
> >----- Original Message -----
> >From: "Greg Haberek" <g.haberek at comcast.net>
> >Subject: getPageSetup() crashes
> >>
> >> When I call getPageSetup() and click the 'OK' button, I get this error:
> >>
> >
> >This has been fixed in v0.58x.
> >
> >You get the current testing version at
> >
> >http://www.users.bigpond.com/ddparnell/euphoria/w32005803.zip
> >
>
> ;-((
>
> Derek, you have still not put my print changes in. Is there a problem?
>
> Pete
>
> ==^^===============================================================
> This email was sent to: ddparnell at bigpond.com
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

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

6. Re: getPageSetup() crashes

----=_edgc8vogactuiainljo7l3rcuidhldtd3q.MFSBCHJLHS

On Sat, 29 Mar 2003 20:14:00 +1100, Derek Parnell
<ddparnell at bigpond.com> wrote:

>
>I'm sorry Peter, that outburst was uncalled for.

Don't worry about it, no offense was taken
>
>I've been looking through the issue list for win32lib, and I can't see =
any
>printer issues from you. If you don't mind, can you resend the problem
>description (and fix?).

Well, since it all seems to have got a bit lost somewhere on this
internet thingy, glad I asked!

I've managed to modify page setup so you can set paper and orientation
defaults, and hacked an example.exw of how to transfer settings from
page setup to the print dialogue, which did not previously happen.
getPrinter (and getPrintChoice) and getPageSetup(Ex) now return
additional info (collate, print to file, paper, and orientation), and
startDoc now permits print to file (not as useful as it sounds).
Also  PD_PAGENUMS  is no longer used (it *defaults* the 2nd radio
(Pages from/to) - not as one might imagine permit user to click it -
rather than leaving the 1st radio (All pages) as the default).

I strongly suspect there is a better way to "black box" the code from
example.exw within win32lib, perhaps by retaining the pSetupDlg and
pPrintDlg structures permanently? On the other hand the existing
comment "pPrintDlg is used for experts only." prolly covers it.

I'm undecided whether the slew of new constants for paper orientation
and size are put in a new, not normally included file, or whether that
causes more trouble than it is worth.

>What I do have from you is ...
>
>** UpDOwn control not calling the Click handler.
>** Selecting better nonTrue-Type font sizes
>** Automatically setting a font size based on container dimensions.
>** Statusbar not resizing properly on Windows Maximise.
>
Gulp! Been busy pestering you haven't I... blink

Pete


----=_edgc8vogactuiainljo7l3rcuidhldtd3q.MFSBCHJLHS
Content-Type: application/octet-stream; name=example.exw

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

Search



Quick Links

User menu

Not signed in.

Misc Menu