CVS compile issues

2000-10-22 Thread Chris Kuklewicz
I was returning to the freeamp source code, and I have updated the musicbrainz library from cvs, but I can't get current freeamp cvs to compile. The error: c++ -I. -I. -I./config -DUNIX_LIBDIR=\"/opt/freeamp/lib\" -Dlinux -I. -I./lib/gdbm -I./base/include -I./config -I./io/include

Re: More searching musings...

2000-10-05 Thread Chris Kuklewicz
Now all this assumes you want to start each new search at the top of the playlist. If you want to start it form the currently (or most recently played) song, then you could have a one function API: "Go to first song after m_lastindex that matches the pattern/type/casematters and

Re: More searching musings...

2000-10-04 Thread Chris Kuklewicz
On Wed, Oct 04, 2000 at 02:40:10PM -0500, David A. Walker wrote: After pondering the searching issue some more, I came up with a function prototype that will (hopefully) address everyone's needs: int FindSong(char *pattern, int type, int casematters) And the returned int is the index of the

Re: more ?? about strings and memory

2000-10-03 Thread Chris Kuklewicz
I have been working on other features, but I would guess that IF strings are COW then when I replaced the strings in metadata with char * in HashStore, THEN strings NOT in metadata could no longer refer to Metadata and had to start making a private copy of the data. For instance the

Re: Ways to reduce memory

2000-10-03 Thread Chris Kuklewicz
On Tue, Oct 03, 2000 at 08:57:46AM -0700, Mark B. Elrod wrote: 1) As I have said before make plugins load on demand rather than all at once on startup Absolutely. And unload if we can, for instance the themes 2) Ref count and share PlayListItems between music catalog and playlist

Unexpected error handling in HttpInput::Open

2000-10-03 Thread Chris Kuklewicz
When looking at an old playlist, with an old bad http entry, the words "timed out" were sent to the terminal, and a window popped up reporting the error, then freeamp exited. The only "timed out" string in the code is in HttpInput::Open and this is the problem (from my Doxygen pages): In

Patch to add menu option in music browser

2000-10-03 Thread Chris Kuklewicz
Would someone with win32 building add this option to that option menu as well? Index: base/include/playlist.h === RCS file: /src/repository/freeamp/base/include/playlist.h,v retrieving revision 1.62 diff -u -r1.62 playlist.h ---

Re: Freeamp html by Doxygen 1.2.2

2000-09-29 Thread Chris Kuklewicz
On Thu, Sep 28, 2000 at 10:36:04PM -0700, [EMAIL PROTECTED] wrote: On 29 Sep, Chris Kuklewicz wrote: This is hot off the presses, and on my personal machine: http://kuklewicz.mit.edu/freeamp/ [ It takes as long a full compile to generate the html docs ] To really appreciate

Re: What *is* the GUID

2000-09-28 Thread Chris Kuklewicz
On Thu, Sep 28, 2000 at 03:36:47PM -0400, Sean Ward wrote: The GUID-url map is because the metadatabase is keyed off URL. When you want to retrieve the metadata, or at least the filename of a given song, given the song GUID, you use that map to get the filename. The GUID is unique, in that

Re: URL of patch for HashStore

2000-09-28 Thread Chris Kuklewicz
On Thu, Sep 28, 2000 at 04:42:07PM -0400, Isaac Richards wrote: Okay, I've checked this stuff out.. Few helpful tips =) - When generating a patch against CVS, please remember to update your local copy. Guilty. Very guilty. I knowingly and cowardly and deliberately violated best

Re: URL of patch for HashStore

2000-09-28 Thread Chris Kuklewicz
On Thu, Sep 28, 2000 at 04:04:54PM -0700, Mark B. Elrod wrote: so i did some reading up on stl strings and it appears they are copy on write. I learn something new every day...usually 7 days after it would have been most useful to learn it. i do not know if this is only for instances where

Freeamp html by Doxygen 1.2.2

2000-09-28 Thread Chris Kuklewicz
The cvsweb is nice, since it is always up to date. (It would be nicer if template brackets were not stripped as bad html) But to help dig through the multitude of code, I built the latest Doxygen and had it try and index and diagram (it makes pictures!) the souce tree. The multi-platform code

Re: Request for testing.

2000-09-27 Thread Chris Kuklewicz
On Wed, Sep 27, 2000 at 11:28:32PM +0300, Valters Vingolds wrote: Hello Chris, Wednesday, September 27, 2000, 17:47:04, you wrote: CK My changes to Metadata to use the HashStore for string storage CK are far enough along to start thinking about getting someone else CK to help test it.

URL of patch for HashStore

2000-09-27 Thread Chris Kuklewicz
The patches can be downloaded from my MIT AFS account : http://web.mit.edu/chrisk/www/ http://web.mit.edu/chrisk/www/freeamp-hashstore-1.cvs.patch.gz http://web.mit.edu/chrisk/www/freeamp-hashstore-1.beta9.patch.gz Or my full tarball (from my personal machine, more space) :

