473,804 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows 98 problem

Why is my application crashing on a windows 98 machine? It runs fine
on the development machine with xp pro. I installed framework 2, with
dotnetfx.exe, and windows installer 2 on the windows 98 machine. I
read here that dotnetfx does not have all of the framework. could that
be the problem?

Some of the functions work, others do not.
The ones that do not have one thing in common: they make an
asynchronous call to a method in a class library in the same VB
solution.I resesearched this topic in this group
and checked out the methods at msdn which indicates they are
supported on windows 98. What makes things interesting is that I added
two message boxes to see how far the code gets. The app crashes after
the first two message boxes, but before the third, and before reaching
the sub that makes the async call.

Private Sub btnQuickQuoteOK _Click(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles btnQuickQuoteOK .Click
If Trim(txtQuickQu oteSymbol.Text) = "" Then
MsgBox("A symbol is required.") 'this works
Exit Sub
End If
If InStr(txtQuickQ uoteSymbol.Text , ",") 0 Then
MsgBox("One Symbol only") 'this works
Exit Sub
End If
'Me.Cursor = Cursors.WaitCur sor 'commented out to rule this
one out.
MsgBox("calling ClearQuickQuote ") 'added for debugging -
crashes before this point.
ClearQuickQuote ()
MsgBox("calling getquotes") 'added for debugging
GetQuotes(Split (Trim(txtQuickQ uoteSymbol.Text ), ",")) 'makes
asynchronous call
'Me.Cursor = Cursors.Default
End Sub

Private Sub ClearQuickQuote ()
txtLast.Text = ""
txtDayHi.Text = ""
txtDayLo.Text = ""
txtOpen.Text = ""
txtClose.Text = ""

End Sub

Private Sub GetQuotes(ByVal Symbols() As String)
' Create an instance of the test class.
Dim ad As New Async()
' Create the delegate.
Try
Dim caller As New AsyncMethodCall er(AddressOf
ad.GetQuotes)
' Initiate the asynchronous call
Dim result As IAsyncResult = caller.BeginInv oke(Symbols,
AddressOf CallbackMethod, _
caller)
Catch ex As Exception
MsgBox(ex.Messa ge)
End Try
End Sub
' Callback method must have the same signature as the
' AsyncCallback delegate.
Sub CallbackMethod( ByVal ar As IAsyncResult)
Dim returnValue As String = ""
' Retrieve the delegate.
Try
Dim caller As AsyncMethodCall er = CType(ar.AsyncS tate,
AsyncMethodCall er)

' Call EndInvoke to retrieve the results.
returnValue = caller.EndInvok e(ar)
Catch ex As Exception
MsgBox(ex.Messa ge)
End Try

'need to implement a thread-safe way to reference a control on
the form to avoid a
'cross-thread access error.
SetData(returnV alue)

End Sub
Private Sub SetData(ByVal HtmlString As String)
' InvokeRequired required compares the thread ID of the
' calling thread to the thread ID of the creating thread.
' If these threads are different, it returns true.
Try
If Me.WebBrowser1. InvokeRequired Then
Dim d As New SetTextCallback (AddressOf SetData)
Me.Invoke(d, New Object() {HtmlString})
Else
If BusTier.Buslaye r.QuickQuote Then
FillQuickQuote( HtmlString)
Else
Me.WebBrowser1. DocumentText = HtmlString
End If
End If
Catch ex As Exception
Exit Sub
End Try

End Sub

May 11 '07 #1
4 1746
On May 11, 9:54 am, billsahi...@yah oo.com wrote:
supported on windows 98. What makes things interesting is that I added
two message boxes to see how far the code gets. The app crashes after
the first two message boxes, but before the third, and before reaching
the sub that makes the async call.

Private Sub btnQuickQuoteOK _Click(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles btnQuickQuoteOK .Click
If Trim(txtQuickQu oteSymbol.Text) = "" Then
MsgBox("A symbol is required.") 'this works
Exit Sub
End If
If InStr(txtQuickQ uoteSymbol.Text , ",") 0 Then
MsgBox("One Symbol only") 'this works
Exit Sub
End If
'Me.Cursor = Cursors.WaitCur sor 'commented out to rule this
one out.
MsgBox("calling ClearQuickQuote ") 'added for debugging -
crashes before this point.
ClearQuickQuote ()
MsgBox("calling getquotes") 'added for debugging
GetQuotes(Split (Trim(txtQuickQ uoteSymbol.Text ), ",")) 'makes
asynchronous call
'Me.Cursor = Cursors.Default
End Sub
Why don't you enclose the code above in a try catch block and then
post the exception that is being generated. That would help determine
what is going on.

Chris

May 11 '07 #2
Adding the try/catch blocks did not catch the error. The app crashes
with the following message:"Applic ation has generated an exception
that could not be handled." It then gives the process and thread IDs.
This is the same message I was getting previously. Any ideas?
>
Why don't you enclose the code above in a try catch block and then
post the exception that is being generated. That would help determine
what is going on.

Chris- Hide quoted text -

- Show quoted text -

May 11 '07 #3
If this is a windows forms app, create a app wide error handler and catch
the error there. Also, have you tried this on a different Win98 system
(preferably on that has just been built starting with a format)? The reason
I ask is that Win98 is highly suseptable to corruption.

Mike.

<bi*********@ya hoo.comwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Adding the try/catch blocks did not catch the error. The app crashes
with the following message:"Applic ation has generated an exception
that could not be handled." It then gives the process and thread IDs.
This is the same message I was getting previously. Any ideas?
>>
Why don't you enclose the code above in a try catch block and then
post the exception that is being generated. That would help determine
what is going on.

Chris- Hide quoted text -

- Show quoted text -


May 11 '07 #4
I have put try/catch blocks on everything and the error is still not
handled. I think there is a method I am calling that is not supported
on win98 and when that happens the CLR has no ability to catch the
error. It is an old machine, but runs other .net 2 apps, tho they are
very simple. Others have posted on this group with same error message
when their app crashes. This is the only win98 machine I have access
to.

On May 11, 1:45 pm, "Michael D. Ober" <obermd.@.alum. mit.edu.nospam>
wrote:
If this is a windows forms app, create a app wide error handler and catch
the error there. Also, have you tried this on a different Win98 system
(preferably on that has just been built starting with a format)? The reason
I ask is that Win98 is highly suseptable to corruption.

Mike.

<billsahi...@ya hoo.comwrote in message

news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Adding the try/catch blocks did not catch the error. The app crashes
with the following message:"Applic ation has generated an exception
that could not be handled." It then gives the process and thread IDs.
This is the same message I was getting previously. Any ideas?
Why don't you enclose the code above in a try catch block and then
post the exception that is being generated. That would help determine
what is going on.
Chris- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

May 11 '07 #5

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

Similar topics

2
2528
by: Aki Niimura | last post by:
Hello everyone, I'm encountering a weird problem and couldn't find any Internet postings that are relevant to my problem and it seems coming from the Pmw Balloon widget inside. I have developed a Tkinter software using Pmw. The software is being developed under Solaris but is targeting all
11
3769
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
5
1915
by: David Greenwood | last post by:
I posted this under 'microsoft.public.sqlserver.client' but got no reply. Any help with this problem would be greatly appreciated --------------------- I developed a database under SQL Server 2000, with Access 2000 on Windows 2000 as client. This had been running fine for several years. The client is now upgrading to Windows XP, and has come across a display problem on the reports. The figures are correct but are now displayed with lots of...
1
3291
by: bob | last post by:
I have created a simple Windows service in VB.Net which installs fine using InstallUtil.exe to install it to, for example "c:\test", or "c:\Windows\YellowBanana", but if I install it to "c:\Program Files\Test" it installs ok but will not start (no useful error message is given other than the usual annoying suggestion about having sufficient privileges). The problem only seems to happen with spaces, not long filenames. I have found a...
9
2827
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
1
1786
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group members. It works fine on W2k - machines. It works on a WinNT 4 - server, too, but it stops with a runtime error on any Windows 4.0 Workstation. The error is: System.Runtime.InteropServices.COMException 0x800500F. at...
2
2633
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
4
3161
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
10
1645
by: need.a.codemaster | last post by:
For a client of ours we are searching someone with the following knowledge Windows Virusscanners Spyware tools We need a windows application that runs in the background and for example changes the results from searchengines.
1
1960
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and accessing the webservice each min. It was working 100% fine. Problem: But now in actual deployment, we have deployed webservice in Win Server 2003 and we have used all the default configurations. Now the clients are accessing that service the same way...
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.