Page 1 of 1

Reload changed libraries on compile

Posted: Mon Dec 10, 2007 10:26 pm
by Mistrel
I'm working on a PureBasic library that I'm compiling with TailBite. I find it tedious that every time I make a change to the library I have to restart the IDE to reload the libraries into memory.

It would be convenient if the IDE would do a simple date-stamp comparison to see if the file has changed and to reload those that have.

Posted: Mon Dec 10, 2007 10:36 pm
by Trond
Have you tried the "restart compiler" menu item?

Posted: Mon Dec 10, 2007 11:21 pm
by Mistrel
I just noticed that the little window that pops up when making the library with Tailbite outputs "Restarting Compiler" at the end. Maybe this was intended but broke at some point.

Thanks, Trond. I didn't know that. But I would still like a solution either on-compile or better yet, Tailbite's suggested functionality.

Posted: Mon Dec 10, 2007 11:55 pm
by ABBKlaus
Mistrel wrote:I just noticed that the little window that pops up when making the library with Tailbite outputs "Restarting Compiler" at the end. Maybe this was intended but broke at some point.

Thanks, Trond. I didn't know that. But I would still like a solution either on-compile or better yet, Tailbite's suggested functionality.
the purebasic team decided to remove the function in PB4.10+

Code: Select all

#PB_MSG_Restart_Compiler = 10174
  ;
  ; gnozal : not needed if started from jaPBe (the Tailbite tool restarts the compiler)
  ;          and it won't work with PB4.10+ anyway
  PostMessage_(#HWND_BROADCAST, RegisterWindowMessage_("PB_MSG_ID"), #PB_MSG_Restart_Compiler, 0)