Re: Implementing Better String Storage

2000-09-26 Thread Chris Kuklewicz
[ Is the #freeamp hidden? It was not on the list, but I could join it... ] Theme for this whole thread of discussion: [chrisk@kuklewicz ~/www]$ fortune Nothing endures but change. -- Heraclitus An update on my progress, Yesterday I replaced how metadata is stored internally

Re: Implementing Better String Storage

2000-09-26 Thread Chris Kuklewicz
reeamp-mine is 61 MB. The nirvana of g++ 3.0 is still elusive. -- Chris Kuklewicz ___ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev

Re: Is support for searching a good idea?

2000-09-26 Thread Chris Kuklewicz
, but when --refcount they stay in HMap). Freeamp is playing right now...But opening the music browser causes a segfault. Ah..found the cause...compiling... Isaac On 27-Sep-2000 Chris Kuklewicz wrote: First: WARNING the function Error MusicCatalog::AddSong(const char *url) says &q

Re: Title scrolling

2000-09-26 Thread Chris Kuklewicz
On Tue, Sep 26, 2000 at 09:18:40PM -0700, gunnm wrote: I have the current stable version of freeamp, 2.0.8, and I think the program rules! No really, it is way better than winamp, I am very impressed. I think you need to improve your "marketing" though, since I just heard about it recently

More String debugging

2000-09-26 Thread Chris Kuklewicz
On Wed, Sep 27, 2000 at 12:22:06AM -0400, Chris Kuklewicz wrote: Freeamp is playing right now...But opening the music browser causes a segfault. Ah..found the cause...compiling... Ah..the music plays, as before. Ah...now the music browser comes up without segfaulting. The tree looks good

Re: Implementing Better String Storage

2000-09-25 Thread Chris Kuklewicz
On Mon, Sep 25, 2000 at 01:30:32AM -0400, Isaac Richards wrote: On 25-Sep-2000 Chris Kuklewicz wrote: What is the difference between a .o and a .lo object? Nothing, really. The .lo is just an extra extension so that I can compile the few object files that are shared in the main

Re: Column selection?

2000-09-24 Thread Chris Kuklewicz
On Sun, Sep 24, 2000 at 01:19:05PM +0100, Steve Kemp wrote: On Sat, 23 Sep 2000 [EMAIL PROTECTED] wrote: Once again, its time for a freeamp release. We're now up to Beta 9 and the number of reported bugs is seriously dwindling. We don't have many bugs left to go before we call this 2.1

Re: char* Freestore proposal

2000-09-24 Thread Chris Kuklewicz
On Sat, Sep 23, 2000 at 10:48:25AM -0700, [EMAIL PROTECTED] wrote: On 22 Sep, Chris Kuklewicz wrote: Have a hash_setchar* which holds new refcount 1 strings (and thus has no int overhead), and a hash_mapchar*, unsigned int which holds any refcount string. A duplicate has to be searched

Re: Column selection?

2000-09-24 Thread Chris Kuklewicz
On Sun, Sep 24, 2000 at 10:27:14PM +0100, Steve Kemp wrote: On Sun, 24 Sep 2000, Chris Kuklewicz wrote: What is this column selection behavior? If it sounds useful enough, I might enable it on linux. Basically it allows the selection of the columns which are displayed

Implementing Better String Storage

2000-09-24 Thread Chris Kuklewicz
First: I have written/compiled charstore.h and charstore.cpp which implement the API for storage of reference counted char* string. The overall idea is to reduce storage size even though operations may take longer. There is an abstract interface and two actual classes: AbstractStore which

Re: Implementing Better String Storage

2000-09-24 Thread Chris Kuklewicz
On Sun, Sep 24, 2000 at 07:18:12PM -0400, Isaac Richards wrote: On 24-Sep-2000 Chris Kuklewicz wrote: Also, what is FormatExtension? The extension of the file associated w/ the metadata -- I wasn't aware anything used this. So..there are current lots of copies of the string &quo

Re: Implementing Better String Storage

2000-09-24 Thread Chris Kuklewicz
On Sun, Sep 24, 2000 at 06:31:05PM -0400, Chris Kuklewicz wrote: First: I have written/compiled charstore.h and charstore.cpp which implement the API for storage of reference counted char* string. The overall idea is to reduce storage size even though operations may take longer. I have

Re: char* Freestore proposal

2000-09-23 Thread Chris Kuklewicz
On Sat, Sep 23, 2000 at 10:48:25AM -0700, [EMAIL PROTECTED] wrote: On 22 Sep, Chris Kuklewicz wrote: Have a hash_setchar* which holds new refcount 1 strings (and thus has no int overhead), and a hash_mapchar*, unsigned int which holds any refcount string. A duplicate has to be searched

