The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Structs containing pointers to structs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blank_name2

USA
7 Posts

Posted - 06/13/2003 :  08:21:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The following code executes fine is stepped through in the debugger, but the assignment produces a "general error" when run normally. Is this a bug? If so, is there a workaround?

struct Record
{
int dummy;
};

struct Record_Holder
{
Record* record;
};

void main ()
{

Record record;
Record_Holder record_holder;
record_holder.record = &record;
}

Any help greatly appreciated

Laurie

USA
404 Posts

Posted - 06/13/2003 :  2:47:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
Please email me at tech@originlab.com.
Thank you.

OriginLab Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000