Search found 26 matches

by darchangel
Thu Jun 21, 2007 3:38 pm
Forum: Bug Reports (mmw)
Topic: COM server won't let go of reference
Replies: 9
Views: 2807

The longer I try to make sense of it the less sense it makes. If I create a new app, create a reference to MM and set the reference to null when I shutdown, I get this COM warning. If I add a button to the form, the COM warning goes away. If I reference any embedded resource, I get the COM warning. ...
by darchangel
Thu Jun 21, 2007 10:29 am
Forum: MediaMonkey 4 Addons developer forum
Topic: Getting active SDBApplication COM object
Replies: 16
Views: 5602

@jimbo11883: Whatever you do/find with regard to this matter, PLEASE continue to report on it here. The MM+.NET knowledge here is thin. Aside from you, there's me, Steegy, and 1 or 2 other forum users who post about these issues. And some issues are still as of yet unsolved. If you figure out how to...
by darchangel
Thu Jun 21, 2007 10:21 am
Forum: Bug Reports (mmw)
Topic: COM server won't let go of reference
Replies: 9
Views: 2807

Steegy wrote:is it really necessary that MediaMonkey shows the "COM Server Warning"? Can't it just close?
I definitely like that idea best. However, barring that, there still needs to be some way to code your way out of this mess.
by darchangel
Thu Jun 21, 2007 7:49 am
Forum: Bug Reports (mmw)
Topic: COM server won't let go of reference
Replies: 9
Views: 2807

COM server won't let go of reference

In scripting, when doing this to get a reference to: MediaMonkey SongsDB.SDBApplicationClass SDB = new SongsDB.SDBApplicationClass(); you can never undo it. Regardless of which application is shut down first, MediaMonkey throws a COM Server Warning. There's no way to detach, even after the calling a...
by darchangel
Thu Jun 21, 2007 7:44 am
Forum: MediaMonkey 4 Addons developer forum
Topic: Getting active SDBApplication COM object
Replies: 16
Views: 5602

I don't know how to do this with GetObject but it can be done with CreateObject: external scripts and applications Right now I'm working on a .NET project very similar to yours. If you can figure out how to use a reference to MediaMonkey and not get a COM server warning when everything is shut down,...
by darchangel
Thu Jun 21, 2007 7:33 am
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

Oh yeah, and I also tried launching MM from my app even though I don't want to have to do it this way. With the above code killing my app on exit, I still get the COM server warning regardless of shutdown ordert. I just can't get MM to recognize that I've dropped my reference
by darchangel
Wed Jun 20, 2007 6:45 pm
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

@Steegy: Currently, MM launches my app via a vbs script in Scripts\Auto so when I kill current app, .NET must interpret Current as being MM. How would you suggest doing it? I'd prefer to have MM launch my app if possible.
by darchangel
Wed Jun 20, 2007 4:36 pm
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

And whack-a-mole continues... Now I can do my own version of events, I can call SDBApplicationClass() from my app, and (now thanks to Steegy's Process.Kill() suggestion) I also close it without getting the COM server warning dialog. However, now MediaMonkey cannot perform its own correct shutdown. T...
by darchangel
Tue Jun 19, 2007 4:32 pm
Forum: Need Help with Addons?
Topic: ExternalTools v1.4 [MM2+3+4]
Replies: 112
Views: 154195

In what language is this written? Would you be willing to make the source project available for download? As far as I can tell you are a C# dev'er and not too shabby of one at that. I'd love to look at your code and see how to interface with MM without going out of my skull. [see 'whack-a-mole' comm...
by darchangel
Tue Jun 19, 2007 4:21 pm
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

Thanks for the C# code but I'm not sure how it helps solve the original problem: MM's VBScript still doesn't have a window handle through which it can send event notifications. I've actually built everything without events now. However, if at any point in C# you call new SDBApplicationClass(); then ...
by darchangel
Mon Jun 18, 2007 4:40 pm
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

Great idea. Unfortunately, when I tried this script

Code: Select all

Sub OnStartup
  Dim hWnd
  hWnd = FindWindow("Untitled - Notepad", vbNullString)
End Sub
I got this error

Code: Select all

Error #13 - Microsoft.VBScript runtime error
Type mismatch: 'FindWindow'
File: "C:\PROGRA~1\MEDIAM~1\Scripts\Auto\test.vbs", Line: 3, Column:2
by darchangel
Fri Jun 15, 2007 7:14 am
Forum: Need Help with Addons?
Topic: Events in .NET winforms: more of what works and what doesn't
Replies: 9
Views: 3781

Events in .NET winforms: more of what works and what doesn't

Here are some more attempts at getting a .net winform to receive mm events: WHAT DIDN'T WORK try 1 auto launch script to launch winform and subscribe to events. delegate events to a method in the app problem GetObject doesn't seem to get the currently running version of the winform. error is thrown....
by darchangel
Wed Jun 13, 2007 6:49 pm
Forum: Bug Reports (mmw)
Topic: removing mediamonkey debug
Replies: 1
Views: 1367

removing mediamonkey debug

It wouldn't be a bad idea to warn people that when you installl MediaMonkey, install Debug MediaMonkey, then uninstall Debug MediaMonkey, that it also uninstalls MediaMonkey
by darchangel
Wed Jun 13, 2007 6:14 pm
Forum: Need Help with Addons?
Topic: any .NET developers here?
Replies: 18
Views: 5201

Ouch! I spent some time looking through this forum via google (thank you microsoft for making sure ".net" and "c#" are impossible for any but the most advanced search engines to distinguish.) You've posted a depressing number of posts about all of the problems I've had. You also seem to have tried e...
by darchangel
Wed Jun 13, 2007 7:27 am
Forum: Need Help with Addons?
Topic: any .NET developers here?
Replies: 18
Views: 5201

any .NET developers here?

Does anyone here code in .NET? I'm coming across some weirdness in C# and don't know if I'm finding bugs or if it's due to a deficiency in my coding. In particular, when you're calling "new SDBApplicationClass()", is there anything special you need to do with interop or should it work as is ("as is"...