473,566 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stop aborting my thread!

The following code throws a "Thread was being aborted" exception at the Response.End line. Even if I catch the exception, the code that follows is never executed. (Because the thread was being aborted...?) What does this mean? Why is it happening? How do I fix it? I've tried everything I can think of. I've wrapped all the code in try blocks, but the thread exception is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(), FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ; filename=""" & dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()
Nov 18 '05 #1
7 1317
Response.End is implemented as a thread abort, so this is expected behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception at the Response.End line. Even if I catch the exception, the code that follows is never executed. (Because the thread was being aborted...?) What does this mean? Why is it happening? How do I fix it? I've tried everything I can think of. I've wrapped all the code in try blocks, but the thread exception is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(), FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ; filename=""" & dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()
Nov 18 '05 #2
Is that the proper way to terminate the file transfer, or should I be using something else? (Response.Close ?)
Or would a Response.Flush do the same thing?

I've worked around it by moving the response.end call to the end of the procedure, but I'm a bit new to web dev, so I want to learn the proper methods. Thanks.

Jerry
"bruce barker" <no***********@ safeco.com> wrote in message news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
Response.End is implemented as a thread abort, so this is expected behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception at the Response.End line. Even if I catch the exception, the code that follows is never executed. (Because the thread was being aborted...?) What does this mean? Why is it happening? How do I fix it? I've tried everything I can think of. I've wrapped all the code in try blocks, but the thread exception is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(), FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ; filename=""" & dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()
Nov 18 '05 #3
The Response ends all by itself. Why don't you just omit it?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:uC******** *****@TK2MSFTNG P10.phx.gbl...
Is that the proper way to terminate the file transfer, or should I be using
something else? (Response.Close ?)
Or would a Response.Flush do the same thing?

I've worked around it by moving the response.end call to the end of the
procedure, but I'm a bit new to web dev, so I want to learn the proper
methods. Thanks.

Jerry
"bruce barker" <no***********@ safeco.com> wrote in message
news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
Response.End is implemented as a thread abort, so this is expected
behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception at the
Response.End line. Even if I catch the exception, the code that follows is
never executed. (Because the thread was being aborted...?) What does this
mean? Why is it happening? How do I fix it? I've tried everything I can
think of. I've wrapped all the code in try blocks, but the thread exception
is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(),
FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ; filename=""" &
dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()
Nov 18 '05 #4
I had a problem before where data from a postback or some other page request
was being appended to the file transfer. It was apparent on text files
where the html ended up as part of the text file instead of showing in the
browser. I figured I needed to let the client know that the download was
complete so it would close the file on the client's end. There must be
something about this process that I'm not understanding properly... How
does the client side know when it has stopped receiving a download and is
now receiveing HTML to post? Thanks.

Jerry
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:um******** ******@TK2MSFTN GP11.phx.gbl...
The Response ends all by itself. Why don't you just omit it?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:uC******** *****@TK2MSFTNG P10.phx.gbl...
Is that the proper way to terminate the file transfer, or should I be using something else? (Response.Close ?)
Or would a Response.Flush do the same thing?

I've worked around it by moving the response.end call to the end of the
procedure, but I'm a bit new to web dev, so I want to learn the proper
methods. Thanks.

Jerry
"bruce barker" <no***********@ safeco.com> wrote in message
news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
Response.End is implemented as a thread abort, so this is expected
behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception at the Response.End line. Even if I catch the exception, the code that follows is never executed. (Because the thread was being aborted...?) What does this
mean? Why is it happening? How do I fix it? I've tried everything I can
think of. I've wrapped all the code in try blocks, but the thread exception is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(),
FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ; filename=""" & dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()

Nov 18 '05 #5
It's not a matter of what the client knows. You said yourself that your
first problem was caused by some output that your app was rendering AFTER
writing the correct data to the browser. As long as your app doesn't do
that, it certainly doesn't need to call Response.End, and it may in fact,
not be a good idea to do so.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.co m> wrote in message
news:Oz******** ******@tk2msftn gp13.phx.gbl...
I had a problem before where data from a postback or some other page request was being appended to the file transfer. It was apparent on text files
where the html ended up as part of the text file instead of showing in the
browser. I figured I needed to let the client know that the download was
complete so it would close the file on the client's end. There must be
something about this process that I'm not understanding properly... How
does the client side know when it has stopped receiving a download and is
now receiveing HTML to post? Thanks.

Jerry
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:um******** ******@TK2MSFTN GP11.phx.gbl...
The Response ends all by itself. Why don't you just omit it?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:uC******** *****@TK2MSFTNG P10.phx.gbl...
Is that the proper way to terminate the file transfer, or should I be using
something else? (Response.Close ?)
Or would a Response.Flush do the same thing?

I've worked around it by moving the response.end call to the end of the
procedure, but I'm a bit new to web dev, so I want to learn the proper
methods. Thanks.

Jerry
"bruce barker" <no***********@ safeco.com> wrote in message
news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
Response.End is implemented as a thread abort, so this is expected
behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception at

the
Response.End line. Even if I catch the exception, the code that follows

is
never executed. (Because the thread was being aborted...?) What does this mean? Why is it happening? How do I fix it? I've tried everything I can think of. I've wrapped all the code in try blocks, but the thread

exception
is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(),
FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ;

filename=""" &
dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()


