473,396 Members | 2,121 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,396 software developers and data experts.

need traceback from "has encountered an error and must close"

Hello All,
I am new to these forums and reasonably new to Visual Basic.net.
I have been converting a couple of visual basic 6 programs to VB.NET.
The programs began failing under windows Vista, so I used the facilities
of Visual Studio 2005 to convert them to .NET and then cleaned up the
errors. The applications now use both Flexgrid and the printing compatablity
library.

The applications run great under Vista (where they were compiled) and XP.
Windows 2000 is somewhat more problematic. On some machines they
work and others they get the dreaded "has encountered and error and must
close message". The windows 2000 machines have both .net 1.1 and .net 2.0
loaded and all windows update maintenance applied. The error report shows
that an "invalid operation" occured and lists the modules loaded.

If I could get a resonable traceback, maybe I could see what is missing
on the troubled machines. Either that or change my code to avoid the
problem.

Is there a way to get more information out of the error report? A traceback
to
where it was in my program would be nice.

Thank you for any advice you can offer.
--
Robert Styma
Principal Engineer (DMTS)
Alcatel-Lucent
Mar 17 '08 #1
4 2509
The least you can do is to set a Try catch block around the failing code
something as

\\\
Try
here is my failing code
Catch ex as exception
debug.writeLine ex.ToString
end try
///

The error will then be showed in your output window.

As a hint, try to get as soon to replace your msflexgrid by a datagridview,
as the msflexgrid is only giving trouble in Net. (It is not in the offical
VB namespace of Net but in the so called compatible namespace).

Cor
"Robert Styma" <ro***********@newsgroup.nospamschreef in bericht
news:59**********************************@microsof t.com...
Hello All,
I am new to these forums and reasonably new to Visual Basic.net.
I have been converting a couple of visual basic 6 programs to VB.NET.
The programs began failing under windows Vista, so I used the facilities
of Visual Studio 2005 to convert them to .NET and then cleaned up the
errors. The applications now use both Flexgrid and the printing
compatablity
library.

The applications run great under Vista (where they were compiled) and XP.
Windows 2000 is somewhat more problematic. On some machines they
work and others they get the dreaded "has encountered and error and must
close message". The windows 2000 machines have both .net 1.1 and .net 2.0
loaded and all windows update maintenance applied. The error report
shows
that an "invalid operation" occured and lists the modules loaded.

If I could get a resonable traceback, maybe I could see what is missing
on the troubled machines. Either that or change my code to avoid the
problem.

Is there a way to get more information out of the error report? A
traceback
to
where it was in my program would be nice.

Thank you for any advice you can offer.
--
Robert Styma
Principal Engineer (DMTS)
Alcatel-Lucent
Mar 18 '08 #2
Hi Cor,

Thank you. However, it seems that I can not find the FlexGrid control in
Microsoft.VisualBasic.Compatibility.VB6 namespace:
http://msdn2.microsoft.com/en-us/lib....compatibility
.vb6.aspx

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Mar 20 '08 #3
Oh, no one loses in technical discussion :-). Also thank you for your great
contribution in the MSDN newsgroup.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 21 '08 #4
Hi Robert,

Thanks for your confirmation. Glad to know that you finally got it work. It
is cool that the performance also boosts.

If you need further help, please feel free to post, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 2 '08 #5

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

Similar topics

5
by: DraguVaso | last post by:
Hi, I tried to deploy an application written in VB.NET 2005, with the Release Candidate. Everything works fine on my pc which has the Visual Studio installed, but when I install the .NET...
1
by: pw | last post by:
Someone was using our A97 product earlier in the day. He exited it, and now can't open the application. He is all of a sudden getting "MSAccess.exe has encountered an error and needs to close". ...
0
by: rokuingh | last post by:
ok, so i've been working on this one for quite a while, and the code is very big so i'm just going to give the relevant parts. this is a program that builds polymers (chemical structures of repeated...
0
by: serge | last post by:
I have 2 SQL Enterprise Editions running SP2 and same collation. When i try to start database mirroring I get the following error message: "The remote copy of database "ABC" has not been...
1
by: jyoti202 | last post by:
Hi, Need help for this as i have been looking for it but could not get any results. We are using java as front end and DB2 as backend, i m getting the exception while executing a particular...
0
by: Ron | last post by:
Hey Guys, I have an online system which use Excel 2003 to generate a report. the system has been developed on .NET 1.1 platform and the operating system are either windows XP or windows 2003. ...
0
by: John A. Bailo | last post by:
I just got a new server built by my network group with Windows 2003. I updated a c# console app that was running under 2000/.NET 1.1 to .NET 2.0 When running it on the new machine it runs to...
1
by: imtiyazali4all | last post by:
Hi, I have installed Apache 2.2.15 and it was tested successful and working fine. As a next step I installed php-5.3.2-Win32-VC6-x86 on Windows XP SP3.Now when I restart the Apache server I am...
1
natie
by: natie | last post by:
I have the following code which is a method that displays the content of a file with the name "File" public void DisplayAll()throws IOException { try {DataInputStream F =...
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: 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
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.