Click to See Complete Forum and Search --> : Wierd Problem - Depends.exe and Windows ME


Runt888
September 20th, 2005, 06:20 PM
I'm encountering a very strange problem when running my application on Windows ME. It works perfectly on Windows 2000, XP, and 2003. When I run it on Windows ME, it crashes when starting up. However, strange things happen when I run depends.exe on it. After I run depends.exe on the executable and profile the executable (it still crashes when doing this), I am able to run the executable fine. It starts up and works like normal. If I restart the machine, it goes back to crashing (until I run depends.exe again).

I can't think of a reason why my app would display this behavior. Will depends.exe load something into the OS if it detects my program needs it? If so, is there something I should be looking for in the output window when I profile my app?

Does anyone have any ideas about this? I've done some primitive debugging (primitive since VS.NET won't install on ME), and I'm about to go out of my mind trying to figure it out.

Thanks!

Kelly

PS. I'm not sure if this helps or not, but the debug version runs fine on ME as well. Also, if I install ME on Virtual PC, my app will crash until I install the Virtual Machine Additions. Once those are installed, it works fine. If I uninstall them, it goes back to crashing.

pengch
September 21st, 2005, 08:51 AM
Try our tools to debug your application. It'll automatic record apis call.

Runt888
September 21st, 2005, 03:21 PM
Actually, I think I've figured out what the problem is. Now I just need to be able to fix it :D

I'm using the Microsoft Layer for Unicode. When I compile a non-unicode version, it works fine on ME. So I'm thinking that this is a problem with some libraries or DLLs. When I compile the libraries that my application links, do I need to have them link to the UnicoWS.lib?

Has anyone else had problems like this when using MSLU? Any suggestions on how to fix this would be great!

Thanks!

Kelly

Edit: This is how I link the UnicoWS.lib in my project settings:


/nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib /nod:sensapi.lib /nod:msimg32.lib /nod:CxImage.lib /nod:jpeg.lib /nod:png.lib /nod:tiff.lib /nod:zlib.lib /nod:ole32.lib /nod:shlwapi.lib /nod:XercesLib.lib UnicoWS.lib kernel32.lib advapi32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib version.lib mpr.lib rasapi32.lib winmm.lib winspool.lib vfw32.lib secur32.lib oleacc.lib oledlg.lib sensapi.lib msimg32.lib CxImage.lib jpeg.lib png.lib tiff.lib zlib.lib ole32.lib shlwapi.lib XercesLib.lib