Nov 18 '05 #6
How would you update a web page after sending a file? There has to be some
indication that the file is sent, no? Apparently I'm missing something
here.
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:OT******** ******@TK2MSFTN GP11.phx.gbl...
It's not a matter of what the client knows. You said yourself that your
first problem was caused by some output that your app was rendering AFTER
writing the correct data to the browser. As long as your app doesn't do
that, it certainly doesn't need to call Response.End, and it may in fact,
not be a good idea to do so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.co m> wrote in message
news:Oz******** ******@tk2msftn gp13.phx.gbl...
I had a problem before where data from a postback or some other page

request
was being appended to the file transfer. It was apparent on text files
where the html ended up as part of the text file instead of showing in the
browser. I figured I needed to let the client know that the download was complete so it would close the file on the client's end. There must be
something about this process that I'm not understanding properly... How
does the client side know when it has stopped receiving a download and is now receiveing HTML to post? Thanks.

Jerry
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:um******** ******@TK2MSFTN GP11.phx.gbl...
The Response ends all by itself. Why don't you just omit it?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:uC******** *****@TK2MSFTNG P10.phx.gbl...
Is that the proper way to terminate the file transfer, or should I be

using
something else? (Response.Close ?)
Or would a Response.Flush do the same thing?

I've worked around it by moving the response.end call to the end of the procedure, but I'm a bit new to web dev, so I want to learn the proper
methods. Thanks.

Jerry
"bruce barker" <no***********@ safeco.com> wrote in message
news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
Response.End is implemented as a thread abort, so this is expected
behavior.
-- bruce (sqlwork.com)
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:ug******** ******@TK2MSFTN GP10.phx.gbl...
The following code throws a "Thread was being aborted" exception
at the
Response.End line. Even if I catch the exception, the code that
follows is
never executed. (Because the thread was being aborted...?) What does

this mean? Why is it happening? How do I fix it? I've tried everything I can think of. I've wrapped all the code in try blocks, but the thread

exception
is the only one being thrown. Please help... Thanks.

Jerry

sCommand = "SELECT * FROM FD_Files " & _
"WHERE (HashName = '" & e.CommandArgume nt() & "')"

Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
Dim dsFiles As New DataSet()
daFiles.Fill(ds Files, "FD_Files")
Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
Dim fStream As FileStream
Dim bytesToGo As Long
Dim bytesRead As Long
Dim byteBuffer(2048 ) As Byte

fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(),
FileMode.Open, _
FileAccess.Read , FileShare.Read)
bytesToGo = fStream.Length
Response.Buffer Output = False
Response.Clear( )
Response.ClearC ontent()
Response.ClearH eaders()
Response.Conten tType = "applicatio n/octet-stream"
Response.Append Header("Content-Disposition", "attachment ;

filename="""
&
dr("FileName") & """")
Response.Append Header("Content-Length", fStream.Length)
Response.Flush( )

While (bytesToGo > 0)
If (Response.IsCli entConnected) Then
bytesRead = fStream.Read(by teBuffer, 0, 2048)
Response.Output Stream.Write(by teBuffer, 0, bytesRead)
Response.Flush( )
bytesToGo -= bytesRead
Else
bytesToGo = -1
End If
End While

fStream.Close()
Response.End()



Nov 18 '05 #7
> How would you update a web page after sending a file? There has to be
some

You don't. The file is the Response. Every Response to a Request is a file.
A Request asks for a file. A Response sends one.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.co m> wrote in message
news:#r******** ******@tk2msftn gp13.phx.gbl...
How would you update a web page after sending a file? There has to be some indication that the file is sent, no? Apparently I'm missing something
here.
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:OT******** ******@TK2MSFTN GP11.phx.gbl...
It's not a matter of what the client knows. You said yourself that your
first problem was caused by some output that your app was rendering AFTER
writing the correct data to the browser. As long as your app doesn't do
that, it certainly doesn't need to call Response.End, and it may in fact, not be a good idea to do so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.co m> wrote in message
news:Oz******** ******@tk2msftn gp13.phx.gbl...
I had a problem before where data from a postback or some other page

request
was being appended to the file transfer. It was apparent on text files where the html ended up as part of the text file instead of showing in the browser. I figured I needed to let the client know that the download was complete so it would close the file on the client's end. There must be something about this process that I'm not understanding properly... How does the client side know when it has stopped receiving a download and is now receiveing HTML to post? Thanks.

Jerry
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:um******** ******@TK2MSFTN GP11.phx.gbl...
> The Response ends all by itself. Why don't you just omit it?
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
>
> "Jerry Camel" <rl*****@msn.co m> wrote in message
> news:uC******** *****@TK2MSFTNG P10.phx.gbl...
> Is that the proper way to terminate the file transfer, or should I be using
> something else? (Response.Close ?)
> Or would a Response.Flush do the same thing?
>
> I've worked around it by moving the response.end call to the end of the > procedure, but I'm a bit new to web dev, so I want to learn the proper > methods. Thanks.
>
> Jerry
> "bruce barker" <no***********@ safeco.com> wrote in message
> news:ud******** ********@TK2MSF TNGP11.phx.gbl. ..
> Response.End is implemented as a thread abort, so this is expected
> behavior.
>
>
> -- bruce (sqlwork.com)
>
>
> "Jerry Camel" <rl*****@msn.co m> wrote in message
> news:ug******** ******@TK2MSFTN GP10.phx.gbl...
> The following code throws a "Thread was being aborted" exception at the
> Response.End line. Even if I catch the exception, the code that follows is
> never executed. (Because the thread was being aborted...?) What

does this
> mean? Why is it happening? How do I fix it? I've tried everything
I can
> think of. I've wrapped all the code in try blocks, but the thread
exception
> is the only one being thrown. Please help... Thanks.
>
> Jerry
>
> sCommand = "SELECT * FROM FD_Files " & _
> "WHERE (HashName = '" & e.CommandArgume nt() & "')"
>
> Dim daFiles As New SqlDataAdapter( sCommand, sqlCnxn)
> Dim dsFiles As New DataSet()
> daFiles.Fill(ds Files, "FD_Files")
> Dim dr As DataRow = dsFiles.Tables( "FD_Files").Row s(0)
> Dim fStream As FileStream
> Dim bytesToGo As Long
> Dim bytesRead As Long
> Dim byteBuffer(2048 ) As Byte
>
> fStream = New FileStream("C:\ DepotRoot\" & e.CommandArgume nt(),
> FileMode.Open, _
> FileAccess.Read , FileShare.Read)
> bytesToGo = fStream.Length
> Response.Buffer Output = False
> Response.Clear( )
> Response.ClearC ontent()
> Response.ClearH eaders()
> Response.Conten tType = "applicatio n/octet-stream"
> Response.Append Header("Content-Disposition", "attachment ;

filename="""
&
> dr("FileName") & """")
> Response.Append Header("Content-Length", fStream.Length)
> Response.Flush( )
>
> While (bytesToGo > 0)
> If (Response.IsCli entConnected) Then
> bytesRead = fStream.Read(by teBuffer, 0, 2048)
> Response.Output Stream.Write(by teBuffer, 0, bytesRead)
> Response.Flush( )
> bytesToGo -= bytesRead
> Else
> bytesToGo = -1
> End If
> End While
>
> fStream.Close()
> Response.End()
>
>



Nov 18 '05 #8

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

Similar topics

3
1712
by: Niyazi | last post by:
Hi, I created application that I get information from AS400 for reporting. In main.exe has only 1 frm which calls (as a class library) CLS_MAIN.dll. The CLS_MAIN.dll get the tables from AS400 and stores it in Dataset. Then returns to main frm then main frm calls the FirstReport.dll. The FirstReport.dll get the information from access...
1
2612
by: johnny | last post by:
In a multi-threaded application, say a worker thread makes an asynchronous call and specifies a callback method. But before the callback is executed, the thread is aborted by its creator. What is the expected behavior for this scenario? Does the thread stay alive until the callback is executed? If an exception is thrown, can it be caught? ...
3
336
by: Niyazi | last post by:
Hi, I created application that I get information from AS400 for reporting. In main.exe has only 1 frm which calls (as a class library) CLS_MAIN.dll. The CLS_MAIN.dll get the tables from AS400 and stores it in Dataset. Then returns to main frm then main frm calls the FirstReport.dll. The FirstReport.dll get the information from access...
1
2819
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work. Despite entering the required lines to "my.ini" (the new my.cnf) through notepad AND MySQL Administrator, the cache does not work. So, today I took a...
7
7662
by: Marc Bartsch | last post by:
Hi, I have a background worker in my C# app that makes a synchronous HttpWebRequest.GetResponse() call. The idea is to POST a file to a server on the internet. When I call HttpWebRequest.Abort() on the request object on another thread, GetResponse() returns with an exception as expected. However, when I monitor the network traffic, it does...
0
7673
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...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
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. ...
1
7645
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...
0
7953
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...
0
6263
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...
1
2085
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
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.