473,394 Members | 1,739 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,394 software developers and data experts.

COM issues

Hello:

I have some code that works on top of COM. One is a library provided
by Crystal Reports (Business Objects) and that other is for GroupWise
(Novell).

In the first case, I keep getting errors about COM objects being
disconnected from their context. Essentially, whenever I run the
Crystral Report code in a test project, the test will succeed, but
after the test method ends a COM error shows up. From what I have been
reading, it seems to be related to a different thread trying to access
the COM object. However, unless the Test code is in a different
thread, my code is single-threaded. Any clue about what could cause
the COM object to be "disconnected"?

The second case relates to a COM object that requires the project type
to be a Windows Form application. I tried to write a library to access
the GroupWise application. However, I can only have the GroupWise code
inside a Windows Form application (not a library) or I will get even
more weird errors. Is there a way to force COM objects to work in
different project types than they were intended?

Finally, I have been noticing that the debugger in VS8 has some
interesting features. For one, if you have a loop that loops
indefinitely, in some cases it will raise a message about a potential
deadlock. Other times, if there is a lot of memory usage, another
message will display saying there is a memory leak (which is
incorrect). While these would be useful messages, in general they are
just annoying since they stop my debugger midway. Is there a way to
disable these "warnings"?

Thanks,
Travis

Sep 5 '07 #1
1 1034
Travis, I have seen similar COM errors - a COM object gets disconnected
when the first GUI thread is terminated. In my case the first GUI thread was
a splash screen shown while the application loads. On some machines the COM
object crashed when the splash screen terminated. I had to remove the splash
screen.

Michael

<je**********@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Hello:

I have some code that works on top of COM. One is a library provided
by Crystal Reports (Business Objects) and that other is for GroupWise
(Novell).

In the first case, I keep getting errors about COM objects being
disconnected from their context. Essentially, whenever I run the
Crystral Report code in a test project, the test will succeed, but
after the test method ends a COM error shows up. From what I have been
reading, it seems to be related to a different thread trying to access
the COM object. However, unless the Test code is in a different
thread, my code is single-threaded. Any clue about what could cause
the COM object to be "disconnected"?

The second case relates to a COM object that requires the project type
to be a Windows Form application. I tried to write a library to access
the GroupWise application. However, I can only have the GroupWise code
inside a Windows Form application (not a library) or I will get even
more weird errors. Is there a way to force COM objects to work in
different project types than they were intended?

Finally, I have been noticing that the debugger in VS8 has some
interesting features. For one, if you have a loop that loops
indefinitely, in some cases it will raise a message about a potential
deadlock. Other times, if there is a lot of memory usage, another
message will display saying there is a memory leak (which is
incorrect). While these would be useful messages, in general they are
just annoying since they stop my debugger midway. Is there a way to
disable these "warnings"?

Thanks,
Travis

Sep 6 '07 #2

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

Similar topics

2
by: Tom Loredo | last post by:
Hi folks- I'm about to move from a Solaris 8/SPARC environment to a Dell running RedHat 9. Are there any issues I need to be aware of in bringing my Python code over (mostly scientific...
28
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
5
by: sandy | last post by:
Hi All, I am a newbie to MySQL and Python. At the first place, I would like to know what are the general performance issues (if any) of using MySQL with Python. By performance, I wanted to...
2
by: malcolm | last post by:
Hello, We have a robust (.NET 1.1 c# winforms) client-server application that utilizes many typed DataSets, typed DataTables and typed DataRows. Our application is a series of windows and popup...
1
by: Aliandro | last post by:
Hi Does any one know where I can find information regarding any issues with SQL and IIS being run under windows XP SP2? as I am in the process of programmning in Dot net and neet some way of...
7
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving"...
2
by: G2 | last post by:
Hi We are dealing with significant browser compatibility issues with Netscape 5.x+ browsers and Mac IE. I am sure most web developers have faced similar issues in the past. Can anyone give me their...
1
by: GaryDean | last post by:
We have been developing all of our .net applications on 32 bit windows using 32 bit SQL Server. We are being asked to now deploy to servers running 64bit windows and 64bit SQL Server. Are there...
3
by: eschneider | last post by:
Just some common issues with WS: Using custom objects: When objects change, seems you are always fixing some issue. Update references, which sometimes does not work. Deployment: Weird errors...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.