Thread: BCB with Access error (HELP____)))

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    37

    BCB with Access error (HELP____)))

    hello
    please can any body help with thiS???????????

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    What you probably have is a variable/pointer trying to access memory it shouldnt. Impossible to say more precisly without seeing code that replicates the error.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    well, this is an application that tries to connect to the database, it works normally, but when I save it and then go back it, it makes that error.......

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    So put a breakpoint in your code just before it crashes (you know the circumstances which lead to the crash), then single step your way through the code until you spot something wrong.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    well, I am sure that I dont have a any error in the C++ syntax, so it may be an error in the memory, ..................it is amazing me I cant catch that error even by break point as u have said

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > well, I am sure that I dont have a any error in the C++ syntax
    So am I, otherwise you'd never be running any code in the first place.

    But getting something to compile is 10% of the problem, getting it to do exactly what you want is far more difficult.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    And if you are dealing with pointers you have a possible error right there. A pointer which you think is valid might actually not be valid at all, just that you havent done any testing to check if its valid or something like that.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  8. #8
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    I dont know much about pointers, so what might casues problems in pointers????

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I dont know much about pointers
    I would suggest you get much more practice in on simpler programming projects before embarking on a large project involving inter-process communication.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  10. #10
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    well, the software that I am trying to make is for the company that I am working in it. so like what programs can I learn from inter-process communication

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You mean someone hired you for your programming skills, and now you want more help from people to get your own job done?

    You're in the wrong job pal if you're a programmer and don't know "much about pointers"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  12. #12
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    well I am not a pure programmer, My major is Information Technology, we haven't gone into details with pointers, so I want to know how much they are used in programming./"/

    I am here to get information from others not on getting my own job by others, but some basic information and ideas from experienced users would be useful, right!??!??

  13. #13
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > so I want to know how much they are used in programming
    Which is entirely different from the question you first asked.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  14. #14
    Registered User
    Join Date
    Apr 2006
    Posts
    37
    well, tell me what is the first step then towards pointers/.............

  15. #15
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    First step is to read about them.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. access to devices
    By pastitprogram in forum C++ Programming
    Replies: 1
    Last Post: 06-06-2008, 11:16 PM
  2. Order of access labels in class definition
    By Mario F. in forum C++ Programming
    Replies: 10
    Last Post: 06-16-2006, 07:13 AM
  3. ww hosting and SSH access
    By spoon_ in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 04-07-2005, 08:49 AM
  4. Direct disk access in DOS
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-26-2002, 02:52 PM