New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FLTK and WIN10 and NMAKE #496
Comments
@szukw000 Winfried, thank you for the report. Although I can see the line in question in the source code I can't guess what's happening here and what may be wrong with the code. BTW: this code should be independent of the build system (NMake vs. What is your Please post source code of a small, complete, program that shows the issue, and please give us instructions how to reproduce the issue. I'm sorry to say this: w/o a short test case we won't be able to debug this and this issue must be closed. |
Alternatively (rather than writing a small demo program) you can try if you can reproduce the issue with one of the FLTK test programs, for instance |
PS: before you continue testing, please make sure to download the latest code, preferably from Git, but the latest snapshot would be fine as well. Then tell us where you downloaded the software from, and the exact version (git commit or snapshot filename). Thanks. |
@Albrecht-S , |
@szukw000 Winfried, you wrote that you "found where the bug resides. See the attachment". This attachment is pretty useless (at least for me) without the code and the image file that causes it. Note however that we can't test and debug your code, even if the final error happens inside FLTK code.
Where did you get the constant 512 from? Adding an arbitrary size to an array is not a fix if you (or we, the FLTK Team) don't know why the array is accessed out of bounds. How to proceed:
I may repeat myself, but this is essential: the code you refer to is not build system dependent, it is used on all Windows systems. Hence I assume that the real cause of the issue lies somewhere else in your code and the effects you see are caused by random program execution addresses which can exhibit the error if you build the program with VS/Nmake versus MinGW. Without a working example and test image we need to close this issue. |
@Albrecht-S , |
Since this sounds Fl_Tree related, thought I'd look into this. I was able to build the app you provided, but it won't load any valid PNG files I browse to. The app is too large to use as a simple debugging tool; I'm not sure what the app is supposed to do, or what the tree is used for. OP, please reduce the problem to a simple one-file program. |
@erco77 ,
So, it is true: if PNG.cxx is unchanged, no image will be shown. If you wanted an image you had to HIDE_BUILD_TREE and (un-)HIDE_BUILD_IMAGE. Bye. winfried |
@erco77 ,
winfried |
You have to be in the cmake "build" directory to build stuff. If you want to build and run the FLTK examples with nmake, you'd use cmake with the build option
After that builds, you'd find the FLTK examples binaries in
Yes, well next time please reduce the problem as requested by the developers. We shouldn't have to comb through a zip file containing 42 files and 2700 lines of code. That's basically like saying 'here debug my program'. |
@Albrecht-S ,
after several tests, installing msys64 I suppose I have found a bug in FLTK on WIN10
using NMAKE.
Likewise the debugger of 'Visual Studio 2022' stopped at 'delete'. But I could not
copy the lines from the debugger. So they are missing here.
winfried
The text was updated successfully, but these errors were encountered: