Opened 14 years ago

Closed 14 years ago

#6392 closed bug (fixed)

DEBUG app server and DesktopSettings

Reported by: czeidler Owned by: stippi
Priority: normal Milestone: R1
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

when running the appserver with debug enabled it throw you into the debugger when starting processcontrol twice. This happens in DesktopSettings.cpp:

DesktopSettings::DesktopSettings(Desktop* desktop)

: fSettings(desktop->fSettings)

{ #if DEBUG

if (!desktop->fWindowLock.IsWriteLocked()

&& !desktop->fWindowLock.IsReadLocked()) debugger("desktop not locked when trying to access settings");

#endif }

and this is called from ServerApp.cpp:1444

Anyone knows more?

Change History (3)

comment:1 by anevilyak, 14 years ago

Component: - GeneralServers/app_server
Status: newassigned
Version: R1/alpha2R1/Development

comment:2 by stippi, 14 years ago

Yes, I believe the assert is "invalid". I ran across this problem before, but my memory is failing me. I think it was something to do with the lock happening in the constructor of a derived class (LockedDesktopSettings ?), but it's checked too early by the assert.

comment:3 by czeidler, 14 years ago

Resolution: fixed
Status: assignedclosed

Ok removed it.

Note: See TracTickets for help on using tickets.