Computer Science Canada C++ debug error on turing? What? |
Author: | Insectoid [ Fri Apr 18, 2008 9:20 am ] |
Post subject: | C++ debug error on turing? What? |
I am making a simple program in turing that mimics a vending machine. I have put 6 pictures in, and it works fine. unfortunately, I tried to put in another picture in a different spot further down the code and got a strange error! I got an error poppup from 'Microsoft Visual C++ Debug Library' that says Quote: Debug assertion failed! Program C:\program files\turing\turing.exe File: dbgheap.c line: 1044 For more information...bla bla bla Then, if I click 'Abort', turing closes. if I click 'ignore' the program runs without the picture. if I click 'retry' (to debug) I get another error message Quote: The environment (not your program) has crashed. This error is caused by a bug in the environment and is not you fault! details about the crash have been saved in \\bla bla bla... if possible, please e-mail to: yadda @ bla.com cause of crash: Breakpoint reached Note- I was not debugging while running the program, I was just...running it. I'm not even running C++! Help appreciated! Very appreciated... If it doesn't get fixed...I fail... |
Author: | OneOffDriveByPoster [ Fri Apr 18, 2008 9:33 am ] |
Post subject: | Re: C++ debug error on turing? What? |
Source code and the "blah blah blah" file would be nice. Can't help you otherwise. Please do not forget to post the graphics too. PM if you are afraid of code stealing. |
Author: | Insectoid [ Fri Apr 18, 2008 9:37 am ] | ||
Post subject: | RE:C++ debug error on turing? What? | ||
Okay, Here's my code:
|
Author: | Insectoid [ Fri Apr 18, 2008 9:44 am ] |
Post subject: | RE:C++ debug error on turing? What? |
After 'line: 1044' there is a bit I missed before: Quote: Expression:_CrtIsValidHeapPointer(pUserData) For more information on how your program can cause an assertion failure, please see the Visual C++ documentation on asserts. This is a school computer, so the "blah blah blah" file was saved in "\\cwdhs-cfs\home\students\dykstjor\panic.log" E-mail bug to: Readybugs@hsa.on.ca hope that helps. |
Author: | andrew. [ Fri Apr 18, 2008 8:28 pm ] |
Post subject: | Re: C++ debug error on turing? What? |
insectoid @ Fri Apr 18, 2008 9:20 am wrote: I'm not even running C++!
Turing isn't natively supported so it's being run in a C++ environment. So, yeah, you are really using C++ with Turing syntaxes. And about your problem, no idea. I've never seen it before. |
Author: | CodeMonkey2000 [ Sat Apr 19, 2008 10:13 am ] |
Post subject: | RE:C++ debug error on turing? What? |
The correct term is that it's interpreted ![]() |