Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6622565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:25:22+00:00 2026-05-25T21:25:22+00:00

this wont be easy to explain clearly but here goes… i have something that

  • 0

this wont be easy to explain clearly but here goes…

i have something that works fine in VB but not in C#.

i have 2 classes, each class implements a different interface. each interface exposes an Initialize() function that should get called automatically when the plugin loads. since each class has an Initialize() function, i can watch both functions get called in the log. this works fine in VB.

when i do this same thing in C#, only the Initialize() in the first class gets called. anyone have a clue as to why this might be happening?

vb code:

Public Class class1
    Implements Interface1

    Public Sub Initialize() Implements Interface1.Initialize
        msgbox("initialize from class1")
    End Sub
End Class

Public Class class2
    Implements Interface2

    Public Sub Initialize() Implements Interface2.Initialize
        msgbox("initialize from class2")
    End Sub
End Class

C# code:

public class class1 : interface1
{
    public void Initialize()
    {
        messagebox.show("initialize from class1");
    }
}

public class class2 : interface2
{
    public void Initialize()
    {
        messagebox.show("initialize from class2");
    }
}

as you can see the code is identical in both languages. why does it work in VB and not in C#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:25:22+00:00Added an answer on May 25, 2026 at 9:25 pm

    Thanks everyone for your help! It turns out the problem was in the calling code. Long story short, each plugin has a command ID as part of the interface. In this case both have ID 1000. When the calling code loops through plugins to load, if it sees a duplicate ID it skips that plugin. My problem was that I was loading other plugins at the same time with the same ID. You all helped find a bug in the calling code (which is pretty well-known software) so thank you!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yeah this works in FF and Chrome, but for some reason wont work in
This should be easy, but I'm failing to do this. I have ASPxListBox with
im getting response in json, but this wont parse the json response. what m
I'm sure this is easy. Infact I'm sure I've done this before... I have
I have read some other articles like here and here but unfortunately there are
I have a model that has an attribute that referrers to when this object
Ok, I'm going to try to explain this one as easy as possible! I'm
I got stuck with a problem that looked pretty easy but i cant make
Easy one to explain. Is there any way I can do this: <div id=header
Any idea why this wont print the errors? // Validate the email if (preg_match($regex,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.