Click here to Skip to main content
16,005,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: excel automation with visual studio 2005 Pin
crome14-Feb-07 16:06
crome14-Feb-07 16:06 
QuestionIam getting memory access violation error in VC Pin
harshadha11-Feb-07 23:28
harshadha11-Feb-07 23:28 
AnswerRe: Iam getting memory access violation error in VC Pin
benjymous11-Feb-07 23:34
benjymous11-Feb-07 23:34 
GeneralRe: Iam getting memory access violation error in VC Pin
harshadha12-Feb-07 0:11
harshadha12-Feb-07 0:11 
GeneralRe: Iam getting memory access violation error in VC Pin
benjymous12-Feb-07 1:15
benjymous12-Feb-07 1:15 
AnswerRe: Iam getting memory access violation error in VC Pin
Cedric Moonen11-Feb-07 23:35
Cedric Moonen11-Feb-07 23:35 
AnswerRe: Iam getting memory access violation error in VC Pin
joelgarabedian11-Feb-07 23:36
joelgarabedian11-Feb-07 23:36 
AnswerRe: Iam getting memory access violation error in VC Pin
jhwurmbach11-Feb-07 23:37
jhwurmbach11-Feb-07 23:37 
harshadha wrote:
bmpsrc = (U8 *) malloc(bmpsize);
memset(bmpsrc, 0xff, 5);


Did you check that bmpsrc was not NULL?
bmpsize is checked for being greater than 5?
maybe memset(bmpsrc, 0xff, max( 5, bmpsize)) would be better?

Other than that, the code snippet looks fine.



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

QuestionRe: Iam getting memory access violation error in VC Pin
prasad_som11-Feb-07 23:39
prasad_som11-Feb-07 23:39 
AnswerRe: Iam getting memory access violation error in VC Pin
harshadha12-Feb-07 0:15
harshadha12-Feb-07 0:15 
AnswerRe: Iam getting memory access violation error in VC Pin
prasad_som12-Feb-07 0:20
prasad_som12-Feb-07 0:20 
GeneralRe: Iam getting memory access violation error in VC Pin
harshadha12-Feb-07 0:38
harshadha12-Feb-07 0:38 
AnswerRe: Iam getting memory access violation error in VC Pin
prasad_som12-Feb-07 0:42
prasad_som12-Feb-07 0:42 
AnswerRe: Iam getting memory access violation error in VC Pin
kakan12-Feb-07 0:10
professionalkakan12-Feb-07 0:10 
GeneralRe: Iam getting memory access violation error in VC Pin
harshadha12-Feb-07 0:14
harshadha12-Feb-07 0:14 
GeneralRe: Iam getting memory access violation error in VC Pin
kakan12-Feb-07 0:27
professionalkakan12-Feb-07 0:27 
GeneralRe: Iam getting memory access violation error in VC Pin
harshadha12-Feb-07 0:34
harshadha12-Feb-07 0:34 
QuestionErasing Button Edge lines ? Pin
Sakthiu11-Feb-07 23:21
Sakthiu11-Feb-07 23:21 
AnswerRe: Erasing Button Edge lines ? Pin
Hamid_RT12-Feb-07 7:04
Hamid_RT12-Feb-07 7:04 
AnswerRe: Erasing Button Edge lines ? Pin
Naveen11-Feb-07 23:22
Naveen11-Feb-07 23:22 
GeneralRe: Erasing Button Edge lines ? Pin
Sakthiu11-Feb-07 23:24
Sakthiu11-Feb-07 23:24 
GeneralRe: Erasing Button Edge lines ? Pin
Naveen11-Feb-07 23:32
Naveen11-Feb-07 23:32 
GeneralRe: Erasing Button Edge lines ? Pin
Hamid_RT12-Feb-07 7:04
Hamid_RT12-Feb-07 7:04 
QuestionMFC bad? Win 32 good? C#, .NET and other questions Pin
ldsdbomber11-Feb-07 23:14
ldsdbomber11-Feb-07 23:14 
AnswerRe: MFC bad? Win 32 good? C#, .NET and other questions Pin
benjymous11-Feb-07 23:30
benjymous11-Feb-07 23:30 

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.