1. IDE installation problem
- Posted by Richard <rhbravo2002 at yahoo.com> Oct 20, 2004
- 596 views
- Last edited Oct 21, 2004
IDE installation problem I try to run C:\EUPHORIA\IDE\IDE.exw It shows the splash screen, Enhanced IDE Version 0.18.22 etc. Then it displays Winlib32 Appwindow - fatal error with the message (repeated on the console window) Error code 461 Failed to acquire a hWnd when creating a control. Win32Lib v0.60.6 19-Sep-2004 Press Enter... I just upgraded Euphoria into the euphoria directory, and unzipped the new winlib32 there also. I unzipped IDE into the ide directory. I can run most .exw demos, and winlibscan from ide. Both IDE and multiEditor fail. Please let me know if there is a likely explanation or if I can provide more information that may help.
2. Re: IDE installation problem
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 569 views
Richard wrote: > > IDE installation problem > > I try to run C:\EUPHORIA\IDE\IDE.exw > > It shows the splash screen, Enhanced IDE Version 0.18.22 etc. > > Then it displays Winlib32 Appwindow - fatal error with the message > (repeated on the console window) > > Error code 461 > Failed to acquire a hWnd when creating a control. > > Win32Lib v0.60.6 19-Sep-2004 > > Press Enter... > > I just upgraded Euphoria into the euphoria directory, > and unzipped the new winlib32 there also. I unzipped > IDE into the ide directory. I can run most .exw demos, > and winlibscan from ide. Both IDE and multiEditor fail. > > Please let me know if there is a likely explanation > or if I can provide more information that may help. Which version of Windows are you running? The problem might be that you are using pre-Windows 98SE2. I think the IDE works for Windows after that one. -- Derek Parnell Melbourne, Australia
3. Re: IDE installation problem
- Posted by Richard <rhbravo2002 at yahoo.com> Oct 21, 2004
- 546 views
Derek Parnell wrote: > > Richard wrote: > > > > IDE installation problem > > > > I try to run C:\EUPHORIA\IDE\IDE.exw > > > > It shows the splash screen, Enhanced IDE Version 0.18.22 etc. > > > > Then it displays Winlib32 Appwindow - fatal error with the message > > (repeated on the console window) > > > > Error code 461 > > Failed to acquire a hWnd when creating a control. > > > > Win32Lib v0.60.6 19-Sep-2004 > > > > Press Enter... > > > > I just upgraded Euphoria into the euphoria directory, > > and unzipped the new winlib32 there also. I unzipped > > IDE into the ide directory. I can run most .exw demos, > > and winlibscan from ide. Both IDE and multiEditor fail. > > > > Please let me know if there is a likely explanation > > or if I can provide more information that may help. > > Which version of Windows are you running? The problem might > be that you are using pre-Windows 98SE2. I think the IDE works > for Windows after that one. > > > -- > Derek Parnell > Melbourne, Australia > I have an old version of Windows 98. Here's the system info output: Microsoft Windows 98 4.10.1998 Clean install using OEM Preinstall Kit /T:C:\WININST0.400 /SrcDir=C:\WINDOWS\OPTIONS\CABS /IS /IW /IQ /ID /IV /P J /IZ /II /NR /II /C /U:xxxxxxxxxxxxxxxxx IE 5 6.0.2600.0000 Let me know if you can identify it as either new enough or too old. If it is too old, is there an update I can apply? Thanks.
4. Re: IDE installation problem
- Posted by CoJaBo <cojabo at suscom.net> Oct 21, 2004
- 577 views
Richard wrote: > > Derek Parnell wrote: > > > > Richard wrote: > > > > > > IDE installation problem > > > > > > I try to run C:\EUPHORIA\IDE\IDE.exw > > > > > > It shows the splash screen, Enhanced IDE Version 0.18.22 etc. > > > > > > Then it displays Winlib32 Appwindow - fatal error with the message > > > (repeated on the console window) > > > > > > Error code 461 > > > Failed to acquire a hWnd when creating a control. > > > > > > Win32Lib v0.60.6 19-Sep-2004 > > > > > > Press Enter... > > > > > > I just upgraded Euphoria into the euphoria directory, > > > and unzipped the new winlib32 there also. I unzipped > > > IDE into the ide directory. I can run most .exw demos, > > > and winlibscan from ide. Both IDE and multiEditor fail. > > > > > > Please let me know if there is a likely explanation > > > or if I can provide more information that may help. > > > > Which version of Windows are you running? The problem might > > be that you are using pre-Windows 98SE2. I think the IDE works > > for Windows after that one. > > > > > > -- > > Derek Parnell > > Melbourne, Australia > > > I have an old version of Windows 98. Here's the system info output: > > Microsoft Windows 98 4.10.1998 > Clean install using OEM Preinstall Kit /T:C:\WININST0.400 > /SrcDir=C:\WINDOWS\OPTIONS\CABS > /IS /IW /IQ /ID /IV /P J /IZ /II /NR /II /C /U:xxxxxxxxxxxxxxxxx > IE 5 6.0.2600.0000 > > Let me know if you can identify it as either new enough or too old. > If it is too old, is there an update I can apply? Probably too old... Try Windows 2000 or XP(not ME, I've heard it is worse than 98), they are somwhat more stable. 2000 is less expensive and easier to set up, but XP looks better and has some extra features(and microsoft will support it longer.) > > Thanks. >
5. Re: IDE installation problem
- Posted by Craig Welch <euphoria at welchaviation.org> Oct 21, 2004
- 565 views
CoJaBo wrote: >>Let me know if you can identify it as either new enough or too old. >>If it is too old, is there an update I can apply? > > Probably too old... > Try Windows 2000 or XP(not ME, I've heard it is worse than 98), > they are somwhat more stable. I've never felt the need to upgrade from Win98. It's faster than XP, more secure, easy to administer (that is, there is nothing to adminster).
6. Re: IDE installation problem
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Oct 21, 2004
- 570 views
> Subject: Re: IDE installation problem > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > Richard wrote: > >>> >>> IDE installation problem >>> >>> I try to run C:\EUPHORIA\IDE\IDE.exw >>> >>> It shows the splash screen, Enhanced IDE Version 0.18.22 etc. >>> >>> Then it displays Winlib32 Appwindow - fatal error with the message >>> (repeated on the console window) >>> >>> Error code 461 >>> Failed to acquire a hWnd when creating a control. >>> >>> Win32Lib v0.60.6 19-Sep-2004 >>> >>> Press Enter... >>> >>> I just upgraded Euphoria into the euphoria directory, >>> and unzipped the new winlib32 there also. I unzipped >>> IDE into the ide directory. I can run most .exw demos, >>> and winlibscan from ide. Both IDE and multiEditor fail. >>> >>> Please let me know if there is a likely explanation >>> or if I can provide more information that may help. > > > Which version of Windows are you running? The problem might > be that you are using pre-Windows 98SE2. I think the IDE works > for Windows after that one. > > > -- Derek Parnell Melbourne, Australia I'm afraid this is not an IDE problem, but a 0.60.6 problem. I use win98SE2 as well. As it bears a full screen splash Windows logo, I'm curious to know how it's pre-Windows. I upgraded to 0.60.6 recently (see my post on last sunday UTC), but had to go back to 0.60.3. I can't create an EditText or a RichEdit control under 0.60.6, it fails with error 461 as well. Under 98ES2 and using 0.60.3, IDE and my apps work fine, thanks. CChris
7. Re: IDE installation problem
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 566 views
Christian Cuvier wrote: > > > Subject: Re: IDE installation problem > > > > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > > > Richard wrote: > > > >>> > >>> IDE installation problem > >>> > >>> I try to run C:\EUPHORIA\IDE\IDE.exw > >>> > >>> It shows the splash screen, Enhanced IDE Version 0.18.22 etc. > >>> > >>> Then it displays Winlib32 Appwindow - fatal error with the message > >>> (repeated on the console window) > >>> > >>> Error code 461 > >>> Failed to acquire a hWnd when creating a control. > >>> > >>> Win32Lib v0.60.6 19-Sep-2004 > >>> > >>> Press Enter... > >>> > >>> I just upgraded Euphoria into the euphoria directory, > >>> and unzipped the new winlib32 there also. I unzipped > >>> IDE into the ide directory. I can run most .exw demos, > >>> and winlibscan from ide. Both IDE and multiEditor fail. > >>> > >>> Please let me know if there is a likely explanation > >>> or if I can provide more information that may help. > > > > > > Which version of Windows are you running? The problem might > > be that you are using pre-Windows 98SE2. I think the IDE works > > for Windows after that one. > > > > > > -- Derek Parnell Melbourne, Australia > > I'm afraid this is not an IDE problem, but a 0.60.6 problem. I need help to track down this mistake I've made. As I no longer have access to any ancient versions of Windows, I can't duplicate the effect. Can anyone volunteer to debug this for me? > I use win98SE2 as well. As it bears a full screen splash Windows logo, I'm > curious to know how it's pre-Windows. Sorry. My poor writing skills have lead you to this impression. What I meant was something more like "pre-(Windows 98SE2)", that is, a version of Windows that predates Windows 98SE2. > I upgraded to 0.60.6 recently (see my post on last sunday UTC), Sorry again, but I searched for that post but I can't seem to find it. > but had to go > back to 0.60.3. I can't create an EditText or a RichEdit control under 0.60.6, > > it fails with error 461 as well. > Under 98ES2 and using 0.60.3, IDE and my apps work fine, thanks. This is the first I heard of anyone having this problem. I'm not ignoring it but I hadn't realized that it was an issue. I'm further hampered because I haven't got access to Windows 98 anymore. I've had a look through the code and can't see any obvious change that relates to EditText and RichEdit controls. Normally that 461 error message comes about by using inappropriate flags for the control type, or messing up the WS_CHILD flag and parent hWnd values. -- Derek Parnell Melbourne, Australia
8. Re: IDE installation problem
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Oct 21, 2004
- 560 views
[snip] >>I'm afraid this is not an IDE problem, but a 0.60.6 problem. > > > I need help to track down this mistake I've made. As I no longer have > access to any ancient versions of Windows, I can't duplicate the > effect. Can anyone volunteer to debug this for me? > > >>> I use win98SE2 as well. As it bears a full screen splash Windows logo, I'm >>> curious to know how it's pre-Windows. > > > Sorry. My poor writing skills have lead you to this impression. What I > meant was something more like "pre-(Windows 98SE2)", that is, a version of > Windows that predates Windows 98SE2. > > >>> I upgraded to 0.60.6 recently (see my post on last sunday UTC), > > > Sorry again, but I searched for that post but I can't seem to find it. > <copied from Topica web interface> Problem with RichEdit creation CChris Oct 17, 2004 06:51 PDT posted by: CChris <christian.cuvier at agriculture.gouv.fr> The following code (pared down from original) seemed to work correctly until a few days ago:
include win32lib.ew -- include database.e include xcontrols.ew -- global object win, code win = create(Window,"Test",0,1,1,400,400,0) code = createEx(RichEdit,"",win,10,40,380,350,0,0) -- code = xControl(Syntax,"",win,10,40,380,350,0,0)
I updated xcontrols from an 2-3 year old version, and from win32lib 0.60.3 to 6. Now I'm getting an error 461 (Failed to acquire a hWnd when creating a control). And SynTest.exw (the test file supplied for the Syntax control) fails the same. Failure occurs at the createEx line. If you comment it and remove the comments of the line beneath, then line 203 in Syntax.ew (the createEx statement at line 203) fails with error 461. Any idea about what can go wrong? Other randomly selected win32lib demos work correctly. CChris Below the ex.err part about createEx: .... called from C:\EUPHORIA\win32lib_v006006\Include\win32lib.ew:16814 in function createEx() pControl = 42'*' pCaption = {} pOwner = 3 pLeft = 10 pTop = 40'(' pWidth = 380 pHeight = 350 styleFlags = 0 exFlags = 0 id = 18 at = <no value> hotkey = <no value> bgControl = <no value> style = <no value> result = <no value> hWnd = 0 flags = 1419878468 extendedflags = 512 lParenthWnd = 3652 szClassName = 6953908 szCaption = 6954004 hMenu = 3 newhWnd = <no value> pstr = <no value> struct = <no value> ok = <no value> newobj = <no value> lvcol = <no value> BBox = {10,40'(',380,350} sbPanels = <no value> lHintText = {} lIconInfo = <no value> autoclose = 0 lBGColor = <no value> lUserPre = {} lUserPost = <no value> lTemp = <no value> </copy> > >>> but had to go >>> back to 0.60.3. I can't create an EditText or a RichEdit control under >>> 0.60.6, >>> it fails with error 461 as well. >>> Under 98ES2 and using 0.60.3, IDE and my apps work fine, thanks. > > > This is the first I heard of anyone having this problem. I'm not ignoring > it but I hadn't realized that it was an issue. I'm further hampered > because I haven't got access to Windows 98 anymore. > > I've had a look through the code and can't see any obvious change that > relates to EditText and RichEdit controls. > > Normally that 461 error message comes about by using inappropriate flags > for the control type, or messing up the WS_CHILD flag and parent > hWnd values. > > -- Derek Parnell Melbourne, Australia Yes, I noticed that too :) It may happen when resources start running low as well. In that case, the error location is random and closing an app generally cures it all (rebooting always does); this is an easy signature for this flavor. The problem I have is very stably reproducible. The facts I gathered after the post I just joined a copy of are: 1/ xcontrols is just a victim, not a cause; 2/ database.e has nothing to do with it, should have removed that line; 3/ WC_RICHEDIT is "RICHED20A" as expected; copying the riched20.dll from the office machine didn't help. I'll take time to trace through createEx, but I find it hard to identify which w32Func() does what: how can I translate the value of funcid into some human-readable API call? I know about another user (why he did not post I don't know) who got exactly the same problem: code crashed on the win98 laptop and runs fine under XP, now that that machine is up and running again. That was not the case before he upgraded to 0.60.6, I don't know what the older version was. CChris
9. Re: IDE installation problem
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 571 views
CChris wrote: > [snip] > > > >>> I upgraded to 0.60.6 recently (see my post on last sunday UTC), > > > > > > Sorry again, but I searched for that post but I can't seem to find it. > > > > <copied from Topica web interface> > Problem with RichEdit creation CChris > Oct 17, 2004 06:51 PDT > Curiously, this post is not in the EUForum archive. > > I'll take time to trace through createEx, but I find it hard to identify which > > w32Func() does what: how can I translate the value of funcid into some > human-readable API call? When I use trace(1) I read the w32Func() name from the source code that is displayed. I never need to work out the funcid. I would just put a trace in the createEx() routine and follow that through. Maybe I'm messing up the flags. I can't see how, but maybe. > I know about another user (why he did not post I don't know) who got exactly > the same problem: code crashed on the win98 laptop and runs fine under XP, now > > that that machine is up and running again. That was not the case before he > upgraded to 0.60.6, I don't know what the older version was. I don't doubt that there is a mistake in my code, but I can't work out how to find it. The code works without fault on my XP system. -- Derek Parnell Melbourne, Australia
10. Re: IDE installation problem
- Posted by Marc Giao <giao at sympatico.ca> Oct 21, 2004
- 612 views
Derek Parnell wrote: > > > I know about another user (why he did not post I don't know) who got exactly > > > > the same problem: code crashed on the win98 laptop and runs fine under XP, > > now > > that that machine is up and running again. That was not the case before he > > upgraded to 0.60.6, I don't know what the older version was. > > I don't doubt that there is a mistake in my code, but I can't work out > how to find it. The code works without fault on my XP system. > > -- > Derek Parnell > Melbourne, Australia > Maybe I can help, I had the same problem with 60.6, then, I remembered Derek provided a fix for 60.5. When I looked in my download of 60.6 the fix had not been added. After adding the fix as per Derek's post bellow my version of 60.6 works... a ok! Hope it helps Marc =============Derek's post follows===================== Date: 2004 Sep 9 23:40 From: Derek Parnell <ddparnell at bigpond.com> Subject: Re: win32lib v60.5 error code 461 I messed up with RichEdit on old Windows systems. Look in the w32DLL.ew include file. Naar the end of the file you will see some code dealing with RichEdit classes. Replace all after the comments ...
--/topic Constant --/const riched32 --/desc Windows Library: Rich Edit Control
with ...
global constant riched32 = registerw32Library({"Msftedit.dll","riched20.dll","riched32.dll"}), -- Rich Edit control WC_RICHEDIT10 = "RICHEDIT", WC_RICHEDIT20 = "RichEdit20A", WC_RICHEDIT50 = "RICHEDIT50W" global sequence WC_RICHEDIT vw32Libraries[riched32][1] = linkDLL(vw32Libraries[riched32][2]) if vw32Libraries[riched32][1][1] = 1 then WC_RICHEDIT = WC_RICHEDIT50 elsif vw32Libraries[riched32][1][1] = 2 then WC_RICHEDIT = WC_RICHEDIT20 else WC_RICHEDIT = WC_RICHEDIT10 end if
-- Derek Parnell Melbourne, Australia =============Derek's post ends=====================
11. Re: IDE installation problem
- Posted by cklester <cklester at yahoo.com> Oct 21, 2004
- 568 views
Christian Cuvier wrote: > > I upgraded to 0.60.6 recently (see my post on last sunday UTC), but had to go > back to 0.60.3. I'm back at 0.60.5 myself. I've never gotten a response about the problems I experienced with 0.60.6, but I assumed that was because Derek was working on those issues. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
12. Re: IDE installation problem
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 563 views
- Last edited Oct 22, 2004
Marc Giao wrote: > > Derek Parnell wrote: > > > > > > I know about another user (why he did not post I don't know) who got > > > exactly > > > the same problem: code crashed on the win98 laptop and runs fine under XP, > > > now > > > that that machine is up and running again. That was not the case before he > > > > > > upgraded to 0.60.6, I don't know what the older version was. > > > > I don't doubt that there is a mistake in my code, but I can't work out > > how to find it. The code works without fault on my XP system. > > > > -- > > Derek Parnell > > Melbourne, Australia > > > > Maybe I can help, > > I had the same problem with 60.6, then, I remembered Derek provided a fix > for 60.5. When I looked in my download of 60.6 the fix had not been added. > After adding the fix as per Derek's post bellow my version of 60.6 works... a > ok! > > Hope it helps Oh my sainted aunt! How could I have missed that! I've now put that fix the next release (for sure!). I still can't see any problem with EditText controls though? -- Derek Parnell Melbourne, Australia
13. Re: IDE installation problem
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 567 views
- Last edited Oct 22, 2004
cklester wrote: > > Christian Cuvier wrote: > > > > I upgraded to 0.60.6 recently (see my post on last sunday UTC), but had to > > go > > back to 0.60.3. > > I'm back at 0.60.5 myself. I've never gotten a response about the problems > I experienced with 0.60.6, but I assumed that was because Derek was working > on those issues. > Is that the 'FastMenu' issue? I've sent an email reply to you just now. -- Derek Parnell Melbourne, Australia
14. Re: IDE installation problem
- Posted by cklester <cklester at yahoo.com> Oct 21, 2004
- 564 views
- Last edited Oct 22, 2004
Derek Parnell wrote: > cklester wrote: > > Christian Cuvier wrote: > > > I upgraded to 0.60.6 recently (see my post on last sunday UTC), but had to > > > go > > > back to 0.60.3. > > I'm back at 0.60.5 myself. I've never gotten a response about the problems > > I experienced with 0.60.6, but I assumed that was because Derek was working > > on those issues. > Is that the 'FastMenu' issue? I've sent an email reply to you just now. No, Derek... but thanks! I'm looking at that now. The problem I had with 0.60.6 you actually provided some patched code for, but subsequent problems occurred for which I never saw fixes. Let me see if I can come up with what it was and I'll get back to you. Thanks, again! :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
15. Re: IDE installation problem
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Oct 23, 2004
- 550 views
The fix works, thanks Marc and Derek. As the same dll provides functionality for EditText and RichEdit controls, I'm not very surprised that both are affected at the same time. CChris