Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala c++ active control used in VB Pin
includeh1028-Apr-04 2:44
includeh1028-Apr-04 2:44 
GeneralRe: a c++ active control used in VB Pin
Cedric Moonen28-Apr-04 2:58
Cedric Moonen28-Apr-04 2:58 
GeneralASSERT(_crtIsvalidheappoint() )error, Help! Pin
orteaorme28-Apr-04 2:40
sussorteaorme28-Apr-04 2:40 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
Mike Dimmick28-Apr-04 2:46
Mike Dimmick28-Apr-04 2:46 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
orteaorme28-Apr-04 2:52
sussorteaorme28-Apr-04 2:52 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
Mike Dimmick28-Apr-04 5:09
Mike Dimmick28-Apr-04 5:09 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
orteaorme28-Apr-04 17:27
sussorteaorme28-Apr-04 17:27 
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
Paul Ranson28-Apr-04 3:32
Paul Ranson28-Apr-04 3:32 
What compiler errors do you get?
What pointer is causing the assertion? (You should be able to 'break' and then look at the call stack)
As pointed out you need to delete an array with delete [].
If the allocation is always 30 why are you using 'new'?
It's possible the problem is related to having your class in a DLL, I'm currently fuzzy on when this matters from a heap pov. Try putting a factory function in your DLL,
A * CreateA ()
{
    return new A ;
}
void DestroyA ( A * )
{
    delete A ;
}
and using that rather than direct 'new' and 'delete'.

In general I'd highly recommend you not use 'new' and 'delete' but use 'std::vector' or another container for the array and 'std::auto_ptr' or another smart pointer for the object.

Paul
GeneralRe: ASSERT(_crtIsvalidheappoint() )error, Help! Pin
orteaorme28-Apr-04 17:29
sussorteaorme28-Apr-04 17:29 
Generalgeting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 1:42
ravjak28-Apr-04 1:42 
GeneralRe: geting font from hdc (GDI) in API way Pin
Roger Allen28-Apr-04 1:46
Roger Allen28-Apr-04 1:46 
GeneralRe: geting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 2:41
ravjak28-Apr-04 2:41 
GeneralRe: geting font from hdc (GDI) in API way Pin
Steve S28-Apr-04 1:47
Steve S28-Apr-04 1:47 
GeneralRe: geting font from hdc (GDI) in API way Pin
ravjak28-Apr-04 2:37
ravjak28-Apr-04 2:37 
GeneralFormat string function Pin
Anonymous28-Apr-04 1:29
Anonymous28-Apr-04 1:29 
GeneralRe: Format string function Pin
toxcct28-Apr-04 1:50
toxcct28-Apr-04 1:50 
GeneralRe: Format string function Pin
Anonymous28-Apr-04 2:07
Anonymous28-Apr-04 2:07 
GeneralRe: Format string function Pin
toxcct28-Apr-04 2:19
toxcct28-Apr-04 2:19 
GeneralRe: Format string function Pin
ravjak28-Apr-04 2:33
ravjak28-Apr-04 2:33 
GeneralHelp me, please Pin
Roozbeh6928-Apr-04 1:20
professionalRoozbeh6928-Apr-04 1:20 
GeneralIsConnected to internet Pin
Member 101882328-Apr-04 0:32
Member 101882328-Apr-04 0:32 
GeneralRe: IsConnected to internet Pin
Jitendra gangwar28-Apr-04 0:56
Jitendra gangwar28-Apr-04 0:56 
GeneralRe: IsConnected to internet Pin
Antti Keskinen28-Apr-04 1:00
Antti Keskinen28-Apr-04 1:00 
GeneralRe: IsConnected to internet Pin
vcplusplus28-Apr-04 2:45
vcplusplus28-Apr-04 2:45 
GeneralRestarting a running program Pin
pma27-Apr-04 23:57
pma27-Apr-04 23:57 

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.