April 17, 2024, 08:49:22 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Compile - Relink all - Run

Started by Andy, July 01, 2015, 01:14:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

does it work if you do it one step at a time in 3.x?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

Hi Larry,

No it doesn't work either.

Andy.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

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.



Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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!
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Andy

Hi Larry,

Good work, IWB3.02 does fix the problem!

Thanks,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library