1
edit
Changes
no edit summary
'''A:''' Go to Connection >> Data, and change the string that says "xterm" to "linux". Make sure to save a new profile with this option; if you select a saved profile after making that change, it is not retained! <br>
'''Submitted by:''' Kevin Kofler and Lucas Passarella, Team 9 <br><br>
'''Q:''' Has anyone compiled his program on matrix without any crashing? I think a1test.cpp has some problems and it causes crashing on matrix.<br>'''A:''' I have (Kevin from Team 9). What kind of crash are you talking about? Everything works fine when I compile.<br>'''Q:'''It compiles, but when we edit the line for the first time and then press enter, then it crashes.<br>'''A:''' Make sure that you aren't overwriting the null byte at any point in the editing. After terminating the edit() function, a1test does a strcmp() of str and the successful string. If str is missing a null byte, it might be strcmp() crashing your program. Are you getting a seg fault? (Submitted by Team 9)<br>'''A:''' Make sure your console window is long enough. The a1test.cpp sets ROW_ERRORS to 22 and then does row++ after every error. If your console is smaller than ~30 rows this makes the program try and print outside the screen and it crashes! (Answered by Team 6)<br>'''A:'''Julian Burton solved my problem. At the beginning I declared <br>char* original; original = new char[strlen(str) + 1]; strcpy(original, str);<br>but the size wasn't enough, so instead of strlen(str) + 1, I changed that to new char[maxStrLength + 1], and then it worked.<br>'''Submitted by:''' Shayan Vaghei & Mohamed Baig Team4<br><br>
'''Q:''' How to avoid heap corruption? When compiling and running I run a1test with visual studioif I keep pressing RIGHT, the program crashes after sending some keystrokes with this error: heap corruption. Even when<bru>Critical error detected c0000374 Windows has triggered a breakpoint in a1.exe. This may be due to a corruption of I replace my custom line edit code with skeleton methods (display does nothing, edit returns RIGHT) the program still crashes with corrupt heap, which indicates a bug in a1.exe or any of the DLLs it has loaded.</u>
<br>
<br>
'''A:''' No, program your function in a way that it does follow the given instructions but it does not print any character passed the screen size and It should NOT print the rest on next line. (Answered by Team 1)<br>'''Submitted by:''' Team 1 <br><br> '''Q:''' Can I create 64-bit executable using borland compiler? <br>'''A:''' No you cannot create 64-bit executable. With Borland compiler you can only create 32-bit executable. <br>'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br> '''Q:''' Can ncurses package capture mouse events ? <br>'''A:''' Yes ncurses library in linux can capture events from mouse but in some environments, xterm is used under the X window system. <br>'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 6 2 <br><br>
== Possible Additional Features: /Challenging & Interesting Enhancements ==
=== Features Proposed by Team 42 ===
#[[:File:Dumb_word_wrapping.jpg|Dumb word wrapping]] - Cut off string at the end of line and wrap it (Proposed by Team42)
#[[:File:Smart_word_wrapping.jpg|Smart word wrapping]] - Smart word wrapping - words are not cut off mid-word while wrapping (Proposed by Team42)
#Optimization - the 'test' compiled .exe has efficiency issues when scrolling around the string (Proposed by Team42)
#Colors - you can add color to the test program if you're making your own main
#Timer - to keep track of how long the user has been running your custom main
#Files - Read string from file, use that string for editing, then write the result string to that file, overwriting original