IonicWind Software

IWBasic => IWB3.x Bug Reports => Resolved Issues => Topic started by: Andy on July 01, 2015, 01:14:29 AM

Title: Compile - Relink all - Run
Post by: Andy on July 01, 2015, 01:14:29 AM
Hi,

Finding IWB3.x so very much easier to use.

I do have a question though, when I choose Compile and Run for my project, it compiles all the source files (13 of them) links them and runs correctly.

When I choose to amend my main source file (autoscan1754.iwb) and then select Compile / Relink all / Run - the program does run but it does not load any images stored in a resource file.

The loading of the images are in a sub routine calles LaodImages and located in a different source file called util.iwb (my utilities section).

My main source file (autoscan1754.iwb) calls that subroutine before displaying any windows.

So the question is why are the images not being displayed?

On the older IDE 2.09, these options you had to do one at a time e.g.
1. Change a source file
2. Compile it
3. Relink All
4. Run

Doing this manually worked.

Is this a small issue, or am I doing anything wrong here (like missing the point - which with me is very likely).

Thanks,
Andy.
:)
Title: Re: Compile - Relink all - Run
Post by: LarryMc on July 01, 2015, 06:35:30 AM
does it work if you do it one step at a time in 3.x?
Title: Re: Compile - Relink all - Run
Post by: Andy on July 01, 2015, 07:24:54 AM
Hi Larry,

No it doesn't work either.

Andy.

Title: Re: Compile - Relink all - Run
Post by: LarryMc on July 02, 2015, 12:10:17 AM
Got a pretty good idea of what is going on. Now I just need to figure out how to fix it.
May take a few days.
Title: Re: Compile - Relink all - Run
Post by: Andy on July 04, 2015, 03:57:22 AM
Larry,

Don't know if this helps you at all, but I have noticed the following:

Images that are extracted at run time do show.

It seems it's the images that are not extracted do not show.

Both the images that show and those that don't are included in the resource file and as stated before I load all images up at run time.

All images are mixture of bitmaps and scaleables.

Andy.



Title: Re: Compile - Relink all - Run
Post by: LarryMc on July 06, 2015, 10:01:50 PM
Found what the problem was and added code to resolve the specific problem.
Now I need to add code to recognize error situation; announce when/if it occurs and abort link if appropriate.

Then I need to do some testing to make sure it is a good fix and that I didn't break something else!
Title: Re: Compile - Relink all - Run
Post by: Andy on July 06, 2015, 10:12:55 PM
Great work Larry,

If you need someone to test it, please just ask as I am working on my project every day at the moment, and feel some respnsibility as I flagged it.

Andy.
Title: Re: Compile - Relink all - Run
Post by: Andy on July 09, 2015, 07:05:10 PM
Hi Larry,

Good work, IWB3.02 does fix the problem!

Thanks,
Andy.
Title: Re: Compile - Relink all - Run
Post by: Andy on August 28, 2015, 01:50:44 AM
Should compiling of the resource (in project mode) be added to the start of
Compile / Relink All / Run?

Was just adding to one of my source files, and decided I would change the colour of one of my bitmap files (which are added as resources in my project).

Noticed that after a Compile / Relink All / Run - the bitmap colour had not changed.

Did a full compile and everything was good.

It dawned on me that to avoid this, I could have just compiled the resource before selecting Compile / Relink All / Run.

So should / or could compiling of a resource be added into the Compile / Relink All / Run option?

What does anyone think?

Thanks,
Andy.
:)
Title: Re: Compile - Relink all - Run
Post by: LarryMc on August 28, 2015, 10:22:14 AM
If you had previously compiled and run the program and all you wanted to do was add a bitmap file then all you should have had to do was recompile the resource file then relink all then run

The whole idea when I created Compile Resource was so that you could compile the resource file separate from the rest of the files in the project. Before, if you had an error in the resource file, you had to wait until every source file was compiled before you could do anything about it (a lot of wasted time).  The whole idea when I created the Compile / Relink All / Run command was to combine 3 existing commands.  The Compile in this case implies that you are compiling the currently selected, edited, source file.  If we add the compiling of the resource file into that the we are back to slowing things down again.

Someone is going to have to come up with an awful strong argument to get me to change the way that works.
I guess you haven't built a resource file as big as I have with a 1000+ lines.