Thread: Cause of a Win32 error

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    12

    Cause of a Win32 error

    If when I run a compiled C program, and I receive a Win32 error...what would cause that and where should i be looking in my code to correct that?

    memory allocation? sizes?

    thanks

  2. #2
    Registered User
    Join Date
    Jul 2010
    Posts
    12
    Actually it's an "unhandled Win32 Exception" that occured...

  3. #3
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    I receive a Win32 error
    Care to refine your description a bit? Win32 is the Windows 32-bit API, and there's a lot of stuff that can happen in that regard.
    Consider this post signed

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    12
    It's actually an Exception...

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Most probably cause: dereferencing a bad pointer.
    Use a debugger.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Jul 2010
    Posts
    12
    well i'm using CodeBlocks to write and build by C code, and it compiled without issue...however when i executed it, i received the Win32 exception.
    Could you recommend a good debugger that is free, i do have Microsoft Visual Studio I could use...

  7. #7
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    The problem is you're running Windows.

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CDdotdot47
    well i'm using CodeBlocks to write and build by C code, and it compiled without issue...however when i executed it, i received the Win32 exception.
    Could you recommend a good debugger that is free
    If you installed a certain bundle, CodeBlocks would have the gdb debugger integrated.

    Quote Originally Posted by CDdotdot47
    i do have Microsoft Visual Studio I could use...
    You could, but that would be a different IDE and a different compiler.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM