jumaris / cnpack

Automatically exported from code.google.com/p/cnpack
0 stars 0 forks source link

CnDebugger doesn't display anything #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I tried CnWizards_0.9.7.591 today and its CnDebug unit.
If I add in my code CnDebugger.LogMsg('Hello'); the CnDebugViewer.exe is 
automatically launched but nothing is diplayed.

Same thing with Trace... Log...

Original issue reported on code.google.com by yann.papouin on 4 Oct 2010 at 7:06

GoogleCodeExporter commented 9 years ago
The issue come from the debug viewer and it's CreateFileMapping with:
  SCnDebugPrefix = 'Global\';
  SCnDebugMapName = SCnDebugPrefix + 'CnDebugMap';

In order to create a Global file mapping, the user needs to have the 
"SeCreateGlobalPrivilege" privilege:

from: http://msdn.microsoft.com/en-us/library/bb530716(v=vs.85).aspx

SE_CREATE_GLOBAL_NAME

Required to create named file mapping objects in the global namespace during 
Terminal Services sessions. This privilege is enabled by default for 
administrators, services, and the local system account.

User Right: Create global objects.

    Windows XP/2000:  This privilege is not supported. Note that this value is supported starting with Windows Server 2003, Windows XP with SP2, and Windows 2000 with SP4.

Original comment by yann.papouin on 11 Sep 2011 at 6:37

GoogleCodeExporter commented 9 years ago
It seems that a solution would be to replace Global with Local:
  SCnDebugPrefix = 'Local\';
  SCnDebugMapName = SCnDebugPrefix + 'CnDebugMap';

Original comment by yann.papouin on 11 Sep 2011 at 6:37