compiles fine, but doesn't start

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
krueger00
Posts: 7
Joined: 2003-04-03 11:33

compiles fine, but doesn't start

Post by krueger00 » 2003-04-03 11:47

i wanted to try something, but it didn't work.
i managed to compile v0.241 in both release and debug mode. however, on execution of the file, i got following error:
The procedure entry point SymFromAddr could not be located in the dynamic link library dbghelp.dll
this file exists in winnt\system32\ and is dated 22.07.2002.

i compiled version 0.22 without any problem of this kind.

SymFromAddr is also used in ExtendedTrace.cpp. (btw: in v0.22 SymGetSymFromAddr is used instead, but changing that didn't make it work either).

any ideas?

my system: win2k, vs6

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-04-03 12:21

Copy the dbghelp.dll from your VS.Net directory into the app\ directory. Or replace the copy in your windows directory, if it's not in use - but it's protected by Windows File Protection.

krueger00
Posts: 7
Joined: 2003-04-03 11:33

Post by krueger00 » 2003-04-03 12:51

thanks gargoylemt

sorry, i havn't got vs.NET (just vs6)

i found a version of the file on the web, but that didn't work either (probably the same anyway, file size is 163'088 bytes).

can someone post their file (if size is different)?
or otherwise: what do i need to modify in the source code to compile it with vs6?

thanks!

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-04-03 20:12

Hmm, well, migrating the ExtendedTrace.cpp/.h from 0.22 should do the trick. VS.Net links against a newer version of the lib - originally imagehlp.dll than is supplied by Windows versions other than XP. This is the same DLL that parses the PDB to generate useful exception logs. So on 2000 and before, the PDB parsing was failing and so we got exceptioninfo.txts filled with question marks instead of function names.

Also, it turns out that linking against dbghelp.dll is the preferred method now (not sure as of which OS version), and that the functions are only exported to imagehlp.dll temporarily, and at some point that will cease.

With VS6, you can probably continue to link against imagehlp.dll, etc. Just do a diff on the ExtendedTrace.cpp/.h from 0.24 and 0.241, and you can see what to change back. :-)

I hope the explanation clears things up.

krueger00
Posts: 7
Joined: 2003-04-03 11:33

Post by krueger00 » 2003-04-04 08:59

allthough i didn't understand all the stuff about the different libraries (i'm not too fond of C++ anyway), it worked!

thanks!!!

spideronz
Posts: 2
Joined: 2003-06-14 06:52

Post by spideronz » 2003-06-14 21:54

Sorry... I continue to have the same problems... i tried to copy dbghelp.dll to the App/ directory but nothing works.

U said to migrate the 2 files from 0.22 version... but where i can found it ?

Plz help me, and tnx in advance :)

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-06-19 19:52

spideronz wrote:Sorry... I continue to have the same problems... i tried to copy dbghelp.dll to the App/ directory but nothing works.

U said to migrate the 2 files from 0.22 version... but where i can found it ?

Plz help me, and tnx in advance :)
The files for handling exceptions are the same in 0.181 as in 0.22. Find them, as normal, on the DC++ page at sourceforge: http://sourceforge.net/project/showfile ... p_id=40287

Locked