Re: Windows Error at run-time...

From: John Harrison (john_andronicus_at_hotmail.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 22:07:08 +0100

On 21 Jul 2004 13:58:44 -0700, Reimar Twelker <existenzquantor@gmx.de>
wrote:

> Hi there,
> I'm learning OpenGL and unfortunately I am also new to C++...
> My problem is that I am not used to pointers (yet) and my little app
> always crashes at run-time...access violation of some sort.
>
> The windows message reads:
> ...the expression <memory address> points to <0x00000000>. The process
> 'written' could not be executed...
>
> I have been trying to fix this for a few days now and I NEED HELP!
>
> ...I don't have to tell you that I don't know ANYTHING about debugging
> in Visual C++ ...:)

Visual C++ has an excellent and intuitive debugger, learning how to use it
would probably be the quickest way of solving your problem. Look on it as
an opportunity.

>
> I think that my problem is caused by some sort of NULL-pointer I am
> writing..

Seems plausible.

> By the way: I have written a class and when I try to create an
> instance, my app doesn't even create an application window but crashes
> on the spot. I came across this (new?) problem when I tried to avoid
> using pointers :| Maybe something is wrong with my class definition
> but I'm not new to OOP, I have been using Java for quite some time...
>

In the absence of any code it's very hard to help. Please post the
smallest program you can that has this problem.

Also please note that OpenGL is not on topic in this group. If you program
is stuffed full of OpenGL code or if the problem is something to do with
the way you are using OpenGL then you would be better off asking your
question elsewhere (not sure where tho').

Perhaps you could read this group's welcome message first, to get an idea
of what this group is about.

http://www.slack.net/~shiva/welcome.txt

john



Relevant Pages

  • Re: polymorphic structs with "methods"
    ... without checking some sort of struct "type" member and then using a ... switch statement to call the appropriate function for that type. ... range from "hideous worst practice ever" to "yep people do that sort ... the tedium of initializing each instance's pointers. ...
    (comp.lang.c)
  • Re: Writing a program to sort numbers - HELP!
    ... You may not have a choice but strtol is preferred to atoi and fgets is ... Then we using a sort function to sort the ... >int main ... probably meant *u and *v to dereference the pointers you received from ...
    (comp.lang.c.moderated)
  • Switching for COInitialize to OleInitialize crashes app
    ... A simple WTL SDI app with the following helper class crashes after a switch ... from CoInitialize and CoUnitialize to OleInitialize and OleUninit.... ... then it doesn't crash. ...
    (microsoft.public.vc.atl)
  • Re: PictureBox1 GDI+ error
    ... Besides the picturebox there are only a few labels on the ... The application NEVER crashes in the IDE running on Windows XP ... including the one that hosts VS 2005 and that is used to develop the app. ... Dim WebClient As New System.Net.WebClient ...
    (microsoft.public.vb.general.discussion)
  • Re: [Announce] 2.6.29-rt1
    ... I've got crashes when I run an app with thread with RT priority. ... This crash could happen on any comman, ... and after just run a simple "ifconfig" ...
    (Linux-Kernel)