Mail Archives: djgpp/1998/06/14/07:13:42
On 14 Jun 1998, Gili wrote:
> The problem was that I had " BYTE* character" which I
> was casting into (int*) and using in ScreenGetChar().. Little did I
> know that ScreenGetChar() is very sensative about this issue and it
> lead to seemingly random SIGSEGV errors poping up everywhere.. Please
> add some sort of warning about this in the DOCs. Thank you,
I don't really understand what did your code try to do. Did you try
to pass pointers to a char as the first and the second arguments of
the function? If so, this is basic C: any program that does this
risks a crash. I don't think libc.info can explain all of the
pitfalls of using incorrect C code.
Please explain in more detail what did you try to do, including a
short code snippet.
- Raw text -