Re: [wxhaskell-users] Installation on Windows, DLL can't be loaded
Hi ADrian, Did you tried to compile that? ghc -package wx Helloword.hs And running Helloword.exe is ok? Best Miguel Vilaça -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Adrian Neumann Enviada: sábado, 5 de Abril de 2008 18:09 Para: wxhaskell-users@lists.sourceforge.net Assunto: [wxhaskell-users] Installation on Windows, DLL can't be loaded Hi, I just installed ghc6.8, wxWidgets2.6 and wxHaskell10.3. I tried to run the HelloWorld program from the samples directory, but ghci gives me C:\ghc\wxhaskell-0.10.3\samples\wx>ghci -package wx HelloWorld.hs GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Loading package old-locale-1.0.0.0 ... linking ... done. Loading package old-time-1.0.0.0 ... linking ... done. Loading package filepath-1.1.0.0 ... linking ... done. Loading package directory-1.0.0.0 ... linking ... done. Loading package random-1.0.0.0 ... linking ... done. Loading package process-1.0.0.0 ... linking ... done. Loading package array-0.1.0.0 ... linking ... done. Loading package haskell98 ... linking ... done. Loading package wxcore-0.10.3 ... : can't load .so/.DLL for: wxc-msw2.6.4-0.10.3 (addDLL: unknown error) That's strange, since the DLL is in Windows/system32, which is naturally in my PATH. I googled, but to no avail. Nobody seems to share my problem. Does anybody on this mailing-list know what to do? Adrian - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi, I start this when i read in http://wxhaskell.sourceforge.net/download.html that concerning binaries for version 0.10.3: "All packages have ODBC support (but not OpenGL)." But at least the windows binary (as stated by shelarcy) and the wxhaskell-bin-powerpc-mac2.6.4-ghc6.8.2-0.10.3-0.dmg have opengl enabled. I tested those two packages my self with code using opengl. So, is just that the information at the webpage is more restricted than the packages :-) best Miguel Vilaça Quoting Conal Elliott <[EMAIL PROTECTED]>: > As long as there's a single binary (per release per platform) I'm for opengl > being part of it. > > On Sat, Mar 29, 2008 at 6:56 AM, Eric Y. Kow <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Answering the one question I know an answer to. >> >> > In the meanwhile, I also found that the 0.10.3 binaries loose the >> > opengl support compared with 0.9.4 as pointed in >> > http://wxhaskell.sourceforge.net/download.html. >> > Is there some reason for this? >> >> There used to be a flag bug in wxWidgets/wxHaskell, where (1) >> wxWidgets/wxHaskell would include opengl support even if you did not >> ask for it and (2) you still needed to pass --with-opengl in order >> for the appropriate right set of linker flags to be used when building >> applications. Otherwise, people got strange GL-related errors when >> compiling their apps, even if they weren't using OpenGL in any way. >> >> We have now fixed that error so that you can now compile it without that >> flag and still link your applications succesfully. >> >> That said, we have not established a policy on what extra batteries >> should be included with the default binaries. I guess a good thing to >> aim for is the most extras we can get that also come with a vanilla >> wxWidgets on all platforms. If you're willing to do research on that, >> we can go re-think what flags to use. I'm guessing that since prior >> versions of wxHaskell had opengl support, this kind of thing is OK. >> >> I'm personally hoping that a future wxhaskell will allow to install >> extras separately (e.g., that you could download just a binary for >> opengl support), but we haven't really worked out the right way to >> do this right. >> >> So what does this mean for you? Well, if you're willing to do so, you >> could recompile it yourself with flags. Otherwise, we could think about >> making yet another release (0.10.3-1) with opengl and some minor fixes >> in the makefile/configure script. >> >> -- >> Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> >> PGP Key ID: 08AC04F9 >> >> - >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> ___ >> wxhaskell-users mailing list >> wxhaskell-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users >> >> > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi, The Microsoft Visual C++ 2005 SP1 Redistributable Package solves the problem. Just great! If anyone with access to wxHaskell webpage at sourceforge could add a note in downloads page about this issue, could avoid others to have this problem. Something like You may need to install Microsoft Visual C++ 2005 SP1 Redistributable Package (http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14 -984d-389c36f85647&DisplayLang=en) or else you may see the error message "The applicattion failed to initialize properly (0xc0150002). Click OK to terminate the application." when you compile your wxHaskell dependent code and run those executables. Many thanks! Miguel Vilaça -Mensagem original- De: shelarcy [mailto:[EMAIL PROTECTED] Enviada: sábado, 29 de Março de 2008 14:34 Para: José Miguel Vilaça Cc: wxhaskell-users Assunto: Re: RE: wxHaskell 0.10.3: problems in Windows XP Hi, On Thu, 27 Mar 2008 07:55:50 +0900, José Miguel Vilaça <[EMAIL PROTECTED]> wrote: > I successfully installed Visual C++ 2005 Redistributable Package on Windows > XP but the same error remains. I even rebooted (for some reason this usually > solve many problems) the machine but no luck either. > > I'll take more time around this during the weekend, to see if I discover the > reason for this error. Oops ... I found "SP1" Redistributable Package is different from non-SP Redistributable Package. Please try to use Microsoft Visual C++ 2005 SP1 Redistributable Package (x86). http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14- 984d-389c36f85647&DisplayLang=en -- shelarcy http://page.freett.com/shelarcy/ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi again, After several unsuccesseful tries, and some googling, I found out many complains of people seeing the message "The applicattion failed to initialize properly (0xc0150002). Click OK to terminate the application." when they run their executables out of the devellopment machine. The error also seems to be often related with: * DXUT - related with images and DirectX SDK - (see http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1048802&SiteID=1) * MS Office (see http://support.microsoft.com/search/default.aspx?mode=r&catalog=LCID%3d1033&1033comm=1&spid=global&query=0xc0150002 ) Some pratical, to find a solutions is pointed in http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2006-09/msg02020.html: "To see dependent DLLs, open your application with the dependency viewer (depends.exe)." Can you please take a look on this and see if everything needed is going into the DLL? In the meanwhile, I also found that the 0.10.3 binaries loose the opengl support compared with 0.9.4 as pointed in http://wxhaskell.sourceforge.net/download.html. Is there some reason for this? In my specific case that will also be a problem. But the 0xc0150002 is not related to this since the simple (and not opengl related) HelloWorld.exe continues failling in my machine. Since I found one machine that runs the code and one that doesn't, I comparing the software installed on them. Maybe I found a solution this way!! best Miguel Vilaça Quoting José Miguel Vilaça <[EMAIL PROTECTED]>: > Hi Shelarcy, > > Thanks for your quick help. > > I successfully installed Visual C++ 2005 Redistributable Package on Windows > XP but the same error remains. I even rebooted (for some reason this usually > solve many problems) the machine but no luck either. > > I'll take more time around this during the weekend, to see if I discover the > reason for this error. > > In the meanwhile, I would appreciate any report of a successful installation > of wxHaskell binary on Windows XP (without the development stuff). Anyone? > Just to check if this is a specific error (of this machine) or a global one. > > Best > Miguel Vilaça > > > -Mensagem original- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Em nome de shelarcy > Enviada: quarta-feira, 26 de Março de 2008 14:20 > Para: Miguel Vilaça > Cc: wxhaskell-users > Assunto: Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP > > Hi Miguel, > > On Wed, 26 Mar 2008 21:21:47 +0900, Miguel Vilaça <[EMAIL PROTECTED]> > wrote: >> "The applicattion failed to initialize properly (0xc0150002). Click OK >> to terminate the application." > > I searched this error using goole, then I found similar problem form > websites > and forums. Some of them advice to install Visual C++ 2005 Redistributable > Package. > > http://www.issociate.de/board/post/474708/Xampp_Apache_Install_Problem.html > > How about install that? > You can get that from below page. > > http://www.microsoft.com/Downloads/details.aspx?FamilyID=32bc1bee-a3f9-4c13- > 9c99-220b62a191ee&displaylang=en > > Best Regards, > > -- > shelarcy > http://page.freett.com/shelarcy/ > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ___ > wxhaskell-users mailing list > wxhaskell-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ___ > wxhaskell-users mailing list > wxhaskell-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi Eric, Thanks for the fast answer. The machine in which I'm running XP is an old one and it take some time to compile. Since I'm not with much time during this week, I'll take a try during the weekend. Best Miguel Vilaça -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Eric Kow Enviada: quarta-feira, 26 de Março de 2008 13:47 Para: Miguel Vilaça Cc: wxhaskell-users@lists.sourceforge.net Assunto: Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP Hi, On 26/03/2008, Miguel Vilaça <[EMAIL PROTECTED]> wrote: > I installed GHC 6.8.2 and wxHaskell 0.10.3 (final release, not RC X) > in a Windows XP, and everything installed ok. > > Tested the samples: ghc -package wx Helloword.hs -o Helloword.exe > > But when I run Helloword.exe, only an error message appears with: > > "The applicattion failed to initialize properly (0xc0150002). Click OK > to terminate the application." Thanks for the report! Shelarcy, did you use Vista to build this? Does this mean we need a separate package for XP? I could conceivably do this, but it would be a bit of a pain, as I haven't really set up my Windows virtual machine. So if you have an XP box that you're willing to build on, I'd be interested! [of course, if it turns out that other people with XP can run Helloworld, that's a different story] Miguel, would you be willing to try building from source? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi Shelarcy, Thanks for your quick help. I successfully installed Visual C++ 2005 Redistributable Package on Windows XP but the same error remains. I even rebooted (for some reason this usually solve many problems) the machine but no luck either. I'll take more time around this during the weekend, to see if I discover the reason for this error. In the meanwhile, I would appreciate any report of a successful installation of wxHaskell binary on Windows XP (without the development stuff). Anyone? Just to check if this is a specific error (of this machine) or a global one. Best Miguel Vilaça -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de shelarcy Enviada: quarta-feira, 26 de Março de 2008 14:20 Para: Miguel Vilaça Cc: wxhaskell-users Assunto: Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP Hi Miguel, On Wed, 26 Mar 2008 21:21:47 +0900, Miguel Vilaça <[EMAIL PROTECTED]> wrote: > "The applicattion failed to initialize properly (0xc0150002). Click OK > to terminate the application." I searched this error using goole, then I found similar problem form websites and forums. Some of them advice to install Visual C++ 2005 Redistributable Package. http://www.issociate.de/board/post/474708/Xampp_Apache_Install_Problem.html How about install that? You can get that from below page. http://www.microsoft.com/Downloads/details.aspx?FamilyID=32bc1bee-a3f9-4c13- 9c99-220b62a191ee&displaylang=en Best Regards, -- shelarcy http://page.freett.com/shelarcy/ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
[wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP
Hi all, I installed GHC 6.8.2 and wxHaskell 0.10.3 (final release, not RC X) in a Windows XP, and everything installed ok. Tested the samples: ghc -package wx Helloword.hs -o Helloword.exe But when I run Helloword.exe, only an error message appears with: "The applicattion failed to initialize properly (0xc0150002). Click OK to terminate the application." Is someone else having problems in Windows XP? When I tested in a Windows Vista, wxHaskell 0.10.3 really said "Hello World"!! :-) best regards Miguel Vilaça - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] wxhaskell-0.1-.3-rc2
Hi, Hi, Alan Carter wrote: > MacOs 10.4 > wxMac-2.6.4 GHC 6.8.2 > I configured wxMac --disable-monolithic -with-opengl --with-unicode > The wxhaskell binary package for MacOs was not happy. When I tried to > link a test program, a wxhaskell library required version 4 of a wxMac > library which is only at version 3 in wxMac-2.6.4. (Now I've solved > the problem I'd have to re-create it to get the exact message - d'oh! > But I could if it's helpful...) Im also having a problem (the same, I guess!) with the RC2 binary package for Mac: when linking there are missing libraries. After a closer look, the linker asks for files like /usr/local/lib/libwx_base_carbonu_xml-2.6.0.dylib /usr/local/lib/libwx_macu_SOMETHING-2.6.0.dylib But the available files are /usr/local/lib/libwx_base_carbon_xml-2.6.0.dylib /usr/local/lib/libwx_mac_SOMETHING-2.6.0.dylib It seems there is an extra 'u' in the names (see carbonu and macu). Creating symbolic links solve the problem for most of the libraries. At the moment I'm trying to figure out how to solve a few of them; probably more options for configure wxMac. Best Miguel Vilaça - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
[wxhaskell-users] wxGTK 2.8
Hi, I'm using wxHaskell for some time now and today I try to change wxGTK 2.6 to wxGTK 2.8 on my Ubuntu Gutsy (if that makes difference) Just before start describing, is anyone using wxGTK 2.8 with wxHaskell? What I did was: apt-get install libwxgtk28-dev In the past I already have doneapt-get install freeglut3-dev darcs get of the official repository (today, which have as last patch the initial wxWidgets 2.8 support) ./configure --with-opengl(I also tried using the flag --enable-strip but it took me to the same result) make sudo make install make wx sudo make wx-install When I run ghci -package wx e get this: Loading package wxcore-0.10.1 ... ghc-6.6.1: can't load .so/.DLL for: wxc-gtk2.8.4-0.10.1 (/usr/lib/libwxc-gtk2.8.4-0.10.1.so: undefined symbol: _ZTV11wxMediaCtrl) The file /usr/lib/libwxc-gtk2.8.4-0.10.1.so do exists. I'm using wxHaskell as a library user and I'm completely unaware of its implementation details (beside it is a layer to wxGTK!). Is anyone working on this change to wxGTK 2.8 and I could expect a solution soon? Can someone give some hints on what to do next to solve this, so that I can contribute to the project? It seems, at least to my umble person, that everything related to wxMediaCtrl is causing problems. kindest regards Miguel Vilaça - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
[wxhaskell-users] wxHaskell on Fedora Core 8?
Hi, Does anyone have wxHaskell installed on Fedora Core 8? The project Fedora Haskell (http://www.haskell.org/fedora/ ) is outdated. I tried to install wxHaskell in Fedora 8 with - GHC 6.8.2 with yum - darcs 0.1.0.9 witn yum - wxGTK 2.8.4-6 with yum - wxHaskell from official repository (darcs get http://darcs.haskell.org/wxhaskell) I'm getting an linking error when compiling my code saying that methods from classe wxMediaCtrl are not found, although I not using such stuff. Thus someone have wxHaskell installed there with this versions or different ones? Any hints for this problem? Thanks in advance. Best wishes Miguel Vilaça - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
[wxhaskell-users] Controlling TextCtrl editing
Hi all, I'm using an TextCtrl () and I would like to insert text (during the GUI computation) in the textCtrl. This is straightforward and is done. The problem is that both textCtrlAppendText and textCtrlWriteText always write the new pieces of text in the end of the previous text and I need to insert the text in the place where the TextCtrl cursor is. I also tried textCtrlSetInsertionPoint "DUMMY" 0 but that didn't change any behavior. It seems this function do nothing. I'm using the repository version of wxHaskell(updated two weeks ago) and ghc 6.6.1 on Kubuntu Gutsy (7.10). Thus anyone know or have any hints on how so solve this problem? Any help would be grateful. best Miguel Vilaca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] dynamic user interfaces
Hi Wolfgang, I did something similar: 1º I put several buttons inside one panel 2º I do the usual operations 3º I delete all the widgets inside the panel but not the panel itself. For a panel called "panel" do " -- its necessary to delete the old elements in the panel windowChildren pp >>= mapM objectDelete " 4º I create the new widgets (as children widgets of the panel "panel") 5º and use them as if they were the first ones Best Miguel Vilaça -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Wolfgang Jeltsch Enviada: quarta-feira, 21 de Março de 2007 15:14 Para: wxhaskell-users@lists.sourceforge.net Assunto: [wxhaskell-users] dynamic user interfaces Hello, I want to replace a group of frames or widgets by another group of frames or widgets respectively. The old frames/widgets shall be deleted and the new ones created at the same time, i.e., without showing the intermediate state in the user interface. How do I achieve this in wxHaskell? Best wishes, Wolfgang - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] Stop do not stop; not multi-threaded?
Hi, After losts of surfing in Google and in wxHaskell Haddock documentation I find out this possible solution that works fine for my case wxcAppYield (http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesMZ.html#v %3AwxcAppYield ) or its variant wxcAppSafeYield (http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesMZ.html#v %3AwxcAppSafeYield ) It is simple as calling this function before testing if a certain button had been pressed and its call-back had update the state of the application accordingly. Thanks for your help. Best Miguel Vilaça -Mensagem original- De: Eric Y. Kow [mailto:[EMAIL PROTECTED] Enviada: domingo, 18 de Fevereiro de 2007 20:58 Para: José Miguel Vilaça Cc: wxHaskell mailing list Assunto: Re: [wxhaskell-users] Stop do not stop; not multi-threaded? Hi, On Mon, Feb 05, 2007 at 16:17:41 -, José Miguel Vilaça wrote: > In theory this seems the solution but when I tested it I find out that it > doesnt. The very long computation gets the attention of the processor and > blocks the graphical interface; clicking the Stop button dont fire the > actions. Does calling wxcAppSafeYield in your long computation (look in the index of the API) help? I don't actually know the answer, just making some guesses. You might want to look into what Dazzle/XTC do, otherwise. And if it does help, maybe you could write something up on the Haskell wiki so that other programmers won't have to suffer! Best, -- Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon français. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
[wxhaskell-users] Stop do not stop; not multi-threaded?
Hi Im running a program with a graphical interface in wxHaskell. My program have one button that starts a sometimes very long computation that even could get cyclic in some cases. I created a Stop button that when pressed changes the State of the application (type State = Var MyRecordType from http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Types.html#t%3AVar ). Then my very long computation, before calling the recursive call, checks if the State is saying to continue or stop. In theory this seems the solution but when I tested it I find out that it doesnt. The very long computation gets the attention of the processor and blocks the graphical interface; clicking the Stop button dont fire the actions. Im not sure but is this running sequencially? Which ways have I to overcome this block? Best Miguel - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users