Hello, Thanks for the suggestion. I tried putting in MsgBox and Bye at various points to try and narrow this down.
The error must be somwehere around the point that I create a TabStrip control. This is the first control that I create on start up. If I exit before creating the control I do not get the problem. But I do if I exit just after creating the control. The code is: '****** 'Tabstrip ' ADDOBJECT _ "cetabstrip.tabstrip.1", _ "Tab1", _ 0, 0, _ output.width, output.height-40 Tab1.tabs.add 1,,"Home" Tab1.tabs.add 2,,"Portfolio" Tab1.tabs.add 3,,"Quote" Tab1.tabs.add 4,,"Calculator" Tab1.tabs.remove 5 '****** Any further tips? Cheers, Mike. --- In nsbasic-ce@yahoogroups.com, "rmrsoft" <a...@...> wrote: > > I see this quite a lot during development. What I think is happening is that > the program is creating an error during execution but this is not being > trapped properly and the 'error report' is left running in the background so > you are not aware of it. When you shut down the program it appears to close > but the error problem actually causes part of it to 'hang' in the background. > Then when you try and run a second time it thinks it is still running and > simply goes into the part that is still running in the background trying to > report the error. > > Sometimes, if you go into the Settings and check on running programs it is > there and can be shut down remotely. Sometimes it is not shown and the only > option is a reboot. > > I haven't found a solution to this other than using BYE and MSGBOX to isolate > which routine is causing the problem. > > Al > > --- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@> wrote: > > > > I'm not sure what could be causing this. > > > > Do you execute a BYE statement when your program ends? > > > > >Hello, > > > > > >I have been developing a small app for myself. I am developing on my > > >Windows Mobile 6.5 HTC Diamond 2 device. > > > > > >I have been having issues where I can run the program once from the > > >Basic Editor (clicking on the GO button). But if I try to run the > > >program a second time, it never initialises the screen correctly. If I > > >exit the Basic Editor and restart, the program then runs fine for the > > >first time only. > > > > > >I do use a Grid control, Sockets, Streams and local files. > > > > > >Maybe I am not cleaning up my program correctly? It does exit correctly, > > >but is there something I need to do to tidy up when I finish? > > > > > >I am using NSBasic/CE 8.0.0 (according to the About box). > > > > > >Any ideas or suggestions where to look? > > > > > >Cheers, > > > > > >Mike. > > > > > > > > > > > > > > >------------------------------------ > > > > > >Yahoo! Groups Links > > > > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to nsb...@googlegroups.com. To unsubscribe from this group, send email to nsb-ce+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en.