-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What are the advantages/disadvantages in placing a lengthy network access code in a thread in an activity or a thread in a service? How would it affect the application? I am writing a streaming audio player and from what I've read so far putting the code in a service will still end up blocking the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I have an ASP.Net webservice running.
When the system date changes, i want to close all the threads and restart them again, if the thread/s aren't doing any work. If any of the thread/s is in the process of doing some work(active threads), then i need to wait till the current thread/s complete…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, this is for an assignment so I'm not looking for code.
I have to simulate a game where each player has turns and needs to 'pay attention' to what's going on.
So far, i know I'll need two threads for each player, one that will sleep until the player's turn and the other paying attention.
My…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When using java threads, one has to take care of the basic problems that come with concurrency through synchronization etc.
AFAIK Tomcat also works with threads to handle its workload. Why is it, that I don't have to think about making my code threadsafe when it is running in Tomcat?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I am working on a project which involves reusing as well as migrating some of the existing MFC code to C#.
The current code in MFC, creates some threads and uses ::PostthreadeMessage() and ON_THREAD_MESSAGE(msg,func) for inter thread asynchronous communication through messages.
::PostthreadeMessage()…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I've made a form containing a TVirtualStringTree that works in Delphi 7 and Delphi 2010. I notice that as I move between the two platforms I get the message '...parameter list differ..' on the tree events and that the string type is changing bewteen TWideString (D7) and string (D2010). The only…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a String that I needed access to the first character of, so I used stringname[1]. With the unicode support this no longer works. I get an error: [DCC Error] sndkey32.pas(420): E2010 Incompatible types: 'Char' and 'AnsiChar'
Example code:
//vkKeyScan from the windows unit
var
KeyString:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I am a long time Delphi 6 developer. Looking for a book on Delphi 2010. Not only on the new features available in Delphi 2010, but more importantly, guideline on how different it is to develop applications in Delphi 2010, the architecture, standard and convention, etc.
Thanks a lot.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello.
The situation is the following. Typically I use RAD Studio 2010 for Delphi development. I have some components I would like to redistribute in binary form (*.bpl without source). But I would like people to be able to use them despite of their Delphi version. But, for example, dcu files can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need create a programatic equivalent using delphi language... or could someone post a link on how to do grammars in peech recogniton using the delphi. sorry for my english...
XML Grammar Sample(s):
<GRAMMAR>
<!-- Create a simple "hello world" rule -->
<RULE NAME="HelloWorld"…
>>> More