RE: [GD-Windows] Finding routine that's crashing
Brought to you by:
vexxed72
From: Timur D. <ti...@cr...> - 2002-08-14 08:26:08
|
Actually mine MSDN (VS.Net) says: -------------------------------------------------------------------------= - SymInitialize BOOL SymInitialize( HANDLE hProcess, =20 PSTR UserSearchPath, =20 BOOL fInvadeProcess =20 ); hProcess=20 [in] Handle to the process for which symbols are to be maintained. If = the application is a debugger, use the process handle for the object = being debugged, otherwise use the GetCurrentProcess function to obtain = the process handle.=20 -------------------------------------------------------------------------= - and i use GetCurrentProcess() and everything works... so i dont sure why you use this GetCurrentProcessId() and it works, may = be on win2k processId will be equal to process handle. _________________ Timur Davidenko. Crytek Studios (www.crytek.com) > -----Original Message----- > From: Colin Fahey [mailto:cp...@ea...] > Sent: Thursday, August 08, 2002 3:32 AM > To: Colin Fahey; Gam...@li... > Subject: Re: [GD-Windows] Finding routine that's crashing >=20 >=20 >=20 > 2002 August 7th > Wednesday >=20 >=20 > In the e-mail I posted three seconds ago, I wrote: > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=20 > [5] It is absolutely critical to use the proper HANDLE to > indicate the process in all of the symbol handler functions. > You must determine your platform, and then: >=20 > [a] Under Windows 98, use the following HANDLE: >=20 > ::OpenProcess(PROCESS_ALL_ACCESS, FALSE,=20 > ::GetCurrentProcessId()); >=20 > [b] Under Windows 2000, Windows XP, Windows Me, use the=20 > following HANDLE: >=20 > (HANDLE)GetCurrentProcessId() >=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=20 > But I mixed up [a] and [b]! The HANDLE's should be swapped! >=20 > Yes...It is "absolutely critical" to use the proper handle... ;-) >=20 > So much for my "public service" effort! >=20 > --- Colin >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 |