Thread: Need help understanding this: Error -1073741819

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    the very first thing it does is attempt to load the dll then reports it is going to try the API, then it checks the handle and reports failue in the event of a NULL handle and skips the rest of the code via a goto statement,
    goto, really?? No wonder you're having problems.

    By the way I would be careful about returning a negative value from main(), I would stick with positive values that can be represented by an unsigned char when working with gcc (not sure about Visual C).

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,735
    Quote Originally Posted by jimblumberg View Post
    goto, really?? No wonder you're having problems.
    when used correctly goto is not a problem, besides I normally only use goto to cut down on repeated closing calls to things like free() or CloseHandle() such as
    Code:
    goto main_free_tmp;
    Quote Originally Posted by jimblumberg View Post
    By the way I would be careful about returning a negative value from main(), I would stick with positive values that can be represented by an unsigned char when working with gcc (not sure about Visual C).
    Thanks for the advice, for now I just switched to throw GetLastError() into it instead so at the very least the system should be able to understand it

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help In Understanding Error
    By trey.nobles in forum C Programming
    Replies: 3
    Last Post: 09-04-2016, 06:23 PM
  2. Replies: 14
    Last Post: 07-06-2016, 01:48 PM
  3. Process terminated with status -1073741819
    By smithx in forum C Programming
    Replies: 5
    Last Post: 11-01-2010, 11:13 PM
  4. Help understanding error message
    By kotoko in forum C Programming
    Replies: 2
    Last Post: 01-13-2009, 11:57 AM
  5. new question: understanding parse error
    By Pig in forum C++ Programming
    Replies: 3
    Last Post: 11-19-2003, 01:14 PM

Tags for this Thread