"Internal error. Application 'Settings' closed." What is the error?...
How can I see the error?
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
My Nokia?
. EDIT: Stupid me #carryon |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
Can you pastebin the code and how you're compiling it?
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
Compiling with Madde (unfortunatelly, I need to compile against PR1.2 libs and esbox & scratchbox are un-updatable to PR1.2 for me) with "lib_simple" template, and adding this: Quote:
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
OK, took a quick look.
In a Scratchbox with the PR 1.2 SDK installed (dunno what "lib_simple" is, nor how it works), " gcc `pkg-config --cflags hildon-control-panel hildon-1 libosso` -fPIC -c libcallnotify.c && gcc -module -avoid-version -shared -Wl,-soname,libcallnotify.so -o libcallnotify.so libcallnotify.o -lc " created a properly working library. Though, libtool would be a lot better than that. However, it still crashed because fclose () was being called on a NULL pointer (the file didn't exist) so I moved that inside the if statement that checks for this. (As an aside, you'd probably find g_file_get_contents() easier). |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
A few questions: First, any chance you can send me the .so file so I can finally update CallNotify? How did you manage to "catch" the fclose thingy? What is libtool? Thanks again! BTW: did you manage to run this on an N900 or just in scratchbox? because it worked for me in scratchbox as well... but not on the device, |
Re: "Internal error. Application 'Settings' closed." What is the error?...
A bit off topic (or not, not sure :))
I broke my scratchbox install the other day by trying to make a chroot image. Tried to install it about 6 times which all failed till I remembered scratchbox uses a mount point Remove all scratchbox packages installed, rm -rf /scratchbox/*, if you get symlink loops then touch /forcefsck and reboot to fsck /, then redo rm -rf /scratchbox/*. After that reboot again and run the maemo-scrathcbox script and continue from there. Hope that helps |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
http://www.freemoe.org/users/qwerty12/libcallnotify.so Well, for me, I knew what it was trying to open didn't exist and the rest of your code looked legit so I could only assume that fopen had returned NULL :) http://en.wikipedia.org/wiki/GNU_Libtool - I can't really explain it properly, but I guess it's a long and complicated script that makes libraries straight from C files. I have no idea how to invoke it on its own actually :o; I use Autotools in my **** and the macros take care of that for me... Oh, I tested on the device |
Re: "Internal error. Application 'Settings' closed." What is the error?...
MohammadAG - Thanks! I'll try that.
Any idea where can I download Scratchbox for PR1.2 ? This site doesn't give any useful links for download (or I just can't find it...). |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
I think i once saw a way to display to terminal these errors, but I can't seem to find it... EDIT: it crashes in more devices, see this... |
Re: "Internal error. Application 'Settings' closed." What is the error?...
http://wiki.maemo.org/PyMaemo/HildonDesktop
See "Debugging tips" I wonder if there's an DEBUG_OUTPUT way for hildon-control-panel like there is for hildon-status-menu?... |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
Try it now: http://www.freemoe.org/users/qwerty12/libcallnotify.so |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Full instructions with scripts to install the SDK are here http://wiki.maemo.org/Documentation/...l_Installation
Thanks to qwerty12 for bumping this thread, otherwise I wouldn't have seen your post (I would autosubscribe to all posts I reply to, but this forum has a lot of threads that turned into rants) :) |
Re: "Internal error. Application 'Settings' closed." What is the error?...
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
Any idea what's wrong with char pointer?.. |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
Thank you too. Are you sure that the link you provided is for the SDK? Looks like a USB networking thingy... |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
Hence the segmentation fault. |
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
|
Re: "Internal error. Application 'Settings' closed." What is the error?...
Quote:
You allocate the memory yourself using malloc. You need to use free to release it when it's no longer needed or your application will have a memory leak. You allocate the memory on the stack, as in the fix above, and the memory will be deallocated as soon as you leave that specific stack scope/frame. You get a pointer to statically, or otherwise, allocated memory that you should not try to deallocate when you're done with it. This is, from time to time, the most tricky case since you need to either know what to do or read the documentation carefully. |
Re: "Internal error. Application 'Settings' closed." What is the error?...
My bad, someone wanted a USB networking link on the IRC channel and I guess I forgot it overwrote what was in my clipboard :P
Fixed it in the post above. |
All times are GMT. The time now is 07:50. |
vBulletin® Version 3.8.8