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++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » invalid memory access
invalid memory access [message #53737] Sun, 26 April 2020 07:50 Go to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

Hi all-

I'm running my very small application (it only has 5 or 6 dialogs so far). If I run code from my menu, I can run it with sql until I am blue in the face. When I start to open up other dialogs and switch back I get a msg. that says something about invalid memory access. I run a gui with a main section for my main window. This is the menu system to launch other forms. I'm using Ubuntu xfce. Any ideas why it works and then crashes when I am switching dialogs? Thnx - roboloki

 bar.Add("check master", [=] { showmaster();});
    bar.Add("check detail", [=] { showdetail();});
    bar.Add("Account Maint.", [=] { showaccounts();});
    bar.Add("Subsidiary", [=] { showciti();});
    bar.Add("Purch. Journal", [=] { showpj();});
    bar.Add("Exit", [=] { Exit(); });
    }
    void MyMain::MainMenu(Bar& bar) {
        bar.Sub("Menu", [=](Bar& bar) { SubMenu(bar); });	
    }

 	void MyMain::showaccounts() {
 		
 		// show check master
         
        App2 app2;
        switch(app2.Run()) {
        case IDOK:
              break;
        case IDCANCEL:
        Exclamation("Canceled");

    }
     }


I use this code for each dialog with an okay and cancel button:

ok.Ok() <<= Acceptor(IDOK);

cancel.Cancel() <<= Rejector(IDCANCEL);
  • Attachment: pj
    (Size: 2.45KB, Downloaded 157 times)

[Updated on: Sun, 26 April 2020 08:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to link libeay32, libssl32 and ssleay32 statically in Windows?
Next Topic: Full recompile of single package only
Goto Forum:
  


Current Time: Wed Apr 17 00:34:32 CEST 2024

Total time taken to generate the page: 0.03738 seconds