question

KottayiSuraj-3343 avatar image
0 Votes"
KottayiSuraj-3343 asked DavidLowndes-6766 commented

0xFEFEFEFE: Access violation writing location

GetPhysicallyInstalledSystemMemory(TotalMemoryInKilobytes); funtion call throws the above mentioned exception

c++vs-debugging
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Show a code snippet from where you define TotalMemoryInKilobytes.

I'd guess you've got an uninitialised pointer.

0 Votes 0 ·

Thanks David for the reply, I do have an unitialized variable, can u help me with the code
.

    PULONGLONG TotalMemoryInKilobytes;
 GetPhysicallyInstalledSystemMemory(TotalMemoryInKilobytes);
0 Votes 0 ·

1 Answer

DavidLowndes-6766 avatar image
0 Votes"
DavidLowndes-6766 answered DavidLowndes-6766 commented

Correct form:

 ULONGLONG TotalMemoryInKilobytes;
 GetPhysicallyInstalledSystemMemory(&TotalMemoryInKilobytes);


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks David, can u pls tell me how to use GetProductInfo() method also ??

0 Votes 0 ·

Create a new question. If you include sufficient information on what your problem is, and show what code you've tried, I'm sure someone will try to help you.

0 Votes 0 ·