Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » [BUG] MscBuilder crashes the IDE when building all shared.
[BUG] MscBuilder crashes the IDE when building all shared. [message #40196] |
Tue, 02 July 2013 07:29 |
rxantos
Messages: 72 Registered: October 2011
|
Member |
|
|
I tracked the bug to:
AddObjectExports
It uses FileMapping, and opens it, but forgets to map it before requesting a pointer (which is NULL unless you map the file.)
Adding
if(!mapping.Map(0, mapping.GetFileSize())) {
return;
}
before
const byte* begin = mapping.Begin();
prevents the crash.
Note: I'm no expert of the coff format. So I wouldn't know the maximum size it should look for. So instead I try to map the whole file.
|
|
|
Goto Forum:
Current Time: Sat May 04 16:46:56 CEST 2024
Total time taken to generate the page: 0.02751 seconds
|