View Single Post
SPARTAN563's Avatar
Posts: 92 | Thanked: 92 times | Joined on May 2011 @ Stellenbosch, South Africa
#35
Hi again, yeah I am (well, not from but studying there).

That seems very, very weird. I have noticed that the N900 does tend to block quite badly on IO ops but I didn't have that issue with my app (it was loading records from a CSV file into a database), then again that was all C++/Qt so it actually did what it said on the tin

What version of Python are you using to develop in? IIRC the N900 has 2.5.4 on it which may (or may not) have a bug in its thread handling (I have no idea, just a theory).

That being said, if you are using DBUS to do all the work, then why not run a background process for handling all your work and then another for the actual UI? Would also allow you to have push notifications when the app isn't running. That would also make the "multithreading" side a bit easier since your kernel could then fully take control of that for you and all you would need to worry about is making sure that there isn't any loop to keep that thread active. Speaking of which, are you calling a Sleep() function in your event checker loop? (I assume you are checking through a list to see if there are any events that need to be handled and then handling them, repeating until you need to exit sort of thing?)

If you'd like I would be more than happy to look at the code for you and help you debug it (I am a bit bored of some of my current projects and could do with a change of scenery), would also love to help out testing a beta version (or alpha even, provided it doesn't try to eat my sister... :P)

RE:PS) Studying? What is that :P (First year engineering, so really not all that hard). Yeah, have a friend studying a PPE up there right now, and a cousin who is doing engineering IIRC.