Click here to Skip to main content
15,890,947 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: CRC32 Pin
Mikko Puonti12-Apr-04 20:24
Mikko Puonti12-Apr-04 20:24 
GeneralRe: CRC32 Pin
PJ Arends18-Apr-04 14:59
professionalPJ Arends18-Apr-04 14:59 
GeneralManaged DirectX problem Pin
reznod9-Apr-04 8:59
reznod9-Apr-04 8:59 
GeneralRe: Managed DirectX problem Pin
Mikko Puonti9-Apr-04 23:18
Mikko Puonti9-Apr-04 23:18 
GeneralRe: Managed DirectX problem Pin
reznod10-Apr-04 7:04
reznod10-Apr-04 7:04 
GeneralDllImport problem Pin
reznod8-Apr-04 7:11
reznod8-Apr-04 7:11 
GeneralRe: DllImport problem Pin
Anthony_Yio13-Apr-04 0:42
Anthony_Yio13-Apr-04 0:42 
GeneralRichEditView error when closing VC.Net app Pin
BlackDice8-Apr-04 6:47
BlackDice8-Apr-04 6:47 
I have an app that I recently ported to .Net (an SDI app with Richedit as the view type). Everything is working fine and it runs fine with native and managed code mixed. But when I close the app, I get this error message: An unhandled exception of type 'System.NullReferenceException' occurred in FB.exe

Additional information: Object reference not set to an instance of an object.


this is happening in the following procedure, which I have never touched. (the offending line is pointed out)

CRichEditCntrItem* CRichEditView::GetInPlaceActiveItem() const 
{ 
ASSERT(m_lpRichEditOle != NULL); 
CRichEditDoc* pDoc = GetDocument(); 
CRichEditCntrItem* pItem = NULL; 

CReObject reo; 
HRESULT hr = m_lpRichEditOle->GetObject(REO_IOB_SELECTION, &reo, 
REO_GETOBJ_ALL_INTERFACES); //reo's interfaces are all in UNICODE 
if (GetScode(hr) == S_OK && (reo.dwFlags & REO_INPLACEACTIVE)) 
{ 
pItem = pDoc->LookupItem(reo.poleobj); 
if (pItem == NULL) 
pItem = pDoc->CreateClientItem(&reo); 
ASSERT(pItem != NULL); 
} 
return pItem; 
} 
I hope anyone can help me. Thanks

If it's broken, I probably did it

bdiamond
GeneralStrings Pin
Billly1237-Apr-04 23:41
sussBillly1237-Apr-04 23:41 
GeneralRe: Strings Pin
Cyric7419-Apr-04 13:55
Cyric7419-Apr-04 13:55 
GeneralCasting Problem for a beginner Pin
Hosam CFJ6-Apr-04 11:21
Hosam CFJ6-Apr-04 11:21 
GeneralRe: Casting Problem for a beginner Pin
Christian Graus6-Apr-04 11:41
protectorChristian Graus6-Apr-04 11:41 
GeneralRe: Casting Problem for a beginner Pin
Hosam CFJ6-Apr-04 12:18
Hosam CFJ6-Apr-04 12:18 
GeneralRe: Casting Problem for a beginner Pin
Christian Graus6-Apr-04 12:20
protectorChristian Graus6-Apr-04 12:20 
GeneralRe: Casting Problem for a beginner Pin
Nemanja Trifunovic6-Apr-04 13:14
Nemanja Trifunovic6-Apr-04 13:14 
GeneralRe: Casting Problem for a beginner Pin
Nemanja Trifunovic6-Apr-04 13:16
Nemanja Trifunovic6-Apr-04 13:16 
GeneralRe: Casting Problem for a beginner Pin
BlackDice12-Apr-04 11:07
BlackDice12-Apr-04 11:07 
GeneralInvitation Pin
Member 7951483-Apr-04 6:23
Member 7951483-Apr-04 6:23 
Generaladding managed extensions - Error! Pin
BlackDice2-Apr-04 3:40
BlackDice2-Apr-04 3:40 
Questiondo get_ and set_ have to be used in conjunction? Pin
charlener1-Apr-04 16:28
charlener1-Apr-04 16:28 
AnswerRe: do get_ and set_ have to be used in conjunction? Pin
charlener1-Apr-04 16:29
charlener1-Apr-04 16:29 
AnswerRe: do get_ and set_ have to be used in conjunction? Pin
Andy Wieberneit1-Apr-04 20:03
Andy Wieberneit1-Apr-04 20:03 
GeneralIterate through vector Pin
wadstar31-Mar-04 8:15
wadstar31-Mar-04 8:15 
GeneralManaged C++ and AfxOleInit Pin
mstanciu200030-Mar-04 21:29
mstanciu200030-Mar-04 21:29 
Generalcustom window drawing Pin
Darmochwal Robert30-Mar-04 10:36
Darmochwal Robert30-Mar-04 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.