Jump to content
  • Advertisement
Sign in to follow this  
Mashew

A non-existant existant reference

This topic is 3681 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So, I am making a program for Twitter by using the Twitterizer library. I have the DLL referenced but, when it calls from it, the program crashes and says it can't find it. I checked the debug and release folder, it is in there, it is referenced. (I am using C# by the way.) Here is the code that it crashes on:
using Twitterizer.Framework;

...

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != "" && textBox2.Text != "")
            {
                twit = new Twitter(textBox1.Text, textBox2.Text);
                if (remember == true)
                {
                    user = textBox1.Text;
                    pass = textBox2.Text;
                }
                else
                {
                }
                login(false);
            }
            else
            {
                label3.Text = "User/Pass is empty! :O";
            }
        }

Share this post


Link to post
Share on other sites
Advertisement
Simply referencing the DLL in your project is not enough. When you start the debugger or the release executable you have to make sure the DLL file is located in the same folder as the executable. (Most likely bin/debug while debugging.)

Is that the case?

Share this post


Link to post
Share on other sites
Quote:
Original post by tyfius
Simply referencing the DLL in your project is not enough. When you start the debugger or the release executable you have to make sure the DLL file is located in the same folder as the executable. (Most likely bin/debug while debugging.)

Is that the case?


Yes, it is. I checked. It is quite odd, I have never had this problem with other things I have done. (Even though, that is very few.)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!