473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

The object is currently in use elsewhere

Building and running a VB or C# graphics application within VisStudio is fine.
Running the .exe outside VisStudio on the same machine is fine.
But trying to run the .exe on another machine produces this error.

Anyone have any clues?
Jul 21 '05 #1
4 1882
any idea what object it is talking about? Do you have try-catch blocks that
identify the location in the code, or which log themselves, so that you can
figure out where the error is occuring?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
Building and running a VB or C# graphics application within VisStudio is
fine.
Running the .exe outside VisStudio on the same machine is fine.
But trying to run the .exe on another machine produces this error.

Anyone have any clues?

Jul 21 '05 #2
Not really and I don't have any try-catch blocks.
I have since discovered the following though:

When we install our software on a development machine, we add some DLL's
into the GAC. If I add the same DLL's into the GAC on the machine I am
trying to run the app. on (it happens to be running XP-Pro and has .NET
installed), all is now OK.
So, what do I do on machines that don't have .NET or the FrameworkSDK
installed?

Kevin

"Nick Malik [Microsoft]" wrote:
any idea what object it is talking about? Do you have try-catch blocks that
identify the location in the code, or which log themselves, so that you can
figure out where the error is occuring?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
Building and running a VB or C# graphics application within VisStudio is
fine.
Running the .exe outside VisStudio on the same machine is fine.
But trying to run the .exe on another machine produces this error.

Anyone have any clues?


Jul 21 '05 #3
If your app requires a dll, it has to be on the target machine. You can
make a setup kit for your app that will install the dll for you. It often
doesn't need to be in the GAC. (depends on the app... most apps don't need
the dlls to be in the GAC).

You will ALWAYS require the .Net framework. You shouldn't need the SDK.

Oh, and use try - catch blocks.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Not really and I don't have any try-catch blocks.
I have since discovered the following though:

When we install our software on a development machine, we add some DLL's
into the GAC. If I add the same DLL's into the GAC on the machine I am
trying to run the app. on (it happens to be running XP-Pro and has .NET
installed), all is now OK.
So, what do I do on machines that don't have .NET or the FrameworkSDK
installed?

Kevin

"Nick Malik [Microsoft]" wrote:
any idea what object it is talking about? Do you have try-catch blocks
that
identify the location in the code, or which log themselves, so that you
can
figure out where the error is occuring?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
> Building and running a VB or C# graphics application within VisStudio
> is
> fine.
> Running the .exe outside VisStudio on the same machine is fine.
> But trying to run the .exe on another machine produces this error.
>
> Anyone have any clues?


Jul 21 '05 #4
Thanks for your help Nick.
I'll look into making a setup kit that can install the DLL's, or
alternatively look into changing our app so that the DLL's don't have to be
GAC'ed. Any hints or links to reading material on that?

Kevin

"Nick Malik [Microsoft]" wrote:
If your app requires a dll, it has to be on the target machine. You can
make a setup kit for your app that will install the dll for you. It often
doesn't need to be in the GAC. (depends on the app... most apps don't need
the dlls to be in the GAC).

You will ALWAYS require the .Net framework. You shouldn't need the SDK.

Oh, and use try - catch blocks.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Not really and I don't have any try-catch blocks.
I have since discovered the following though:

When we install our software on a development machine, we add some DLL's
into the GAC. If I add the same DLL's into the GAC on the machine I am
trying to run the app. on (it happens to be running XP-Pro and has .NET
installed), all is now OK.
So, what do I do on machines that don't have .NET or the FrameworkSDK
installed?

Kevin

"Nick Malik [Microsoft]" wrote:
any idea what object it is talking about? Do you have try-catch blocks
that
identify the location in the code, or which log themselves, so that you
can
figure out where the error is occuring?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"KevinBradly" <Ke*********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
> Building and running a VB or C# graphics application within VisStudio
> is
> fine.
> Running the .exe outside VisStudio on the same machine is fine.
> But trying to run the .exe on another machine produces this error.
>
> Anyone have any clues?


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: talljames | last post by:
Has anyone come across this exception before when dealing with C# graphics? Have come across some answers that point to the accelleration control under the screen's...
4
by: 6tc1 | last post by:
Hi all, I have just finished debugging a windows application and have solved the problem - however, I want to be sure that I understand the problem before I move on. Before I detail the problem,...
0
by: Sam Barham | last post by:
I have a ListView control, for which I have overwritten the WndProc method to gain access to the WM_PAINT message and generate my own OnPaint and OnPaintBackground messages, in order to colour the...
1
by: Hadar | last post by:
Hi, I'm getting "object is currently in use elsewhere" when I use System.Drawing.Graphics.MesureString. This is what I do: My controls use a utility class the helps it to mesure strings. To...
1
by: kCura | last post by:
First off, I'm sorry if this isn't the write thread to post this message but I couldn't find one dedicated to System.Drawing. I'm developing an intranet application in VB.NET that uses a Hosted...
4
by: Jos Lavrijsen | last post by:
When i try to re-use brushes or pens over multiple threads, i often get an InvalidOperationException with the message 'object is currently in use elsewhere'. I also tried this by re-using fonts...
4
by: JJ | last post by:
When I run my form prog, if I maximise, then minimise (i..i. force the GUI to redraw) I get the following error: "The object is currently in use elsewhere" At this line: ...
4
by: Mau Kae Horng | last post by:
Hello, I have a C# Windows Forms application for machine. Due to some unknown reasons, the application face problems with unexpected exceptions happening, resulting in two red lines forming a...
4
by: =?Utf-8?B?Qm9uaQ==?= | last post by:
Hi, I got this problem. I'm implementing a pluggable winform program. My plugins are usercontrol and I load them in my program through a interface. Now if I close my application an error occurs:...
0
by: para15000 | last post by:
Hello I have a C# desktop application in which one thread that I create continously gets an image from a source(it's a digital camera actually) and puts it on a panel(panel.Image = img) in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.