Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Some problem with a test plug in

  1. #1
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26

    Question Some problem with a test plug in

    Hi everybody!
    I'm making some tests to include a plug in done by myself in OM.
    It is very simple, just a button to play a system beep. Just to understand better the architecture of the Class.
    Here's what happen:
    when I try to assign a plug in to a button of the main menu, my plug in does not appear in the list. But as soon as I click whatever item in the list, the "beep" button of my plug in appears on the panel, and it works fine. But after this when i click "back" in the bottom right corner I'm no more able to go back to main panel. The interface just become black and the only thing which remains visible is my button, still working.

    I compiled the DLL using VS c# XP 2005, I named it "test_OpenMobile_00" as well as the namespace in the code, and I put it in the /plugin directory. I've also tried to call the namespace as "OpenMobile" as suggested in the on-line guide, but the result is the same.

    I'm using OM 0.8 (downloaded 3 days ago) on a Acer laptop with Win XP sp3.
    I attach here the code and the DLL, I appreciate if somebody can help me.

    Thanks!
    Attached Files Attached Files

  2. #2
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    345
    Take a look at my thread here:
    some more ideas/issues

    About halfway through there will be a link to a zip file of the sample project. I couldn't get anything to work when trying to start from a new class library either. I downloaded that sample and opened it and when compiled it would work. Don't know what the difference is between that and a new class library with the correct references but it worked. I then just copied the whole project to a new folder, opened the new copied project sample, and renamed all instances of OMPluginSample with what I wanted. It works for me at least .

    I also put my plugins in the skins folder instead of the plugins folder and they appear in the list for the main menu.

  3. #3
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by martin_p View Post
    Hi everybody!
    I'm making some tests to include a plug in done by myself in OM.
    It is very simple, just a button to play a system beep. Just to understand better the architecture of the Class.
    Here's what happen:
    when I try to assign a plug in to a button of the main menu, my plug in does not appear in the list. But as soon as I click whatever item in the list, the "beep" button of my plug in appears on the panel, and it works fine. But after this when i click "back" in the bottom right corner I'm no more able to go back to main panel. The interface just become black and the only thing which remains visible is my button, still working.

    I compiled the DLL using VS c# XP 2005, I named it "test_OpenMobile_00" as well as the namespace in the code, and I put it in the /plugin directory. I've also tried to call the namespace as "OpenMobile" as suggested in the on-line guide, but the result is the same.

    I'm using OM 0.8 (downloaded 3 days ago) on a Acer laptop with Win XP sp3.
    I attach here the code and the DLL, I appreciate if somebody can help me.

    Thanks!
    The code was correct which is why you didn't see any bugs...but you forgot to change one thing.

    Inside the IBasePlugin region of your class you will see a few functions that return info on the plugin, including the displayName and pluginName.... you need to set the plugin name to something other then "MainMenu" (since the main menu doesn't include itself in the list of plugins you can assign to a button). According to the plugin guidelines it should match your DLL name but anything other then "MainMenu" should work.

  4. #4
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    Quote Originally Posted by justchat_1 View Post
    The code was correct which is why you didn't see any bugs...but you forgot to change one thing.

    Inside the IBasePlugin region of your class you will see a few functions that return info on the plugin, including the displayName and pluginName.... you need to set the plugin name to something other then "MainMenu" (since the main menu doesn't include itself in the list of plugins you can assign to a button). According to the plugin guidelines it should match your DLL name but anything other then "MainMenu" should work.
    Many thanks! Now it works perfectly!

  5. #5
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    I'm here again...
    I've tried OMPluginexample found in
    http://openmobile.svn.sourceforge.ne...trunk/Plugins/
    I downloaded the entire project, succeded in compiling it VC#2005 xp, but I don't see it in debug.txt and it doesn't appear in the plug in list.
    I'm using OM 0.8 downloaded just few days ago and I used reference DLLs from the program folder.
    Borte is already trying to help me but also other ideas are welcome, ofcourse... thanks!

    I'm starting to learn c# and .NET and programming in general, so I'm a newbie, but with big will to learn and to help!

  6. #6
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by martin_p View Post
    I'm here again...
    I've tried OMPluginexample found in
    http://openmobile.svn.sourceforge.ne...trunk/Plugins/
    I downloaded the entire project, succeded in compiling it VC#2005 xp, but I don't see it in debug.txt and it doesn't appear in the plug in list.
    I'm using OM 0.8 downloaded just few days ago and I used reference DLLs from the program folder.
    Borte is already trying to help me but also other ideas are welcome, ofcourse... thanks!

    I'm starting to learn c# and .NET and programming in general, so I'm a newbie, but with big will to learn and to help!
    Quote Originally Posted by martin_p View Post
    Many thanks! Now it works perfectly!
    I'm confused....what works and what doesn't?

  7. #7
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    Quote Originally Posted by justchat_1 View Post
    I'm confused....what works and what doesn't?
    Sorry for being not clear:
    the plug-in made by myself now works after applying your suggestion.
    That's OK.

    Then I tried to run the example plug in mentioned in the trunk here above

    http://openmobile.svn.sourceforge.ne...trunk/Plugins/

    I compiled it successfully but then it happen what i described above.

    I cannot understand what's wrong. In the debug.txt there is no trace of the sample plug in name.

  8. #8
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Can you try with the attached DLL file instad of your compiled file?
    This file is compiled against OM 0.8.
    Attached Files Attached Files
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  9. #9
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    Quote Originally Posted by Borte View Post
    Can you try with the attached DLL file instad of your compiled file?
    This file is compiled against OM 0.8.
    Just overwrote in the plug in folder and it works!
    So the problem has to be in my compiler. Which compiler/settings did you use?

  10. #10
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Quote Originally Posted by martin_p View Post
    Just overwrote in the plug in folder and it works!
    So the problem has to be in my compiler. Which compiler/settings did you use?
    Yes the problem has to be with your compiler/setup.
    I'm using VS 2008 Pro
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

Page 1 of 2 12 LastLast

Similar Threads

  1. 07 Chrysler 300 Limited - In Dash PC
    By BCasey in forum Worklogs
    Replies: 60
    Last Post: 07-24-2012, 09:27 AM
  2. Sheeva Plug
    By optikalefx in forum Mp3Car Blog Talk
    Replies: 19
    Last Post: 04-23-2010, 01:01 PM
  3. Replies: 2
    Last Post: 03-31-2009, 11:43 AM
  4. BU-303 problem (software related)
    By blazinlow in forum GPS
    Replies: 7
    Last Post: 02-14-2005, 07:59 AM
  5. How to test a Sproggy 2.7
    By dug1967 in forum Power Supplies
    Replies: 2
    Last Post: 01-26-2004, 05:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •