It is currently Thu Apr 09, 2020 10:12 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Done] SizeOf for Interfaces - Compiler crash
PostPosted: Fri Jan 03, 2020 10:59 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 1040
SizeOf works for structure elements, but with interface methods this leads to a compiler crash.

Code:
Debug SizeOf (BITMAP\bmBitsPixel)
;Debug SizeOf (IMAPIForm\DoVerb)

Even if this function is not documented, the compiler shouldn't crash.

Tested with:
Win7
Pb 5.71 x64

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: SizeOf for Interfaces - Compiler crash
PostPosted: Sat Jan 04, 2020 1:27 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2349
Location: Germany
Although it makes no sense to query the size of a method address, it should not cause a crash.
Code:
r1 = SizeOf (BITMAP\bmBitsPixel)
r2 = SizeOf (IMAPIForm) / SizeOf(integer)

Debug "Count of Methods = " + r2

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: SizeOf for Interfaces - Compiler crash
PostPosted: Tue Jan 21, 2020 10:38 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14019
Location: France
Fixed. Will return sizeof(Integer) now as expected.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Demivec and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye