Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GLDraw,GLCtrl would be nice to work properly
GLDraw,GLCtrl would be nice to work properly [message #58555] Fri, 17 June 2022 12:54 Go to next message
luoganda is currently offline  luoganda
Messages: 180
Registered: November 2016
Experienced Member
Since this are a part of nonBazaar core packages,
this would be nice to work properly.
I tested this on w7x64 with latest upp-included-clang(16299) and msvc17
producing 32bit debug executable with reference example - GLDrawDemo.
But for this - i used msvc17 since debugger gave me a little more info.
I have also tested this with producing 64bit code,
but it was even worse(only blank white screen).

Anyhow, i attached screenshots where bug happens,
if one is a little bit more familiar with underlying code,
one could probably resolve this quite easily.

Commented code also mostly all produces such bugs.
~~~~~

Bazaar(uppHub) thing:
i suggest - don't throw away Bazaar archive - it has a lot of usefull code.
I didn't for example found Serial package or non-bazaar FontSel(dialog)
in uppHub(maybe i overlooked something), which are mostly just copy/paste
packages - since all works out of the box.

For Serial bazaar package i just added this, to adjust a few things,
for linux, i am not sure if this is needed or how it's done.
  void SetWriteTimeout(dword ms){
    COMMTIMEOUTS ct;memset(&ct,0,sizeof(ct));
    ct.WriteTotalTimeoutConstant=ms;SetCommTimeouts(fd,&ct);
  }
  void SetTimeouts(dword msRead,dword msWrite){
    COMMTIMEOUTS ct;memset(&ct,0,sizeof(ct));
    ct.ReadIntervalTimeout=ct.ReadTotalTimeoutMultiplier=MAXDWORD;
    ct.ReadTotalTimeoutConstant=msRead;
    /*ct.WriteTotalTimeoutMultiplier=MAXDWORD;*/
    ct.WriteTotalTimeoutConstant=msWrite; SetCommTimeouts(fd,&ct);
  }

[Updated on: Fri, 17 June 2022 15:55]

Report message to a moderator

Re: GLDraw,GLCtrl would be nice to work properly [message #58557 is a reply to message #58555] Sat, 18 June 2022 09:53 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 954
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello,

Thank you for your feedback! In context of UppHub this is the step forward in comparison to bazzar and we shouldn't back to it anymore. The reason for that is that many packages are outdated and there are lack of maintainer. I know that currently we do not have Serial package on UppHub, but why do not create one? If you are interested you can create UppHub repository with Serial package from bazaar. This package will be maintain by you.

To create UppHub package, just create git repository and full-fill them accordingly. You could follow the repository structure of AutoScroller. If everything will be ready just let us know that you have created Serial package, so we could add it to UppHub registry.

---------------------------------------
BTW, You put two topics into one thread. Please raise separate topic for GLDraw issue. For me it works correctly on Windows10. Are you compiling GLDrawDemo on virtual machine or something, there might be a problem with a drivers. Also, you should migrate to more modern system. Windows7 hit end of the life, so there is no grantee that everything will be working as expected. Could you try on Windows10. Windows11 or GNU/Linux?

EDIT: OK, after testing we have a fatal error at the begging of the program when targeting 32 bit operating system on Windows. On 64 bit everything works correctly. If you compile with USEMALLOCK it should works fine.
index.php?t=getfile&id=6620&private=0

Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Sun, 19 June 2022 21:21]

Report message to a moderator

Re: GLDraw,GLCtrl would be nice to work properly [message #58561 is a reply to message #58555] Sun, 19 June 2022 20:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13639
Registered: November 2005
Ultimate Member
luoganda wrote on Fri, 17 June 2022 12:54

Bazaar(uppHub) thing:
i suggest - don't throw away Bazaar archive - it has a lot of usefull code.
I didn't for example found Serial package or non-bazaar FontSel(dialog)
in uppHub(maybe i overlooked something), which are mostly just copy/paste
packages - since all works out of the box.

For Serial bazaar package i just added this, to adjust a few things,
for linux, i am not sure if this is needed or how it's done.
  void SetWriteTimeout(dword ms){
    COMMTIMEOUTS ct;memset(&ct,0,sizeof(ct));
    ct.WriteTotalTimeoutConstant=ms;SetCommTimeouts(fd,&ct);
  }
  void SetTimeouts(dword msRead,dword msWrite){
    COMMTIMEOUTS ct;memset(&ct,0,sizeof(ct));
    ct.ReadIntervalTimeout=ct.ReadTotalTimeoutMultiplier=MAXDWORD;
    ct.ReadTotalTimeoutConstant=msRead;
    /*ct.WriteTotalTimeoutMultiplier=MAXDWORD;*/
    ct.WriteTotalTimeoutConstant=msWrite; SetCommTimeouts(fd,&ct);
  }


Why do not you start UppHub package for serial?

Seriously, the problem with bazaar was that while it contained a lot of great code, 90% of it was unmaintained.

Mirek
Re: GLDraw,GLCtrl would be nice to work properly [message #58562 is a reply to message #58555] Mon, 20 June 2022 14:29 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 180
Registered: November 2016
Experienced Member
I think that at least Serial and Sound(wrapped PortAudio soundsystem+plugin/wav)
should go into plugin or core packages, since they are fundamentals.
Serial code won't change in the future, and probably neither PortAudio,
so maintaining code is not an issue, copy/paste packages to core would be fine.

Of course, i have made copies of bazaar archive, just in case you'll be stubborn Smile.
Personally, i prefer main upp-download to be as small as possible, without bazaar and git,
but bazaar and/or github as an option. Upphub may be a plus for some situations
and of course - it could be a handy option and probably "flaten out" newVers diferences
between bazaar and upp bugs.
If one is eager for upphub thing, then one could probably create converter
from bazaar to upphub, and mark/review packages as fullyFuncional or unmaintained, etc.
If this is started: from my experience - Serial and Sound are fully functional.
SoundExample code is also there and functional albeit for blocking mode. Streamed mode
is from my experience fully functional also.

The same goes for FontSel that was proposed soooo many times but not integrated into core(uppsrc/CtrlLib),
all is there only this is lacking for dialogs(colorchooser,FileSel,etc) to be complete.
FontSel code was written by someone else - but i think i changed it a bit some time ago,
anyhow - it's attached(if integrated - only check/correct FontSel.h and FSel.cpp header paths - 2linesOfCode).


What about GLDraw and GLCtrl - core of this topic?
This are also fundamentals..
It's a simple correction for one that knowns how underlying code should work.
  • Attachment: FontSel.7z
    (Size: 2.69KB, Downloaded 5 times)

[Updated on: Mon, 20 June 2022 21:47]

Report message to a moderator

Re: GLDraw,GLCtrl would be nice to work properly [message #58567 is a reply to message #58562] Wed, 22 June 2022 01:39 Go to previous message
Klugier is currently offline  Klugier
Messages: 954
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Luoganda,

Serial is niche. It shouldn't be part of the Core package and any developer that is currently engage in Upp framework development do not have much experience with that. So putting it there doesn't make sens to me.

However, the different story is with UppHub. It fits there perfectly. It is great addition that expands capabilities of whole Upp framework.

As you see there is no maitaner and the person who wants to move that package there. Could you help with this? Do you want to be a person deserved to our community? If yes, please create GitHub repository in accordance to instruction in this documentation page and let us know when it will be ready. We will handle the package publishing process for ourselves.

Luoganda, I believe in you that you publish your first package on UppHub! Good luck!

Klugier


Ultimate++ - one framework to rule them all.
Previous Topic: Value with type float
Next Topic: Add compilable testcases for nontrivial problems!
Goto Forum:
  


Current Time: Fri Jul 01 08:51:17 CEST 2022

Total time taken to generate the page: 0.01353 seconds