Search found 931 matches

by markstuartwalker
Wed Nov 27, 2013 6:33 am
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

OK, I think that I can see that now. I have created a few functions to encapsulate this capability. Please review and confirm. Q1: Do I need Critical sections in my code, I understood the plugins to be single threaded? Q2: ZeroMemory() is not in standard libraries but I think that is of negligible b...
by markstuartwalker
Wed Nov 27, 2013 2:45 am
Forum: Need Help with Addons?
Topic: MediaMonkey iTunes plugin (d_itunes4.dll)
Replies: 1303
Views: 417717

Re: MediaMonkey iTunes plugin (d_itunes4.dll)

I would not recommend adopting 4.1 until it is out of beta. Unfortunately most of my testing IS with the beta so differences can arise. I am still chasing some memory corruption bug which causes random behaviour such as you are reporting. Other people (including myself) seem completely unaffected. I...
by markstuartwalker
Mon Nov 25, 2013 2:27 am
Forum: Need Help with Addons?
Topic: MediaMonkey iTunes plugin (d_itunes4.dll)
Replies: 1303
Views: 417717

Re: MediaMonkey iTunes plugin (d_itunes4.dll)

delete all the playlists in iTunes and let them recreate

Also, are you using MM4 or the beta MM4.1?

Update: I have pulled that release and added a new one this morning. Please download and try again.
by markstuartwalker
Sat Nov 23, 2013 12:48 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

I think that I have pinned down that the root of the memory corruption. I have some cache space which is gutting overrun and it follows this memory usage. The following works but I can't figure out if it is adequately allocating memory that it returns back to MM. Please give me some comments. functi...
by markstuartwalker
Wed Nov 20, 2013 3:26 pm
Forum: Need Help with Addons?
Topic: MediaMonkey iTunes plugin (d_itunes4.dll)
Replies: 1303
Views: 417717

Re: MediaMonkey iTunes plugin (d_itunes4.dll)

New version posted in the usual place. http://www.mediamonkey.com/addons/browse/item/device-plugin-for-itunes/ It will still need to be approved before it becomes visible to the public. This should accommodate playlists with duplicate names. The whole playlist handling function has been re-written s...
by markstuartwalker
Wed Nov 20, 2013 3:18 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

The symptoms don't exhibit for normal users. It only shows when running within the Delphi development environment.

I have decided to publish to get some more feedback.
by markstuartwalker
Tue Nov 19, 2013 2:27 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

Can anyone explain what GIT.GetInterfaceFromGlobal does? if (flags and dnfRemovePlaylist) <>0 then iTunesNotifyFile( DeviceHandle ,nil, FileName, flags) else begin GIT.GetInterfaceFromGlobal( TrackCookie, ISDBSongData, Track); iTunesNotifyFile( DeviceHandle ,Track, FileName, flags); end ; function G...
by markstuartwalker
Tue Nov 19, 2013 2:24 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

Peke wrote:Ok One stupid thing I found pounding my head. Have you tried to update SongsDB_TLB.pas?
Oooooooooooo ...no! But doesn't seem to make any difference.
by markstuartwalker
Mon Nov 18, 2013 4:16 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1672 Playlist identification in NotifyPlaylist
Replies: 2
Views: 1807

1672 Playlist identification in NotifyPlaylist

Is there any way to identify the playlist in MM which is being sync'd to the device but not by using the name? The signature looks like ... procedure DEVICE_NotifyPlaylist( DeviceHandle : integer; M3UFileName, M3UTitle : PWideChar; TrackCount : integer; Tracks : PWideCharArr; M3UPath: PWideChar); st...
by markstuartwalker
Mon Nov 18, 2013 3:49 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

I have completely re-written the HashString function into proper classes to make it properly use count compliant. Still no change - I still get the exceptions on closure. unit HashString; interface uses Classes; type THashStrStruct = class public // PPHashStrStruct = ^PHashStrStruct; // PHashStrStru...
by markstuartwalker
Mon Nov 18, 2013 9:55 am
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

I use the following with StrPCopy if length( filename ) > 254 then filename:=copy(filename,1,254); StrPCopy(rec.filename, filename); This is a bit moot as my filenames are simple numbers '\12345.mp3'. so this will never overrun. Should I be assigning the "flags" parameter for anything? I don't curre...
by markstuartwalker
Mon Nov 18, 2013 4:12 am
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

Well, as expected, the WidetSring->String made no difference except a few compilation oddities. type PFileNameRec = ^TFileNameRec; TFileNameRec = record filename : String; // at least 256 chars wide buffer track_id : integer; track_cookie : cardinal; flags : integer; end; ... filename: String; rec: ...
by markstuartwalker
Thu Nov 14, 2013 5:16 pm
Forum: Need Help with Addons?
Topic: MediaMonkey iTunes plugin (d_itunes4.dll)
Replies: 1303
Views: 417717

Re: MediaMonkey iTunes plugin (d_itunes4.dll)

Just a quick progress note: I have been working on the duplicate folder name mechanism and worked out how to do this. I have a working prototype now. One caveat is that the different playlists must have a different number of tracks so that I can differentiate them. I have one question: does anyone u...
by markstuartwalker
Thu Nov 14, 2013 5:08 pm
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

I use Delphi 2010. When I started this you were on 7 and my code was based on examples from you chaps with WideString throughout, except for the DLL entry points. Should I change WideString to String to make it reference counted? Delphi seems to work like Java with background garbage collection so I...
by markstuartwalker
Thu Nov 14, 2013 9:27 am
Forum: MediaMonkey for Windows 4 Beta Testing
Topic: 1669 System instability
Replies: 19
Views: 6369

Re: 1669 System instability

I found procedure DEVICE_SaveOptions( DeviceID : String); stdcall; procedure DEVICE_SaveOptions( DeviceID : PWideChar); stdcall; TDevice_CanPlay = function( DeviceHandle : integer; const fname: String): boolean; stdcall; function DEVICE_CanPlay( DeviceHandle : integer; fname: WideString): boolean; s...