U++ framework
Do not panic. Ask here before giving up.

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 is currently offline  rxantos
Messages: 73
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.
Previous Topic: Changes in SysInfo Bazaar package (svn 6019)
Next Topic: [FEATURE] PCH support
Goto Forum:
  


Current Time: Sat Apr 25 15:40:43 GMT+2 2026

Total time taken to generate the page: 0.00507 seconds