XIncludeFile question

Everything else that doesn't fall into one of the other PB categories.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

XIncludeFile question

Post by netmaestro »

I was using PureBasic the other day and I had a small main program calling a function from a module in a .pbi that was referenced in XIncludeFile at the top of the code. I was testing the program and noticed that if I moved the main window the entity created in the .pbi would still come out screencentered. I had overlooked that possibility so I changed the code in the module to have it come out centered in the calling window. But when I ran the new code nothing changed. So I put a 'Debug x' in the module and on the next run nothing got debugged. It wasn't conditional, the debug should have displayed on the next run in all circumstances. I closed the IDE down and reopened it, no change. So I left the code exactly as it was, created a project and put the two files in it. I reran the code and the debug magically turned up where it was expected and the new positioning started happening too. I then deleted the project and ran the main code and all worked as expected after that. Very perplexing.

My question is, has anyone else experienced any similar oddness when using included files with modules? I tried to mock up a small demo for a bug report but couldn't reproduce it after that.
BERESHEIT