1. Re: LaunchPad v4.02 now available:Al
- Posted by Al Getz <Xaxo at aol.com> May 01, 2006
- 575 views
Antonio Alessi wrote: > > Al Getz wrote: > > > > Antonio Alessi wrote: > > > > > > > > > Hi Al, > > > > > > there is a problem with the Lauchpad: > > > sometimes it remains loaded into the memory as a running program > > > after closing. > > > > > > Perhaps you know how to create a Menu into a Toolbar (with the win32lib)? > > > In my program it is rejected: > > > > > > RBF = create( ReBar, "", SeqView,40,0,20,20,0) -- , Band[1] = > > > create( > > > ReBarBand, "", RBA,0,0, 58,0, RBS_FIXEDORDER) > > > RBFbar = createEx( FlatToolBar, "", RBF, 40,0,0, 20,20,0) > > > BandF = create( ReBarBand, "", RBF,0,0, 10, 0, 0) > > > addToBand( RBFbar, BandF) > > > BandM = create( Menu, "", BandF,0,0, 10, 0, 0) > > > > What version Windows are you using? > > I've tested it now on Win98 and WinXP and have never had that kind > > of problem. > > > > Sorry for the text above; the system sent the message while editing for > it became crazy for some attempts of mine with the menus. I had to reset. > > I use Win2000 Server; the problem may be random, not fix. > I have already seen that more than one time, not intentionally (when > we access the Task Manager we have generally other problems of ours ;) > but if I try to reproduce it does not repeat; so I did not tell anything > before. > > Antonio Hi Antonio, I decided to take a quick look even though i dont have Win2000, and i noticed right away that in LaunchPad 402 AND 400 Ole is being used yet it's not being 'uninitialized'. This could leave part of the 'Launcher' in memory, or make it seem to anyway. The solution (Luckily) is quite simple... Near the beginning of LP40x.exw put the following line: include Ole.ew as OLE This line can come right after the include for the HotTrackButtonB.ew . Then, at the very bottom of the file make this the last line: OLE:Uninitialize() This will kill ole once the program ends, and that should clear up the problem. Thanks very much for letting me know about this, as i havent yet decided how to handle (completely) initializing and un-init of Ole for all the files. In this case it was being init'ed in one file and the problem is i/you/whoever has to remember to put in the uninit'ing call in the main file. This can be a pain to have to remember so im thinking maybe handle Ole on a file by file basis in the future, or stick a Cleanup() routine in Ole.ew . Thanks very much! I hope i can help with one of your programs in the future. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."