![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Problems in obtain the Input value of Fl_Float_Input classHi! I am with a problem, I am unable to obtain the value of a Fl_Float_Input, the object appears correctly in the window but when I try to catch the value of the object of the class Fl_Float_Input it seems that the pointer is with problems. I am using Microsoft Visual Studio 2005 and the problem that appears is "Unhandled exception at 0x1022faec (msvcr80d.dll) in Project.exe: 0xC0000005: Access violation reading location 0xfeeefeee." and the program breaks.
He is the .h and the .cpp of this class: CPP / C++ / C Code:
CPP / C++ / C Code:
Hope someone can help me understand this stuff!! Thanks!! |
|||
|
#2
|
|||
|
|||
Re: Problems in obtain the Input value of Fl_Float_Input classi think those access violations indicate, that your code is trying to write to memory location that it has not claimed. hence it is "violating" your operating systems memory management. if it succeeded, that would be a "buffer overrun" where by it could (possibly) inject your own data or worse code into another program, or your operating system's reserved memory.
an example would be this: CPP / C++ / C Code:
this is a buffer overrun because i declared the array to be two characters long and then tried to write to it much more than that. so as far as your code is concerned, try commenting out those callbacks and see if it still does it. I'm too much of noob so say whats wrong just by looking at it, but i got the same problem with callbacks before. |
|
#3
|
|||
|
|||
Re: Problems in obtain the Input value of Fl_Float_Input classsorry that code would just give an assignment error, this code would possibly give you your access violation
CPP / C++ / C Code:
|
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble integrating console code into GUI | Barman007 | Java Forum | 18 | 15-May-2008 13:05 |
| Hard drive/CPU Diagnoses Issues | binarybug | Computer Hardware Forum | 1 | 22-Jan-2007 19:23 |
| Message Class | TransformedBG | C++ Forum | 5 | 29-Nov-2006 21:28 |
| C++ class -- Please help | vnca_1 | C++ Forum | 3 | 14-Jun-2006 12:31 |
| a tester class and then some. | postage | Java Forum | 1 | 06-May-2006 15:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The