Function Failure Errors

From RAD Studio
Jump to: navigation, search

Go Up to CodeGuard Errors Index

CodeGuard reports function calls that fail, as indicated by their return value.

In the following example, the close function is given an invalid file handle, which causes it to return a value indicating that it was unable to close a file.

Error 00009. 0x820000 (r) (Thread 0xFFF840F1):
Function failure:
close(0x80868086 [-2138668922])=0xFFFFFFFF [-1]
| lang.cpp line 125:
|    // uninitialized data usage //
|    //--------------------------//
|>   close(m->handle);
|
|
Call Tree:
   0x00401236(=LANG.EXE:0x01:000236) lang.cpp#125
   0x00407EED(=LANG.EXE:0x01:006EED)
Personal tools
Newest Version: XE
In other languages