Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

classSize = sizeof(UBoolProperty); Get size error #14

Open
VTLOWKEY opened this issue Feb 15, 2022 · 4 comments
Open

classSize = sizeof(UBoolProperty); Get size error #14

VTLOWKEY opened this issue Feb 15, 2022 · 4 comments

Comments

@VTLOWKEY
Copy link

image
image
image
image
image
image
image

BUT WHY

image

GET SIZE IS 144???

@ItsBranK
Copy link
Owner

All I can recommend is you make sure you know the difference between hex and decimal values for offsets, and double check everything with the C macro offsetof to make sure you have all your class alignments correct for you compiler.

@VTLOWKEY
Copy link
Author

Okay thanks

@CoolA1d
Copy link

CoolA1d commented May 2, 2022

I got this same exact error. I ended up hard-coding the size of UBoolProperty to 140 lol. Surely this has something to do with the compiler guessing the sizeof UBoolProperty incorrectly.

@ItsBranK
Copy link
Owner

If its a compiler issue you might have to manually set the right class alignment for your project, can debug with sizeof and the offsetof macro which you can do yourself easily.

https://docs.microsoft.com/en-us/cpp/preprocessor/pack?view=msvc-170#examples

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants