Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: focus on dynamic button Pin
Ravi Bhavnani8-Feb-06 8:43
professionalRavi Bhavnani8-Feb-06 8:43 
GeneralRe: focus on dynamic button Pin
mk_le8-Feb-06 8:49
mk_le8-Feb-06 8:49 
AnswerRe: focus on dynamic button Pin
_AnsHUMAN_ 8-Feb-06 17:19
_AnsHUMAN_ 8-Feb-06 17:19 
Questionmalloc() Pin
paully8-Feb-06 7:14
paully8-Feb-06 7:14 
AnswerRe: malloc() Pin
toxcct8-Feb-06 7:40
toxcct8-Feb-06 7:40 
GeneralRe: malloc() Pin
paully8-Feb-06 8:39
paully8-Feb-06 8:39 
QuestionRe: malloc() Pin
David Crow8-Feb-06 8:58
David Crow8-Feb-06 8:58 
QuestionOracle, CDatabase and multithread Pin
Nandiator8-Feb-06 6:21
Nandiator8-Feb-06 6:21 
Hi you all.

I have a thread intensive windows service written in Visual C++ for a communicacions app.

There is a mother thread which launches child threads each of which opens a new connection to Oracle by means of the ODBC Driver.
The child threads are created and die, buy sometimes a big amount of them can be created at the same time (about 200 threads when a massive alert is sent to the remote client apps) which mean that about 200 connections are opened against the driver and last for some time.

My problem is that when this happens some threads are frozen in the Open function of the CDatabase connection.

I tried to write a bit of code to test it (one loop which launched threads which just opened connections to the database and waited in an infinite loop to keep everything opened) and the problem persisted. But as this time it was a desktop app (not a winservice) an Oracle ODBC Driver Connect dialog showed asking for Service Name, User Name and Password.

I tested the same code against a SQLServer driver and the app had no problem in launching all the threads.

So now comes the question ¿is there a limit in oracle's driver for the number of connections per process?

I am using Oracle's Driver version 10.01.00.31, the database is an Oracle 10gR1, and the service is written in Visual C++ (Visual Studio 2003).
The database is not owned by us, so we cannot modify any parameters.



AnswerRe: Oracle, CDatabase and multithread Pin
Chris Meech8-Feb-06 6:41
Chris Meech8-Feb-06 6:41 
QuestionProblem with FindNextChangeNotification Pin
Dan Neely8-Feb-06 5:19
Dan Neely8-Feb-06 5:19 
AnswerRe: Problem with FindNextChangeNotification Pin
James R. Twine8-Feb-06 6:20
James R. Twine8-Feb-06 6:20 
GeneralRe: Problem with FindNextChangeNotification Pin
Dan Neely8-Feb-06 7:16
Dan Neely8-Feb-06 7:16 
QuestionRe: Problem with FindNextChangeNotification Pin
David Crow8-Feb-06 9:00
David Crow8-Feb-06 9:00 
AnswerRe: Problem with FindNextChangeNotification Pin
Dan Neely8-Feb-06 9:51
Dan Neely8-Feb-06 9:51 
GeneralRe: Problem with FindNextChangeNotification Pin
David Crow8-Feb-06 10:16
David Crow8-Feb-06 10:16 
GeneralRe: Problem with FindNextChangeNotification Pin
Dan Neely8-Feb-06 11:41
Dan Neely8-Feb-06 11:41 
GeneralRe: Problem with FindNextChangeNotification Pin
David Crow9-Feb-06 2:51
David Crow9-Feb-06 2:51 
QuestionTree control bug? Pin
Gary Wheeler8-Feb-06 4:24
Gary Wheeler8-Feb-06 4:24 
AnswerRe: Tree control bug? Pin
David Crow8-Feb-06 4:45
David Crow8-Feb-06 4:45 
GeneralRe: Tree control bug? Pin
Gary Wheeler8-Feb-06 4:56
Gary Wheeler8-Feb-06 4:56 
AnswerRe: Tree control bug? Pin
James R. Twine8-Feb-06 4:59
James R. Twine8-Feb-06 4:59 
GeneralRe: Tree control bug? Pin
Gary Wheeler8-Feb-06 5:07
Gary Wheeler8-Feb-06 5:07 
AnswerRe: Tree control bug? Pin
Jack Puppy8-Feb-06 7:09
Jack Puppy8-Feb-06 7:09 
GeneralRe: Tree control bug? Pin
Gary Wheeler8-Feb-06 7:26
Gary Wheeler8-Feb-06 7:26 
QuestionHow to automatically start functioning Dailog based application Pin
Aqueel8-Feb-06 4:24
Aqueel8-Feb-06 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.