NO

Author Topic: Version 7.00 x86 fails to open 2+ source files  (Read 2937 times)

sapero

  • Guest
Version 7.00 x86 fails to open 2+ source files
« on: April 04, 2013, 10:07:14 AM »
Exact version: 7.00 (2012-09-23) Multilanguage x86, Currently available to download.
Host: Windows 7 x64 Enterprise.

When I open a project in the IDE and try to view second source file, the IDE fails to display that second file. However I am able to display one .c file and .rc script.

Some hints discovered:
Microsoft Spy++ attached to Pelles' MDI client shows that WM_MDICREATE returns NULL handle:
Code: [Select]
<00009> 03CA06C8 S WM_MDICREATE lpmdic:0028F138
<00010> 03CA06C8 R WM_MDICREATE hwndChild:(null)
<00011> 03CA06C8 S WM_MDICREATE lpmdic:0028F138
<00012> 03CA06C8 R WM_MDICREATE hwndChild:(null)
OllyDbg hooked into SendMessageW shows that MDICREATESTRUCT->szTitle is NULL.
In my opinion a NULL caption causes the failure. Very often passing title=NULL to CreateWindowEx forces a failure.

The x64 release of the IDE does not fail like x86. Leaving 2 project source files open while closing the IDE, and then restarting it will re-open both, but the 32-bit version of Pelles' IDE just opens only the first stored source file.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Version 7.00 x86 fails to open 2+ source files
« Reply #1 on: April 04, 2013, 11:40:40 AM »
Check register key MaxFileSize from HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Application
Use size like 0x08000000 or lower for 32-bit version or delete it and start poide.exe again.
« Last Edit: April 04, 2013, 11:45:16 AM by timovjl »
May the source be with you

sapero

  • Guest
Re: Version 7.00 x86 fails to open 2+ source files
« Reply #2 on: April 04, 2013, 12:22:20 PM »
Thanks, that helped for now.

MaxFileSize was 0x40000000, and now after I tested and closed the IDE, the value has been recreated as 0x08000000.
Executing x64 then x86 releases does not revert that problem.