Thread: Invalid access to memory

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    99

    Invalid access to memory

    Dear experts,

    please help me how to solve this,

    i have some gui design for viewer in java, and i have some actual functionalities to be performed for that editor in c++ , for that i am JNI which provide a interface between the two,

    here using JNI i am first calling the gui to be designed and after that i am loading the DLL i think it successfull but when i create a object of any class from that DLL it gives me

    Invalid access to memory location


    can you please tell me what is the reason,
    thanks in advance.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It means that the code does something it should not. That the code is broken, that there is a bug in it.
    Specifically, it means it tries to access memory it has no business using. This can be, but is not limited to, buffer overruns or using freed memory.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory access performance
    By Kempelen in forum C Programming
    Replies: 1
    Last Post: 12-11-2009, 08:44 AM
  2. tools for finding memory leaks
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2009, 11:41 AM
  3. Memory access I can't get
    By caroundw5h in forum C Programming
    Replies: 25
    Last Post: 03-04-2005, 05:42 PM
  4. Onboard video card memory access
    By HermioneFan in forum Game Programming
    Replies: 1
    Last Post: 05-28-2003, 09:53 AM
  5. Memory Access Error when using Strcpy()
    By fgs3124 in forum C Programming
    Replies: 2
    Last Post: 03-15-2002, 03:07 PM