Hi there,
I'm trying to access an SQL Server through an SqlConnection within a worker
thread. This doesn't seem to work. If I call the Open() method, nothing
happens on the Server and no Exception is thrown. Is this by design or am I
missing something out?
thanks in advance.
Matthias
--
-----
fragmente einer flugbahn - http://emvoid.de 5 1180
Code? I've used Asynchronous Delegates to so something similar, and it
works out just fine.
Thanks,
Michael C.
"Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hi there,
I'm trying to access an SQL Server through an SqlConnection within a
worker thread. This doesn't seem to work. If I call the Open() method, nothing happens on the Server and no Exception is thrown. Is this by design or am
I missing something out?
thanks in advance.
Matthias
-- ----- fragmente einer flugbahn - http://emvoid.de
Hi Matthias:
I've done this many times with success. Perhaps you could post some
code for us to take a look at and give suggestions as to why it might
not be working for you.
--
Scott http://www.OdeToCode.com
On Fri, 16 Jul 2004 21:47:18 +0200, "Matthias Steinbart"
<postamt@_REMOVEME_emvoid.de> wrote: Hi there,
I'm trying to access an SQL Server through an SqlConnection within a worker thread. This doesn't seem to work. If I call the Open() method, nothing happens on the Server and no Exception is thrown. Is this by design or am I missing something out?
thanks in advance.
Matthias
Hey Scott,
thanks for your reply. I actually have been using a tiny framework that
makes the work with threads a lot easier. Obviously in this framework has
been a bug. It just took me ages to figure it out. Anyway, your reply is
greatly appreceated.
Matthias
--
-----
fragmente einer flugbahn - http://emvoid.de
"Scott Allen" <bitmask@[nospam].fred.net> schrieb im Newsbeitrag
news:0c********************************@4ax.com... Hi Matthias:
I've done this many times with success. Perhaps you could post some code for us to take a look at and give suggestions as to why it might not be working for you.
-- Scott http://www.OdeToCode.com
On Fri, 16 Jul 2004 21:47:18 +0200, "Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote:
Hi there,
I'm trying to access an SQL Server through an SqlConnection within a
workerthread. This doesn't seem to work. If I call the Open() method, nothing happens on the Server and no Exception is thrown. Is this by design or am
Imissing something out?
thanks in advance.
Matthias
Hi Michael,
as posted previously, the Bug actually was in a small framework I've been
using. Nevertheless I got curious about your solution using Asynchronous
Delegates. Could you please provide some cornerstones, so I can get the
picture. Thanks in advance.
Matthias
--
-----
fragmente einer flugbahn - http://emvoid.de
"Michael C" <mi*******@optonline.net> schrieb im Newsbeitrag
news:OF**************@TK2MSFTNGP11.phx.gbl... Code? I've used Asynchronous Delegates to so something similar, and it works out just fine.
Thanks, Michael C.
"Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hi there,
I'm trying to access an SQL Server through an SqlConnection within a worker thread. This doesn't seem to work. If I call the Open() method, nothing happens on the Server and no Exception is thrown. Is this by design or
am I missing something out?
thanks in advance.
Matthias
-- ----- fragmente einer flugbahn - http://emvoid.de
I just saw your message. I don't have any code handy on this laptop, but
all I did was run my SQL Command inside an Asynchronous Delegate with
Callback. It took a little while to figure out, but once done it's easy to
do it over and over. I gathered a lot of info. on Async Callbacks from
previous posts in this newsgroup, on the MS website and in the book C# and
the .NET Platform. Once I get on my regular computer I'll post some code
here for you... might not be for a couple of days though.
Thanks,
Michael C.
"Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hi Michael,
as posted previously, the Bug actually was in a small framework I've been using. Nevertheless I got curious about your solution using Asynchronous Delegates. Could you please provide some cornerstones, so I can get the picture. Thanks in advance.
Matthias
-- ----- fragmente einer flugbahn - http://emvoid.de "Michael C" <mi*******@optonline.net> schrieb im Newsbeitrag news:OF**************@TK2MSFTNGP11.phx.gbl... Code? I've used Asynchronous Delegates to so something similar, and it works out just fine.
Thanks, Michael C.
"Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hi there,
I'm trying to access an SQL Server through an SqlConnection within a worker thread. This doesn't seem to work. If I call the Open() method,
nothing happens on the Server and no Exception is thrown. Is this by design or am I missing something out?
thanks in advance.
Matthias
-- ----- fragmente einer flugbahn - http://emvoid.de
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Lull |
last post by:
I'm writing a multithreaded COM server to manage a pool of hardware resources.
All objects are designed to be thread-safe, and I've set sys.coinit_flags to
COINIT_MULTITHREADED before importing...
|
by: Bruce W.1 |
last post by:
I need to spin of a thread that periodically checks the Application
state. How can a thread access Application or Session states? Send it
the httpContext?
Thanks for your help.
|
by: Charles Law |
last post by:
My first thought was to call
WorkerThread.Suspend
but the help cautions against this (for good reason) because the caller has
no control over where the thread actually stops, and it might have...
|
by: Soren S. Jorgensen |
last post by:
Hi,
In my app I've got a worker thread (background) doing some calculations
based upon user input. A new worker thread might be invoked before the
previous worker thread has ended, and I wan't...
|
by: zxo102 |
last post by:
Hi everyone,
I am using a python socket server to collect data from a socket
client and then control a image location ( wxpython) with the data,
i.e. moving the image around in the wxpython frame....
|
by: akmkat |
last post by:
Hi all,
I am in a great problem. I am trying to implement a multithreaded server using java, first look at the code...
/*------- Main Server (server.java)--------------*/
import java.io.* ;...
|
by: Thomas Lunsford |
last post by:
I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is...
|
by: =?Utf-8?B?QW1yaXQgS29obGk=?= |
last post by:
Hello,
I have a button that starts up a Thread and runs it in the background.
While the Thread is running, all the Ajax controls, including the events
fired by the PageRequestManager, stop...
|
by: Angus |
last post by:
I'm confused by manual's tutorial for threading. I don't believe I need any of the thread-safe measures, because while the worker thread is running, the main thread doesn't make any MySQL calls. So...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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,...
|
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: 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...
|
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: 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,...
| |