Hi !
I plan to 'cut' my game program into two exe.
- The first should be the user interface (menus, game option, level choice). It use graphics3d and some music.
- The second should be the 'main program', in fact the 3d level (also graphics3d and game music).
Today i've experimented this, but it seems not be a good solution. My main idea was to free all the memory used by the gui interface before lauching a level ! i've planned to use a swapfile between the two programs to store some parameters. The second program need only the level number !
But... if i use an execfile command from the gui to the second program have an 'memory access violation'(of course this program perfectly works if i directly lauch it). Is somebody have experimented this ? Is it impossible ?
Simple code example (gui)
produce a 'memory allocation error' when the start.exe is executed !
Many thanks for your help.
I plan to 'cut' my game program into two exe.
- The first should be the user interface (menus, game option, level choice). It use graphics3d and some music.
- The second should be the 'main program', in fact the 3d level (also graphics3d and game music).
Today i've experimented this, but it seems not be a good solution. My main idea was to free all the memory used by the gui interface before lauching a level ! i've planned to use a swapfile between the two programs to store some parameters. The second program need only the level number !
But... if i use an execfile command from the gui to the second program have an 'memory access violation'(of course this program perfectly works if i directly lauch it). Is somebody have experimented this ? Is it impossible ?
Simple code example (gui)
Graphics3D 800,600,16,0 main() ; gui main program (menu, ...) ClearWorld ExecFile "E:\game_010303\game1\start.exe" ; the second program (level) End
produce a 'memory allocation error' when the start.exe is executed !
Many thanks for your help.