1. [Win32Lib] Error Code 495...?

I'm getting this after a program shuts down:

Error code 495
getHandle failed.

Win32Lib v0.59.1 08-June-2003

Press Enter...

Derek, can you tell me what might be causing it? I think the ex.err
(follows) is somehow related:

--ex.err
C:\EUPHORIA\include\ui_msgs.e:111 in procedure fShowError()
attempt to divide by 0
    pParams = {

{103'g',101'e',116't',72'H',97'a',110'n',100'd',108'l',101'e',
32' ',102'f',97'a',105'i',108'l',101'e',100'd',46'.'},
                495
              }
    pMode = 2
    lErrCode = 495
    lResponse = 1
    lStyle = 16

new topic     » topic index » view message » categorize

2. Re: [Win32Lib] Error Code 495...?

----- Original Message ----- 
From: "C. K. Lester" <cklester at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: [Win32Lib] Error Code 495...?


> 
> 
> I'm getting this after a program shuts down:
> 
> Error code 495
> getHandle failed.
> 
> Win32Lib v0.59.1 08-June-2003
> 
> Press Enter...
> 
> Derek, can you tell me what might be causing it? I think the ex.err
> (follows) is somehow related:
> 
> --ex.err
> C:\EUPHORIA\include\ui_msgs.e:111 in procedure fShowError()
> attempt to divide by 0
>     pParams = {
> 
> {103'g',101'e',116't',72'H',97'a',110'n',100'd',108'l',101'e',
> 32' ',102'f',97'a',105'i',108'l',101'e',100'd',46'.'},
>                 495
>               }
>     pMode = 2
>     lErrCode = 495
>     lResponse = 1
>     lStyle = 16
> 

The extract from the log file is not enough for anyone to determine what's going
on as this is only the stuff from the routine that actually aborts the app, not
what called this routine.

Sorry I can't help with so little info. Can you create a tiny program that
exhibits this problem?

-- 
Derek

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

3. Re: [Win32Lib] Error Code 495...?

IIRC, passing an invalid control for the parent, in create or createEx 
could cuse such an error. You should check your create statements, for one.

PS,
where did the original message go? I only received Derek's reply.

>From: Derek Parnell <ddparnell at bigpond.com>
>Subject: Re: [Win32Lib] Error Code 495...?
>
>
>----- Original Message -----
>From: "C. K. Lester" <cklester at yahoo.com>
>To: "EUforum" <EUforum at topica.com>
>Sent: Friday, September 12, 2003 5:23 AM
>Subject: [Win32Lib] Error Code 495...?
>
>
> > I'm getting this after a program shuts down:
> >
> > Error code 495
> > getHandle failed.
> >
> > Win32Lib v0.59.1 08-June-2003
> >
> > Press Enter...
> >
> > Derek, can you tell me what might be causing it? I think the ex.err
> > (follows) is somehow related:
> >
> > --ex.err
> > C:\EUPHORIA\include\ui_msgs.e:111 in procedure fShowError()
> > attempt to divide by 0
> >     pParams = {
> >
> > {103'g',101'e',116't',72'H',97'a',110'n',100'd',108'l',101'e',
> > 32' ',102'f',97'a',105'i',108'l',101'e',100'd',46'.'},
> >                 495
> >               }
> >     pMode = 2
> >     lErrCode = 495
> >     lResponse = 1
> >     lStyle = 16
> >
>
>The extract from the log file is not enough for anyone to determine what's 
>going on as this is only the stuff from the routine that actually aborts 
>the app, not what called this routine.
>
>Sorry I can't help with so little info. Can you create a tiny program that 
>exhibits this problem?
>
>--
>Derek
>

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

4. Re: [Win32Lib] Error Code 495...?

----- Original Message ----- 
From: "C. K. Lester" <cklester at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [Win32Lib] Error Code 495...?


> 
> 
> Derek Parnell wrote:
> > 
> > 
> > > I'm getting this after a program shuts down:
> > > 
> > > Error code 495
> > > getHandle failed.
> > > 
> > > Win32Lib v0.59.1 08-June-2003
> 
> I figured it out, but I still don't understand it...
> 
> My program ends with closeWindow( theWindow ), but it continues 
> executing some code afterwards that is trying to call controls that no 
> longer exist. However, I wouldn't expect it to keep on after I close the 
> window. I can provide a snippet if you want, but that's the jist of it.

Ok. Once control returns from you call the WinMain() routine, your app should
NOT use anything that is inside win32lib - and that includes any controls you
created. The only thing you can safely do is basic Euphoria stuff - no windows
code.

-- 
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu