Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Access Violation in NTDLL.DLL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tkindler  
View profile  
 More options Oct 1 1999, 3:00 am
Newsgroups: comp.os.ms-windows.programmer.win32
From: tkind...@my-deja.com
Date: 1999/10/01
Subject: Access Violation in NTDLL.DLL
Does anyone know why this program, when linked with msvcrt.dll, and
"/nodefaultlib", crashes with...

First-chance exception in TestMe.exe (NTDLL.DLL): 0xC0000005: Access
Violation.

...

#include <stdio.h>

void main(void)
{
        fprintf(stdout, "Hello there!!\n");

}

-Tom

Sent via Deja.com http://www.deja.com/
Before you buy.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Ebben  
View profile  
 More options Oct 1 1999, 3:00 am
Newsgroups: comp.os.ms-windows.programmer.win32
From: "Tim Ebben" <T...@LevonsWake.com>
Date: 1999/10/01
Subject: Re: Access Violation in NTDLL.DLL
It works fine for me, using VC5 SP3.  I added msvcrt.lib to the list of libraries to link with, checked "ignore all
default libraries," built, and ran with no problems.

--
Timothy J. Ebben
Levon's Wake, Inc.
Email: T...@LevonsWake.com
Web: www.LevonsWake.com

----- Paul Bunyan - Best damn logger there EVER was!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tkindler  
View profile  
 More options Oct 9 1999, 3:00 am
Newsgroups: comp.os.ms-windows.programmer.win32
From: tkind...@my-deja.com
Date: 1999/10/09
Subject: Re: Access Violation in NTDLL.DLL
Thanks to Tim's expert assistance I now realize why my program was
crashing...

What I didn’t understand is that when I had previously built my program
without the “/nodefaultlib” linker switch I was implicitly linking with
“libc.lib” (the static, single threaded library).  I also didn’t
understand that I must configure the compiler to generate code that is
appropriate for the library I am linking with.  Thus, when I configured
the linker with the “/nodefaultlib” switch and then added msvcrt.lib (a
dynamic, multithreaded import library) to my list of libraries without
reconfiguring the compiler I created a conflict.

Resolution:     I needed to change the compiler configuration to
generate object code for use with dynamic, multi-threaded libraries

How:    Project Menu, Settings, C/C++ Tab, Category: Code Generation,
Use run-time library: Multithreaded DLL

IMHO:   I was very disappointed that the linker did not warn me about
the potential problems I was creating when it encountered object code
which was not appropriate for the library it was being linked with!

Tom

In article <0%3J3.3042$L85.199...@ptah.visi.com>,
  "Tim Ebben" <T...@LevonsWake.com> wrote:

> It works fine for me, using VC5 SP3.  I added msvcrt.lib
> to the list of libraries to link with, checked "ignore all
> default libraries," built, and ran with no problems.

> --
> Timothy J. Ebben
> Levon's Wake, Inc.
> Email: T...@LevonsWake.com
> Web: www.LevonsWake.com

Sent via Deja.com http://www.deja.com/
Before you buy.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google