Click here to Skip to main content
15,927,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a blocking function for a thread Pin
palbano12-Feb-03 5:17
palbano12-Feb-03 5:17 
GeneralRe: Create a blocking function for a thread Pin
valikac12-Feb-03 8:19
valikac12-Feb-03 8:19 
GeneralDrag and drop to a MFC Application Dialog based Pin
Yohome12-Feb-03 3:04
Yohome12-Feb-03 3:04 
GeneralRe: Drag and drop to a MFC Application Dialog based Pin
Hans Ruck12-Feb-03 4:54
Hans Ruck12-Feb-03 4:54 
GeneralRe: Drag and drop to a MFC Application Dialog based Pin
Yohome12-Feb-03 6:17
Yohome12-Feb-03 6:17 
GeneralRe: Drag and drop to a MFC Application Dialog based Pin
Hans Ruck12-Feb-03 21:25
Hans Ruck12-Feb-03 21:25 
QuestionHow to prevent my application from showing in the taskbar? Pin
julych12-Feb-03 2:51
julych12-Feb-03 2:51 
Generalbugging memory exception when delete[] Pin
Cho Sijun12-Feb-03 2:47
Cho Sijun12-Feb-03 2:47 
Hello, maters please help me.
In my VC++ code, in a dll, I defined a function which looks somewhat like

void *comport_read()
{
BYTE *pData;
....
pData = new BYTE[size];
....
return pData
}

Now func() gets called from a client.

void handler()
{
BYTE *pData;
pData = (BYTE *) func();
...
delete[] pData;
}

When both the DLL and the client are of debug version, errors seem latent.
But when I create them as release verions, memory exception shows up.
The apparently same symptom can be generated such as in the following lines:

BYTE *pData = new BYTE[100];
delete[] pData;
delete[] pData;

So I suspected I could have deleted[] the same pointer to dynamically
allocate memory twice but never find any wrong. Of course the same symptom
doesn't mean the same cause.

I need at least how to tackle this sort of bugging memory problems if
not the exact sotution avaliable.

GeneralRe: bugging memory exception when delete[] Pin
Roger Allen12-Feb-03 2:51
Roger Allen12-Feb-03 2:51 
GeneralThank you. some more questions. Pin
Cho Sijun12-Feb-03 15:37
Cho Sijun12-Feb-03 15:37 
GeneralRegSetValueEx Pin
ns12-Feb-03 2:03
ns12-Feb-03 2:03 
GeneralRe: RegSetValueEx Pin
Joaquín M López Muñoz12-Feb-03 2:40
Joaquín M López Muñoz12-Feb-03 2:40 
GeneralRe: RegSetValueEx Pin
ns12-Feb-03 2:53
ns12-Feb-03 2:53 
GeneralReading BIOS values in VC6 Pin
Jan7512-Feb-03 1:58
Jan7512-Feb-03 1:58 
GeneralRe: Reading BIOS values in VC6 Pin
Mike Nordell12-Feb-03 7:05
Mike Nordell12-Feb-03 7:05 
GeneralRe: Reading BIOS values in VC6 Pin
Jan7512-Feb-03 7:46
Jan7512-Feb-03 7:46 
GeneralCToolBarCtrl Pin
Anonymous12-Feb-03 1:54
Anonymous12-Feb-03 1:54 
Generalchanging filedialog path during its life Pin
Tibor Blazko12-Feb-03 1:22
Tibor Blazko12-Feb-03 1:22 
GeneralVisual studio problem Pin
Roger Allen12-Feb-03 0:35
Roger Allen12-Feb-03 0:35 
GeneralRe: Visual studio problem Pin
Alois Kraus12-Feb-03 1:41
Alois Kraus12-Feb-03 1:41 
GeneralRe: Visual studio problem Pin
Roger Allen12-Feb-03 2:01
Roger Allen12-Feb-03 2:01 
Generalcan't get dll running Pin
Semlo11-Feb-03 23:55
Semlo11-Feb-03 23:55 
Generalsimple question Pin
Willem B11-Feb-03 23:53
Willem B11-Feb-03 23:53 
GeneralRe: simple question Pin
HENDRIK R12-Feb-03 0:21
HENDRIK R12-Feb-03 0:21 
GeneralRe: simple question Pin
MAAK12-Feb-03 0:27
MAAK12-Feb-03 0:27 

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.