|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Trouble with new operator
From: Henrik Larsson (henlar
FOI.SE)
Date: Fri Nov 12 2004 - 06:35:59 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Im having trouble to get this code to execute more than twice (2 calls to
the interface)
in IMyInterface.cpp:
mTFarr = new int[mTFSize];
in IMyInterface.h
int *mTFarr;
CMyInterface()
{
mTFarr=NULL;
}
I get the following access error:
HEAP[HardwareInterface.exe]: Invalid Address specified to RtlSizeHeap(
130000, 15c04c )
First-chance exception in HardwareInterface.exe (NTDLL.DLL): 0xC0000005:
Access Violation.
First-chance exception in HardwareInterface.exe (KERNEL32.DLL): 0xE06D7363:
Microsoft C++ Exception.
Is it impossible to use "new" in the interface proxy class.
It looks from the debugger as the constructor i executed for every DCOM-
call. If that a correct obervation?
//Henrik Larsson
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]