SEGFAULT in StreamTimer

2000-09-22 Thread Chris Kuklewicz
As a hunter stalks his prey, drawing ever nearer, I have managed to located a segfault. The StreamTimer is called every 30 seconds, and after several times being called it creates a segfault. 1) Start freeamp 2) Stop the first song which has started playing 3) Open MyMusic browser 4) Wait for a

Evil in Http.cpp?

2000-09-21 Thread Chris Kuklewicz
Oh this is just evil. Run freeamp, Open MyMusic, Click on triangle to expand streams. Wait for 1-3 sec. Segfault. setting print statements and compiling with -O0 and attaching to a running freeamp with gdb helped locate the segfault. even looking at m_buffer (which was not null) caused a

Re: Evil in Http.cpp? HELP!

2000-09-21 Thread Chris Kuklewicz
I need help diagnosing this segfault. Because I have failed. It is clockwork reproducible. Does anyone else (in unix / linux) have the same segfault after opening the streams tree in the music browser? I think something is compiling / linking / loading wrong. I notice that when I touch

Re: Evil in Http.cpp? HELP!

2000-09-21 Thread Chris Kuklewicz
On Thu, Sep 21, 2000 at 11:41:19AM -0700, [EMAIL PROTECTED] wrote: On 21 Sep, Isaac Richards wrote: Only problem is that namespaces don't work with current versions of g++. Yea. They don't work at all? Where can I find some details on this? Wellit depends on the definition of

StreamTimer

2000-09-21 Thread Chris Kuklewicz
Once the stream part of the music browser is opened, it downloads and parses the xml file every 30 seconds. Doesn't it just need to hit it once? Also, everytime it reloads, the tree is collapsed, which the user is not expecting. ___ [EMAIL PROTECTED]

Segfaults. Search capability. Memory footprint.

2000-09-19 Thread Chris Kuklewicz
was about 8MB. These are rough numbers, but the difference is large enough to prompt me to ask on the mailing list. Any comments on how possible or desirable a smaller size would be? -- Chris Kuklewicz ___ [EMAIL PROTECTED] http://www.freeamp.org/mailma

Re: Segfaults. Search capability. Memory footprint.

2000-09-19 Thread Chris Kuklewicz
Open the music browser, play a few tunes, then select each Theme and return to the Freeamp theme. The theme memory is NOT released: PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND 21310 ckuklewi 0 0 41260 38M 3528 S 0 0.0 50.4 0:05 freeamp 21311

Problems with ./configure?

2000-09-19 Thread Chris Kuklewicz
While I wait for musicbrainz compile, I will ask about a few peculiar problems I saw last night. I did a make clean, and ./configure again, but this time I explicitly set --enable-esd. But it did not enable esound.pmo in Makefile-plugins. Leaving out --enable-esd fixed it. At the moment, I am

Re: Gdb

2000-09-19 Thread Chris Kuklewicz
On Wed, Sep 20, 2000 at 01:24:49AM -0400, Isaac Richards wrote: see configure --help. basically, there's no --enable-esd, just --disable-esd. configure's silly and thinks they're interchangeable. I see. At the moment, I am preemptively adding code to check all use of pointers in the

IMPORTANT: concurrency problem identified (?)

2000-09-15 Thread Chris Kuklewicz
On Fri, Sep 15, 2000 at 01:42:03PM -0400, Isaac Richards wrote: On 14-Sep-2000 Chris Kuklewicz wrote: Ok...The browsermenu.cpp code for delete_sel had a small mistake. It used a forward iterator on the p-mbSelection vector of items, which were being deleted as it worked (apparantly

Cosmetic Patch for gtkmusicbrowser.cpp

2000-09-15 Thread Chris Kuklewicz
It looks like a gtk+ bug, but when the pane is turned via the view menu in the method void GTKMusicBrowser::ExpandCollapseEvent(void) and the vertical scroll bar was visible, then the vertical scroll bar is still drawn, but it now overlaps the left side of the playlist. Like I said, this looks

Re: Another patch for a unix segfault.

2000-09-13 Thread Chris Kuklewicz
Oooops... I had not noticed the gpg key expiring...sorry. PGP signature

gtkmessagedialog keyboard accelerators

2000-09-11 Thread Chris Kuklewicz
ts the focus instead (untested). The segfaulting will have to wait until later. (I expect to have to learn a few data structures to follow that one). Pop Quiz: Anyone have an indent mode already setup for freeamp in Emacs? -- Chris Kuklewicz Index: ui/musicbrowser/unix/src/

First segfault patch

2000-09-10 Thread Chris Kuklewicz
with a null m_cdTimer, and StopTimer would dereference it and die. A simple patch is attached. Hmmm...freeamp is not leaving behind a core fileany ideas on that? -- Chris Kuklewicz Index: base/src/timer.cpp === RCS file: /src