Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » .BRC files and .exe in memory
.BRC files and .exe in memory [message #26069] Mon, 29 March 2010 18:06 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

I have prepared a function for Windows (RunFromMemory(const char *)) that reads a buffer with a program and runs it in memory.

So imagine. In a basic sample there are two files:
- launcher.exe
- realprogram.xxx

launcher.exe is just this:

GUI_APP_MAIN {  
	RunFromMemory(LoadFile("realprogram.xxx")); 
}


It runs well with different U++ programs but when using it with one that includes .brc files, realprogram.xxx crashes.

Could it be because the .exe in memory wants to read .brc from file instead of from memory?. As there is no realprogram.exe file, it could crash.




Best regards
Iñaki
Re: .BRC files and .exe in memory [message #26073 is a reply to message #26069] Tue, 30 March 2010 13:07 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
koldo wrote on Mon, 29 March 2010 18:06

Hello all

I have prepared a function for Windows (RunFromMemory(const char *)) that reads a buffer with a program and runs it in memory.

So imagine. In a basic sample there are two files:
- launcher.exe
- realprogram.xxx

launcher.exe is just this:

GUI_APP_MAIN {  
	RunFromMemory(LoadFile("realprogram.xxx")); 
}


It runs well with different U++ programs but when using it with one that includes .brc files, realprogram.xxx crashes.

Could it be because the .exe in memory wants to read .brc from file instead of from memory?. As there is no realprogram.exe file, it could crash.





Hello All

I have found that this has nothing to do with .brc files.

After testing several programs and packages (including TheIDE itself) a program crash just when adding one of these packages:

- Painter
- plugin/jpg

It is just adding them, without calling any function from them.


Best regards
Iñaki
Re: .BRC files and .exe in memory [message #26078 is a reply to message #26069] Tue, 30 March 2010 21:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 29 March 2010 12:06

Hello all

I have prepared a function for Windows (RunFromMemory(const char *)) that reads a buffer with a program and runs it in memory.





How? Without more info, it is hard to comment about this./
Re: .BRC files and .exe in memory [message #26089 is a reply to message #26078] Wed, 31 March 2010 15:31 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Sorry!

Finally it does work with or without Painter.

It was a nasty problem from my source, now solved.


Best regards
Iñaki
Previous Topic: How to input Time Of Day ( only time no date needed )
Next Topic: Calendar problem
Goto Forum:
  


Current Time: Thu Mar 28 17:12:17 CET 2024

Total time taken to generate the page: 0.01582 seconds