Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Netware Purge command Pin
Ranoush26-Nov-04 19:53
Ranoush26-Nov-04 19:53 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak27-Nov-04 1:37
mveDave Kreskowiak27-Nov-04 1:37 
QuestionSilent installation? Pin
charleslau285523-Nov-04 20:44
charleslau285523-Nov-04 20:44 
AnswerRe: Silent installation? Pin
Ranoush23-Nov-04 21:26
Ranoush23-Nov-04 21:26 
GeneralRe: Silent installation? Pin
Anonymous24-Nov-04 16:12
Anonymous24-Nov-04 16:12 
GeneralPrinting through Windows Service Pin
Aqeel Baig23-Nov-04 20:40
Aqeel Baig23-Nov-04 20:40 
GeneralRe: Printing through Windows Service Pin
Dave Kreskowiak24-Nov-04 1:35
mveDave Kreskowiak24-Nov-04 1:35 
GeneralClass Object Initialization Timing Issue from ActiveX Server (EXE Server) in VB Pin
Steve Pullan23-Nov-04 13:51
Steve Pullan23-Nov-04 13:51 
I have a timing problem with class objects becoming available to external processes from an ActiveX Server (EXE Server) before the Main() function has completed initialization. The EXE Server is set to be single threaded (i.e. thread pool = 1) and the class objects are all multiuse.

The class objects require resources initialized by Main() and thus when the external process creates one of these objects, the object's initialization fails because the required resources are not available.

This is apparently a well known problem with ActiveX Servers but I am not in a position to rearchitect or rewrite the code - I am stuck with VB 6.

My question is this: how can I control the availability of the class objects until AFTER the EXE Server Main() function has completed?

I have read articles which state that you can overcome the problem with calls to CoRegisterClassObject() with the REGCLS_SUSPENDED option and then calling CoResumeClassObjects() when initialization is complete, but no samples on how to do this from VB 6.

TIA.


...Steve
GeneralSending mouse click signals Pin
Rylogy23-Nov-04 12:24
Rylogy23-Nov-04 12:24 
GeneralRe: Sending mouse click signals Pin
Purple Monk23-Nov-04 22:24
Purple Monk23-Nov-04 22:24 
Generalfill combo box with table items Pin
jlawren723-Nov-04 12:19
jlawren723-Nov-04 12:19 
GeneralRe: fill combo box with table items Pin
Pablo.ar24-Nov-04 2:56
Pablo.ar24-Nov-04 2:56 
GeneralRe: fill combo box with table items Pin
jlawren724-Nov-04 4:40
jlawren724-Nov-04 4:40 
GeneralRe: fill combo box with table items Pin
ccotton33324-Nov-04 6:51
ccotton33324-Nov-04 6:51 
Generalvb.net, textbox connected with database Pin
Member 149603823-Nov-04 8:32
Member 149603823-Nov-04 8:32 
GeneralRe: vb.net, textbox connected with database Pin
jlawren723-Nov-04 12:36
jlawren723-Nov-04 12:36 
GeneralRe: vb.net, textbox connected with database Pin
Anonymous2-Dec-04 14:28
Anonymous2-Dec-04 14:28 
GeneralRe: vb.net, textbox connected with database Pin
Member 14960382-Dec-04 14:31
Member 14960382-Dec-04 14:31 
GeneralIssue with Keyboard Handling Pin
rascalot23-Nov-04 5:31
rascalot23-Nov-04 5:31 
GeneralListview Pin
Paps223-Nov-04 4:44
Paps223-Nov-04 4:44 
GeneralRe: Listview Pin
Pablo.ar24-Nov-04 3:02
Pablo.ar24-Nov-04 3:02 
GeneralProcesses Pin
cwayman23-Nov-04 3:13
cwayman23-Nov-04 3:13 
GeneralRe: Processes Pin
Carlos Cruz Espino24-Jan-05 11:41
Carlos Cruz Espino24-Jan-05 11:41 
GeneralHTTP Upload Pin
Purple Monk23-Nov-04 2:46
Purple Monk23-Nov-04 2:46 
GeneralConvert to Date Pin
nitin_ion23-Nov-04 2:37
nitin_ion23-Nov-04 2:37 

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.