Click here to Skip to main content
15,918,003 members
Home / Discussions / Database
   

Database

 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley12-Jul-03 3:44
Terry O'Nolley12-Jul-03 3:44 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Mike Dimmick12-Jul-03 7:40
Mike Dimmick12-Jul-03 7:40 
GeneralRe: Does ODBC allow mapping to remote DSN via TCP/IP? Pin
Terry O'Nolley14-Jul-03 13:22
Terry O'Nolley14-Jul-03 13:22 
GeneralDataGrid columns renaming Pin
Kant10-Jul-03 7:39
Kant10-Jul-03 7:39 
GeneralRe: DataGrid columns renaming Pin
Not Active10-Jul-03 12:52
mentorNot Active10-Jul-03 12:52 
GeneralRe: DataGrid columns renaming Pin
Kant10-Jul-03 13:16
Kant10-Jul-03 13:16 
GeneralPass array to pl/sql procedure using .NET OracleClient Pin
IPC20009-Jul-03 8:45
IPC20009-Jul-03 8:45 
GeneralMSDE sp3 Installation Hangs Pin
Nathan Blomquist9-Jul-03 2:36
Nathan Blomquist9-Jul-03 2:36 
I am having trouble installing MSDE. I am attempting to launch the installation via another setup program I am writing. This setup will install a lot of prerequisites that another app needs, one of them being MSDE.

The problem is that when I launch the MSDE installation all goes well until a little over half way through, when it just hangs. Nothing happens, ever. I can do this repeatably. I can call the setup.exe from C#, MC++ using .NET and using Win32, and also straight Win32. All cause the installation to hang.

It seems to have to do with waiting for the process to finish, because if I don't use Process.WaitForExit or WaitForSingleObject the installation will continue and finish even if launched from my app. But calling these functions causes a hang.

Here is another post about Delphi: link[^]

Here is a Win32 DLL function that I wrote (took from the above post, he said it worked for him) that causes the problem.
<code>#define APPLICATION NULL
#define COMMANDLINE _T("MSDE\\Setup.exe sapwd=testpassword")
#define CURRENTDIR  NULL

extern "C" __declspec(dllexport) int NativeLaunchMSDEInstaller()
{
	STARTUPINFO si;
	PROCESS_INFORMATION pi;
	DWORD dwExitCode;
	BOOL br;

	ZeroMemory(&si, sizeof(si));
	si.cb = sizeof(si);
	
	br = CreateProcess(APPLICATION, COMMANDLINE, NULL, NULL,
		FALSE, 0, NULL, CURRENTDIR, &si, &pi);
	if (br)
	{
		CloseHandle(pi.hThread);
		WaitForSingleObject(pi.hProcess, INFINITE);
		GetExitCodeProcess(pi.hProcess, &dwExitCode);
	//	wprintf(L"Setup.exe returned exit code %d", dwExitCode);
		CloseHandle(pi.hProcess);
	}
	else
	{
	//	wprintf(L"Error %d in CreateProcess", GetLastError());
		return GetLastError();
	}

	return 0;
}</code>


Thanks for any help (or atleast a verification that this is a problem),
Nathan

---------------------------
Hmmm... what's a signature?
Questionquery problem? Pin
Asim N.9-Jul-03 2:20
Asim N.9-Jul-03 2:20 
GeneralMultiple SQLServer databases Pin
John Oliver8-Jul-03 23:12
John Oliver8-Jul-03 23:12 
GeneralRe: Multiple SQLServer databases Pin
Gaurav Bindlish9-Jul-03 3:23
Gaurav Bindlish9-Jul-03 3:23 
GeneralNeed an Access97 MDI application. Pin
WREY8-Jul-03 10:34
WREY8-Jul-03 10:34 
GeneralRe: Database Newbie Q Pin
Gaurav Bindlish8-Jul-03 9:34
Gaurav Bindlish8-Jul-03 9:34 
GeneralRe: Database Newbie Q Pin
Gaurav Bindlish9-Jul-03 3:19
Gaurav Bindlish9-Jul-03 3:19 
Generalstorage of images into oracle database as blob using vc++.net or ADO.net Pin
Shaffiq7-Jul-03 7:57
Shaffiq7-Jul-03 7:57 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Not Active7-Jul-03 9:04
mentorNot Active7-Jul-03 9:04 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Shaffiq7-Jul-03 18:45
Shaffiq7-Jul-03 18:45 
GeneralRe: storage of images into oracle database as blob using vc++.net or ADO.net Pin
Not Active8-Jul-03 2:42
mentorNot Active8-Jul-03 2:42 
GeneralNeed to Export Records to Remote Terminal Pin
Leon van Wyk7-Jul-03 0:24
professionalLeon van Wyk7-Jul-03 0:24 
GeneralRe: Need to Export Records to Remote Terminal Pin
basementman7-Jul-03 4:31
basementman7-Jul-03 4:31 
GeneralRe: Need to Export Records to Remote Terminal Pin
Gaurav Bindlish8-Jul-03 9:38
Gaurav Bindlish8-Jul-03 9:38 
GeneralRe: Need to Export Records to Remote Terminal Pin
MrGlover1-Aug-03 13:12
MrGlover1-Aug-03 13:12 
GeneralTree view style data... Pin
theJazzyBrain6-Jul-03 11:24
theJazzyBrain6-Jul-03 11:24 
GeneralRe: Tree view style data... Pin
theJazzyBrain8-Jul-03 4:48
theJazzyBrain8-Jul-03 4:48 
GeneralADO connection pooling Pin
Jahangir Badar5-Jul-03 8:22
sussJahangir Badar5-Jul-03 8:22 

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.