Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Accessing a CExtCombobox from a DLL in debug mode crashes. Collapse All
Subject Author Date
Dennis Ioakim Jan 10, 2012 - 5:13 AM


I am using a CExtCombobox in my main application, but i need to manipulate it from a DLL.

I pass a pointer of the CExtCombobox to my DLL:

InitDLL((CCombobox*) &m_MyEXtCombo);


The DLL has no information about CExtCombobox and ProfUIS and handles the pointer as a pointer to a CCombobox.

In RELEASE MODE there is no problem, everything works fine.

In DEBUG MODE however, the application crashes if any combobox method is called. (i.e. p__MyEXtCombo->GetCurSel() )

I am using the 2.87 version of ProfUIS, Unicode, DLL.

Thanx in advance for looking in to this.

Technical Support Jan 12, 2012 - 3:04 AM

1 Your DLL is MFC Extension DLL type.
2 The code accessing CObject-derived class instances should be the same thread where objects were instantiated.