Re: Problem Linking (win32)



On Jul 25, 6:29 am, Frank Kotler <spamt...@xxxxxxxxxx> wrote:


Here's another example.  This example results in this error being set
upon loading:

ERROR_ENVVAR_NOT_FOUND (000000CB)

Google leads me to:

http://msdn.microsoft.com/en-us/library/ms683188(VS.85).aspx

Apparently, that would be the expected result of a failed
GetEnvironmentVariable call. We didn't call GetEnvironmentVariable - not
on purpose, anyway. Did the loader call it? Is this a "misleading"
value, that means something else in this context? How long ago might
"last error" have happened? Nasm would be looking for "NASMENV", and
probably not finding it. The linker would probably be checking
environment variables, too. I wouldn't "expect" GetLastError to persist
from one program to another, but...

And this happens every time.

... just to rule it out, does "every time" include rerunning the program
without any assembling/linking in between?

Every time I debug the program in either OllyDebug or IDA Pro I find
eax
set to that same last error. My expectations are:

1) should be set to zero since none of my code has executed
2) should change since I can do other before running the program each
time

If I use a different C function, then I receive a different error. If
I use
sprintf, I receive an error invalid handler.

Any ideas?  Can you reproduce my error on your machines?

I'm just "stubborn" about Windows. When the last time to "reinstall
system" came around, I said "No, Enough!". I could easily access a
machine running Windows, but I'm trying to help MicroSoft avoid becoming
a "monopoly"... Sorry...

I run openBSD as my main os. I like Theo's vision of open. But I
also run OS X
and windows on different boxes. There is also vmware if you just want
to run an image.
MS is old news anyway. Google is the new MS. People just still like
them. And people
are just starting to get angry with Apple. Feels like a bad morning
soap opera.

Brian

.



Relevant Pages

  • Re: PYTHONPATH on Windows XP module load problem
    ... Surprise, surprise, surprise. ... Your expectations do not match reality. ... Why not expect to copy "pymsgque.so" over to Windows, ... To follow with a question asking ...
    (comp.lang.python)
  • Re: Anybody Using Windows 7 Beta 1 Yet?
    ... go to RC1 very soon, has met all of my expectations. ... You expected a new version of Windows to be stable? ... Microsoft will show some gratitude to its loyal customers who made the   ...
    (comp.databases.ms-access)
  • Re: Microsoft tries to polish a turd
    ... sluggish. ... Windows wasn’t always living up to your high ... expectations for a Microsoft product." ...
    (sci.electronics.design)
  • Re: Building Airliners
    ... Han Krol wrote: ... You have your choice of which way to do windows. ... Sometimes in modeling we want to meet viewers expectations, even when those expectations do not really agree with reality, as in overly dark panel lines and many other illusions. ...
    (rec.models.scale)
  • Re: Mount Windows shares to Solaris?
    ... Solaris boxes. ... I could not find any way to change this on the Windows ... Google leads to a lot of ... What is the easiest way to mount Windows shares on Solaris 10 05/08? ...
    (comp.unix.solaris)